Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148101
b: refs/heads/master
c: 5f48f70
h: refs/heads/master
i:
  148099: 462f0c9
v: v3
  • Loading branch information
Joe Eykholt authored and James Bottomley committed Jun 8, 2009
1 parent d3620aa commit 0b3c277
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f00a3328bf9ecff46abd68a421693ba71cd16fc8
refs/heads/master: 5f48f70ecef25df93e122985272ff647f5653836
15 changes: 10 additions & 5 deletions trunk/drivers/scsi/fcoe/libfcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,14 +447,10 @@ int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct sk_buff *skb)
u16 old_xid;
u8 op;

if (fip->state == FIP_ST_NON_FIP)
return 0;

fh = (struct fc_frame_header *)skb->data;
op = *(u8 *)(fh + 1);

switch (op) {
case ELS_FLOGI:
if (op == ELS_FLOGI) {
old_xid = fip->flogi_oxid;
fip->flogi_oxid = ntohs(fh->fh_ox_id);
if (fip->state == FIP_ST_AUTO) {
Expand All @@ -466,6 +462,15 @@ int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct sk_buff *skb)
fip->map_dest = 1;
return 0;
}
if (fip->state == FIP_ST_NON_FIP)
fip->map_dest = 1;
}

if (fip->state == FIP_ST_NON_FIP)
return 0;

switch (op) {
case ELS_FLOGI:
op = FIP_DT_FLOGI;
break;
case ELS_FDISC:
Expand Down

0 comments on commit 0b3c277

Please sign in to comment.