Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libfc: Correct check for initiator role

The service_params field is being checked against the symbol
FC_RPORT_ROLE_FCP_INITIATOR where it really should be checked
against FCP_SPPF_INIT_FCN.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Jack Morgan <jack.morgan@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>

authored by

Mark Rustad and committed by
Robert Love
732bdb9d e6c10b7c

+1 -1
+1 -1
drivers/scsi/libfc/fc_rport.c
··· 1962 1962 rdata->flags |= FC_RP_FLAGS_RETRY; 1963 1963 rdata->supported_classes = FC_COS_CLASS3; 1964 1964 1965 - if (!(lport->service_params & FC_RPORT_ROLE_FCP_INITIATOR)) 1965 + if (!(lport->service_params & FCP_SPPF_INIT_FCN)) 1966 1966 return 0; 1967 1967 1968 1968 spp->spp_flags |= rspp->spp_flags & FC_SPP_EST_IMG_PAIR;