mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
net: rtl8169: Honor CONFIG_SYS_RX_ETH_BUFFER
According to the top-level README file, this configuration setting can be used to override the number of receive buffers that an ethernet NIC uses. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
parent
d1e5b4065e
commit
c94bbfdf51
1 changed files with 5 additions and 1 deletions
|
@ -79,7 +79,11 @@ static int media[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
|
|||
#define InterFrameGap 0x03 /* 3 means InterFrameGap = the shortest one */
|
||||
|
||||
#define NUM_TX_DESC 1 /* Number of Tx descriptor registers */
|
||||
#define NUM_RX_DESC 4 /* Number of Rx descriptor registers */
|
||||
#ifdef CONFIG_SYS_RX_ETH_BUFFER
|
||||
#define NUM_RX_DESC CONFIG_SYS_RX_ETH_BUFFER
|
||||
#else
|
||||
#define NUM_RX_DESC 4 /* Number of Rx descriptor registers */
|
||||
#endif
|
||||
#define RX_BUF_SIZE 1536 /* Rx Buffer size */
|
||||
#define RX_BUF_LEN 8192
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue