[SCSI] fcoe: remove check for zero fabric name
authorVasu Dev <vasu.dev@intel.com>
Tue, 20 Jul 2010 22:21:33 +0000 (15:21 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:06:04 +0000 (09:06 -0500)
This check prevents FCF selection in NPV mode due to zero fabric name
in that case and in turn flogi fails. Though NPV mode should not have
this zero and should be fixed there also but spec also does not require
initiator to ensure that fabric name must be non-zero, therefore dropping
this check to get flogi working in NPV mode.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/libfcoe.c

index 2c265fe9ab32e970a2ca7fc8a51c68c880b0f023..aa503d83092a09eb0b69ea1ca76fd227807bd39a 100644 (file)
@@ -845,7 +845,7 @@ static int fcoe_ctlr_parse_adv(struct fcoe_ctlr *fip,
        }
        if (!fcf->fc_map || (fcf->fc_map & 0x10000))
                return -EINVAL;
-       if (!fcf->switch_name || !fcf->fabric_name)
+       if (!fcf->switch_name)
                return -EINVAL;
        if (desc_mask) {
                LIBFCOE_FIP_DBG(fip, "adv missing descriptors mask %x\n",
This page took 0.025495 seconds and 5 git commands to generate.