Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ixgbevf: Use dev_kfree_skb_any in xmit path, not dev_kfree_skb

With netpoll making use of the transmit function it is possible for the
ndo_start_xmit function to be called with irqs disabled. As such we need
to use dev_kfree_skb_any in the Tx cleanup path for frames that are
dropped.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Alexander Duyck and committed by
David S. Miller
e7fcd543 eb781397

+1 -1
+1 -1
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
··· 3612 3612 u8 *dst_mac = skb_header_pointer(skb, 0, 0, NULL); 3613 3613 3614 3614 if (!dst_mac || is_link_local_ether_addr(dst_mac)) { 3615 - dev_kfree_skb(skb); 3615 + dev_kfree_skb_any(skb); 3616 3616 return NETDEV_TX_OK; 3617 3617 } 3618 3618