OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b8299
)
atheros: atl2: replace dev_kfree_skb_any() by dev_consume_skb_any()
author
Yang Wei
<albin_yang@163.com>
Thu, 24 Jan 2019 14:45:38 +0000
(22:45 +0800)
committer
David S. Miller
<davem@davemloft.net>
Sat, 26 Jan 2019 23:09:13 +0000
(15:09 -0800)
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>
drivers/net/ethernet/atheros/atlx/atl2.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/atheros/atlx/atl2.c
b/drivers/net/ethernet/atheros/atlx/atl2.c
index
bb41bec
..
c44e952
100644
(file)
--- 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_
kfre
e_skb_any(skb);
+ dev_
consum
e_skb_any(skb);
return NETDEV_TX_OK;
}