Skip to content

Commit

Permalink
r8152: reduce the number of Tx
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hayeswang authored and David S. Miller committed Sep 2, 2014
1 parent 53fda7f commit 1764bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/usb/r8152.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1764bcd

Please sign in to comment.