aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe/libfcoe.c
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2009-11-03 14:50:16 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:01:27 -0500
commitbe276cbe1bd680ab1f6c297017dd658e5a6b10d2 (patch)
tree20e36fd7741818592d07b8f72442dd9ac5bf153e /drivers/scsi/fcoe/libfcoe.c
parent4ae1e19f251335a24ce6cd13f08b4af560ed8765 (diff)
[SCSI] libfcoe: Do not pad FIP keep-alive to full frame size
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>
Diffstat (limited to 'drivers/scsi/fcoe/libfcoe.c')
-rw-r--r--drivers/scsi/fcoe/libfcoe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
index 2988b71d1e87..3c501d4973e3 100644
--- a/drivers/scsi/fcoe/libfcoe.c
+++ b/drivers/scsi/fcoe/libfcoe.c
@@ -351,8 +351,7 @@ static void fcoe_ctlr_send_keep_alive(struct fcoe_ctlr *fip,
351 if (!fcf || !fc_host_port_id(lp->host)) 351 if (!fcf || !fc_host_port_id(lp->host))
352 return; 352 return;
353 353
354 len = fcoe_ctlr_fcoe_size(fip) + sizeof(struct ethhdr); 354 len = sizeof(*kal) + ports * sizeof(*vn);
355 BUG_ON(len < sizeof(*kal) + sizeof(*vn));
356 skb = dev_alloc_skb(len); 355 skb = dev_alloc_skb(len);
357 if (!skb) 356 if (!skb)
358 return; 357 return;