ixgbe: Do not pad FCoE frames as this can cause issues with FCoE DDP
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 25 Jun 2012 21:54:46 +0000 (21:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2012 23:44:34 +0000 (16:44 -0700)
commit57efd44c8cad440fb00ef8078cb018ab2f221373
treeae668ec3ef9cd5590416d38fee4341bce8ed39a3
parenta2842a1e66329798d66563b52faec1a299ec4f73
ixgbe: Do not pad FCoE frames as this can cause issues with FCoE DDP

FCoE target mode was experiencing issues due to the fact that we were
sending up data frames that were padded to 60 bytes after the DDP logic had
already stripped the frame down to 52 or 56 depending on the use of VLANs.
This was resulting in the FCoE DDP logic having issues since it thought the
frame still had data in it due to the padding.

To resolve this, adding code so that we do not pad FCoE frames prior to
handling them to the stack.

CC: <stable@vger.kernel.org>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c