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:
53fda7f
)
r8152: reduce the number of Tx
author
hayeswang
<
[email protected]
>
Thu, 28 Aug 2014 02:24:18 +0000
(10:24 +0800)
committer
David S. Miller
<
[email protected]
>
Tue, 2 Sep 2014 00:47:21 +0000
(17:47 -0700)
Because the Tx has the features of stopping queue and aggregation,
We don't need many tx buffers. Change the tx number from 10 to 4
to reduce the usage of the memory. This could save 16K * 6 bytes
memory.
Signed-off-by: Hayes Wang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/usb/r8152.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/r8152.c
b/drivers/net/usb/r8152.c
index 33dcc975c62db827cc95805e52ad1654dce76ede..cc64dc0ba6fc5dc1ea2635c219f784cbf281482a 100644
(file)
--- a/
drivers/net/usb/r8152.c
+++ b/
drivers/net/usb/r8152.c
@@
-424,7
+424,7
@@
enum rtl_register_content {
FULL_DUP = 0x01,
};
-#define RTL8152_MAX_TX
10
+#define RTL8152_MAX_TX
4
#define RTL8152_MAX_RX 10
#define INTBUFSIZE 2
#define CRC_SIZE 4