Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

r8152: reduce the number of Tx

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 <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

hayeswang and committed by
David S. Miller
1764bcd9 53fda7f7

+1 -1
+1 -1
drivers/net/usb/r8152.c
··· 424 424 FULL_DUP = 0x01, 425 425 }; 426 426 427 - #define RTL8152_MAX_TX 10 427 + #define RTL8152_MAX_TX 4 428 428 #define RTL8152_MAX_RX 10 429 429 #define INTBUFSIZE 2 430 430 #define CRC_SIZE 4