[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1548341138-3931-1-git-send-email-albin_yang@163.com>
Date: Thu, 24 Jan 2019 22:45:38 +0800
From: Yang Wei <albin_yang@....com>
To: netdev@...r.kernel.org
Cc: jcliburn@...il.com, chris.snook@...il.com, davem@...emloft.net,
yang.wei9@....com.cn, Yang Wei <albin_yang@....com>
Subject: 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@....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
Powered by blists - more mailing lists