* atheros: atl2: replace dev_kfree_skb_any() by dev_consume_skb_any()
@ 2019-01-24 14:45 Yang Wei
0 siblings, 0 replies; only message in thread
From: Yang Wei @ 2019-01-24 14:45 UTC (permalink / raw)
To: netdev; +Cc: jcliburn, chris.snook, davem, yang.wei9, Yang Wei
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>
---
drivers/net/ethernet/atheros/atlx/atl2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c
index bb41bec..c44e952 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;
}
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-24 14:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-24 14:45 atheros: atl2: replace dev_kfree_skb_any() by dev_consume_skb_any() Yang Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox