aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-13 00:34:45 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-13 00:34:45 +0000
commit980e0502ce10ec3eca9879026feb2d9ee087b52a (patch)
tree71fa98789ca582930d89c3d0927558ea7b47cc27 /target/linux
parentbc68bea2e768567ad5a1fdb0f044788cd3d7bc7e (diff)
downloadupstream-980e0502ce10ec3eca9879026feb2d9ee087b52a.tar.gz
upstream-980e0502ce10ec3eca9879026feb2d9ee087b52a.tar.bz2
upstream-980e0502ce10ec3eca9879026feb2d9ee087b52a.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43953 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h
index d26acf23d5..41e1268b00 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h
@@ -47,7 +47,11 @@ enum fe_reg {
#define FE_DRV_VERSION "0.1.0"
/* 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)
+#endif
#define MAX_DMA_DESC 0xfff
#define FE_DELAY_EN_INT 0x80