ramips: use a larger number of rx descriptors on mt7621 to work around rx overrun related packet loss
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43953
This commit is contained in:
parent
05d4b8c79b
commit
acfc6c153b
1 changed files with 4 additions and 0 deletions
|
@ -47,7 +47,11 @@ enum fe_reg {
|
||||||
#define FE_DRV_VERSION "0.1.0"
|
#define FE_DRV_VERSION "0.1.0"
|
||||||
|
|
||||||
/* power of 2 to let NEXT_TX_DESP_IDX work */
|
/* power of 2 to let NEXT_TX_DESP_IDX work */
|
||||||
|
#ifdef CONFIG_SOC_MT7621
|
||||||
|
#define NUM_DMA_DESC (1 << 9)
|
||||||
|
#else
|
||||||
#define NUM_DMA_DESC (1 << 7)
|
#define NUM_DMA_DESC (1 << 7)
|
||||||
|
#endif
|
||||||
#define MAX_DMA_DESC 0xfff
|
#define MAX_DMA_DESC 0xfff
|
||||||
|
|
||||||
#define FE_DELAY_EN_INT 0x80
|
#define FE_DELAY_EN_INT 0x80
|
||||||
|
|
Loading…
Reference in a new issue