diff options
author | Yang Wei <albin_yang@163.com> | 2019-01-24 15:45:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-27 00:09:13 +0100 |
commit | 7304720d70a223186d192d766e9b5d25470a705d (patch) | |
tree | 96a730bfc6d51284d9afe2cdb51966051c6e722f /drivers/net/ethernet/atheros | |
parent | Merge branch 'ip_tunnel-next' (diff) | |
download | linux-7304720d70a223186d192d766e9b5d25470a705d.tar.xz linux-7304720d70a223186d192d766e9b5d25470a705d.zip |
atheros: atl2: replace dev_kfree_skb_any() by dev_consume_skb_any()
atl2_xmit_frame() should call dev_consume_skb_any() when the
transmission is successful. It makes drop profiles more friendly.
Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros')
-rw-r--r-- | drivers/net/ethernet/atheros/atlx/atl2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c index bb41becb6609..c44e95255aa1 100644 --- a/drivers/net/ethernet/atheros/atlx/atl2.c +++ b/drivers/net/ethernet/atheros/atlx/atl2.c @@ -909,7 +909,7 @@ static netdev_tx_t atl2_xmit_frame(struct sk_buff *skb, (adapter->txd_write_ptr >> 2)); mmiowb(); - dev_kfree_skb_any(skb); + dev_consume_skb_any(skb); return NETDEV_TX_OK; } |