Skip to content

Commit

Permalink
[SCSI] libfcoe: don't send ELS in FIP mode if no FCF selected
Browse files Browse the repository at this point in the history
If link is up, but no FCF is selected, don't send any ELS frames.

This came up when an fnic received a multicast advertisement but
no solitited advertisments, so no FCF was selected.  It tried
to send FLOGIs anyway.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Joe Eykholt authored and James Bottomley committed Dec 4, 2009
1 parent dd42dac commit f31f2a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/fcoe/libfcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct fc_lport *lport,

if (fip->state == FIP_ST_NON_FIP)
return 0;
if (!fip->sel_fcf)
goto drop;

switch (op) {
case ELS_FLOGI:
Expand Down

0 comments on commit f31f2a1

Please sign in to comment.