Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7fcd543 authored by Alexander Duyck's avatar Alexander Duyck Committed by David S. Miller
Browse files

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: default avatarAlexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eb781397
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3612,7 +3612,7 @@ static int ixgbevf_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
	u8 *dst_mac = skb_header_pointer(skb, 0, 0, NULL);

	if (!dst_mac || is_link_local_ether_addr(dst_mac)) {
		dev_kfree_skb(skb);
		dev_kfree_skb_any(skb);
		return NETDEV_TX_OK;
	}