mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
r8169: align number of tx descriptors with vendor driver
Lowest number of tx descriptors used in the vendor drivers is 256 in r8169. r8101/r8168/r8125 use 1024 what seems to be the hw limit. Stay on the safe side and go with 256, same as number of rx descriptors. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/a52a6de4-f792-5038-ae2f-240d3b7860eb@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
923ba95ea2
commit
f06059c244
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@
|
|||
|
||||
#define R8169_REGS_SIZE 256
|
||||
#define R8169_RX_BUF_SIZE (SZ_16K - 1)
|
||||
#define NUM_TX_DESC 64 /* Number of Tx descriptor registers */
|
||||
#define NUM_TX_DESC 256 /* Number of Tx descriptor registers */
|
||||
#define NUM_RX_DESC 256U /* Number of Rx descriptor registers */
|
||||
#define R8169_TX_RING_BYTES (NUM_TX_DESC * sizeof(struct TxDesc))
|
||||
#define R8169_RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))
|
||||
|
|
Loading…
Reference in a new issue