projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef8a46
)
r8152: replace netdev_alloc_skb_ip_align with napi_alloc_skb
author
hayeswang
<hayeswang@realtek.com>
Wed, 8 Jun 2016 06:52:33 +0000
(14:52 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 10 Jun 2016 06:38:19 +0000
(23:38 -0700)
Replace netdev_alloc_skb_ip_align() with napi_alloc_skb() which can save
several CPU cycles by avoiding having to disable and re-enable IRQs.
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/r8152.c
b/drivers/net/usb/r8152.c
index 3f9f6ed3eec4de5c14e43039e08d53b209e52cb4..161c25e188653f516fe03e6df34661412c4b2e8a 100644
(file)
--- a/
drivers/net/usb/r8152.c
+++ b/
drivers/net/usb/r8152.c
@@
-1742,7
+1742,7
@@
static int rx_bottom(struct r8152 *tp, int budget)
pkt_len -= CRC_SIZE;
rx_data += sizeof(struct rx_desc);
- skb = n
etdev_alloc_skb_ip_align(netdev
, pkt_len);
+ skb = n
api_alloc_skb(&tp->napi
, pkt_len);
if (!skb) {
stats->rx_dropped++;
goto find_next_rx;