From: Tushar Dave Date: Fri, 14 Sep 2012 04:24:49 +0000 (+0000) Subject: ixgbe: Correcting small packet padding X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=71a49f777d6caa84b2b8ea376fcf181fe221d063;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ixgbe: Correcting small packet padding Driver pad skb up to 17 bytes because of the HW requirement. However, that code implementation mess up the skb tail pointer after padding. This patch sets skb->tail correctly. Signed-off-by: Tushar Dave Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 46bf0fde1a6..c1ce6e9cc67 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -6538,6 +6538,7 @@ static netdev_tx_t ixgbe_xmit_frame(struct sk_buff *skb, if (skb_pad(skb, 17 - skb->len)) return NETDEV_TX_OK; skb->len = 17; + skb_set_tail_pointer(skb, 17); } tx_ring = adapter->tx_ring[skb->queue_mapping];