]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix calling skb_put on nonlinear skb assertion bug
authorYi Zou <yi.zou@intel.com>
Fri, 20 Apr 2012 05:48:08 +0000 (05:48 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 1 May 2012 01:54:52 +0000 (18:54 -0700)
commite7927b1a01470f3c3d4fa0f8489add813ecc59cb
tree59d95fc115b776f12e23ed67cb6c55add3b633ee
parent5916a50bfb1128994bc5079e9458c0d92b756ecf
ixgbe: fix calling skb_put on nonlinear skb assertion bug

With the support to bounce buffer added, the skb is coming as nonlinear in the
case of non-DDPed data frames for FCoE, which is mostly ok as the FCoE stack
would take care of that. However, for target mode, we have to set the FC CRC
and FC EOF field to allow the protocol stack to not drop the frame for the last
data frame of that sequence. So fix this by linearizing the skb first before
doing skb_put().

Signed-off-by: Yi Zou <yi.zou@intel.com>
Tested-by: Marcus Dennis <marcusx.e.dennis@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c