Skip to content

Commit 441e171

Browse files
yizouJeff Kirsher
authored and
Jeff Kirsher
committed
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 <[email protected]> Tested-by: Marcus Dennis <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 2b1588c commit 441e171

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ int ixgbe_fcoe_ddp(struct ixgbe_adapter *adapter,
437437
*/
438438
if ((fh->fh_r_ctl == FC_RCTL_DD_SOL_DATA) &&
439439
(fctl & FC_FC_END_SEQ)) {
440+
skb_linearize(skb);
440441
crc = (struct fcoe_crc_eof *)skb_put(skb, sizeof(*crc));
441442
crc->fcoe_eof = FC_EOF_T;
442443
}

0 commit comments

Comments
 (0)