Skip to content

Commit

Permalink
[SCSI] libfcoe: Do not pad FIP keep-alive to full frame size
Browse files Browse the repository at this point in the history
According to the FC-BB-5 Rev2.0, 7.8.6.2, we should not pad FIP keep-alive
frames.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Yi Zou authored and James Bottomley committed Dec 4, 2009
1 parent 4ae1e19 commit be276cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/fcoe/libfcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,7 @@ static void fcoe_ctlr_send_keep_alive(struct fcoe_ctlr *fip,
if (!fcf || !fc_host_port_id(lp->host))
return;

len = fcoe_ctlr_fcoe_size(fip) + sizeof(struct ethhdr);
BUG_ON(len < sizeof(*kal) + sizeof(*vn));
len = sizeof(*kal) + ports * sizeof(*vn);
skb = dev_alloc_skb(len);
if (!skb)
return;
Expand Down

0 comments on commit be276cb

Please sign in to comment.