]> www.infradead.org Git - nvme.git/commit
scsi: lpfc: Reject received PRLIs with only initiator fcn role for NPIV ports
authorJustin Tee <justin.tee@broadcom.com>
Mon, 9 Oct 2023 16:18:09 +0000 (09:18 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 13 Oct 2023 20:58:27 +0000 (16:58 -0400)
commit12e896c74280d9d8da87327f08cf0e878d24ae5c
treeffc02fd8bf5dad22948e36949e605f3100a3f897
parentd472a76603d8a04246dda05c4918281dfb61ed60
scsi: lpfc: Reject received PRLIs with only initiator fcn role for NPIV ports

Currently, NPIV ports send PRLI_ACC to all received unsolicited PRLI
requests.  For an NPIV port, there is no point to PRLI_ACC if the received
PRLI request has the initiator function bit set and the target function bit
unset.  Modify the lpfc_rcv_prli_support_check() routine to send a PRLI_RJT
in such cases.  NPIV ports are expected to send PRLI_ACC only if the Target
function bit is set.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20231009161812.97232-4-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nportdisc.c