linux-stable/drivers/infiniband/ulp/iser
Sergey Gorenko d6d142cb7f IB/iser: Fix login with authentication
The iSER Initiator uses two types of receive buffers:

  - one big login buffer posted by iser_post_recvl();
  - several small message buffers posted by iser_post_recvm().

The login buffer is used at the login phase and full feature phase in
the discovery session. It may take a few requests and responses to
complete the login phase. The message buffers are only used in the
normal operational session at the full feature phase.

After the commit referred in the fixes line, the login operation fails
if the authentication is enabled. That happens because the Initiator
posts a small receive buffer after the first response from Target. So,
the next send operation fails because Target's second response does not
fit into the small receive buffer.

This commit adds additional checks to prevent posting small receive
buffers until the full feature phase.

Fixes: 39b169ea0d ("IB/iser: Fix RNR errors")
Link: https://lore.kernel.org/r/20220805060135.18493-1-sergeygo@nvidia.com
Signed-off-by: Sergey Gorenko <sergeygo@nvidia.com>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2022-08-16 15:56:33 +03:00
..
iscsi_iser.c scsi: iscsi: Fix session removal on shutdown 2022-06-21 21:14:54 -04:00
iscsi_iser.h IB/iser: Fix typo in comment 2022-05-24 11:24:57 -03:00
iser_initiator.c IB/iser: Fix login with authentication 2022-08-16 15:56:33 +03:00
iser_memory.c IB/iser: Generalize map/unmap dma tasks 2022-03-18 14:37:49 -03:00
iser_verbs.c IB/iser: Drain the entire QP during destruction flow 2022-06-24 16:17:46 -03:00
Kconfig
Makefile