diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-05-01 10:34:50 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-04 00:06:55 -0400 |
commit | e7fcd5439ffd76e499b7ba4a2f8e99645addff3e (patch) | |
tree | 0d807cb26c2cabb40712867644d52d0e16a2a646 /drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | |
parent | eb781397904e5d6b90c80463eaa9dc592831bdae (diff) | |
download | linux-stable-e7fcd5439ffd76e499b7ba4a2f8e99645addff3e.tar.gz linux-stable-e7fcd5439ffd76e499b7ba4a2f8e99645addff3e.tar.bz2 linux-stable-e7fcd5439ffd76e499b7ba4a2f8e99645addff3e.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index a16d267fbce4..e71cdde9cb01 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -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; } |