scsi: fnic: bug fix for fip.fip_subcode in fnic_fcoe_send_vlan_req
authorSatish Kharat <satishkh@cisco.com>
Wed, 22 Mar 2017 23:55:01 +0000 (16:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 13:57:23 +0000 (09:57 -0400)
This is a bug introduced when they moved the fip subcodes to central
place. Was sending FIP_SC_VL_NOTE in fip.fip_subcode for VLAN request in
fnic_fcoe_send_vlan_req. Change is to use FIP_SC_VL_REQ instead.

Signed-off-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_fcs.c

index 8d2d86e0bc720a51629d75e561afaa2ce8f9d2af..245dcd95e11f7823f3f100037f1408e7048a46f1 100644 (file)
@@ -362,7 +362,7 @@ static void fnic_fcoe_send_vlan_req(struct fnic *fnic)
 
        vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER);
        vlan->fip.fip_op = htons(FIP_OP_VLAN);
-       vlan->fip.fip_subcode = FIP_SC_VL_NOTE;
+       vlan->fip.fip_subcode = FIP_SC_VL_REQ;
        vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW);
 
        vlan->desc.mac.fd_desc.fip_dtype = FIP_DT_MAC;