From: Felix Fietkau Date: Tue, 13 Jan 2015 00:34:45 +0000 (+0000) Subject: ramips: use a larger number of rx descriptors on mt7621 to work around rx overrun... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=acfc6c153bb4559ab196c7117f49dad68fd1f419;p=openwrt%2Fstaging%2Fstintel.git ramips: use a larger number of rx descriptors on mt7621 to work around rx overrun related packet loss Signed-off-by: Felix Fietkau SVN-Revision: 43953 --- 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