diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-13 00:34:38 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-13 00:34:38 +0000 |
commit | bc68bea2e768567ad5a1fdb0f044788cd3d7bc7e (patch) | |
tree | a9162d38ccdf30437b9732ab613d08812f127113 /target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h | |
parent | dd59caa5bdc0afcae3f43afeea37c9dc6bea7dcd (diff) | |
download | upstream-bc68bea2e768567ad5a1fdb0f044788cd3d7bc7e.tar.gz upstream-bc68bea2e768567ad5a1fdb0f044788cd3d7bc7e.tar.bz2 upstream-bc68bea2e768567ad5a1fdb0f044788cd3d7bc7e.zip |
ramips: remove interrupt coalescing, it is unnecessary with napi polling and could reduce throughput
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43952 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h | 18 |
1 files changed, 16 insertions, 2 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 8245330fbc..d26acf23d5 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 @@ -79,8 +79,22 @@ enum fe_reg { #define FE_TX_DLY_INT BIT(1) #define FE_RX_DLY_INT BIT(0) +#define FE_RX_DONE_INT FE_RX_DONE_INT0 +#define FE_TX_DONE_INT (FE_TX_DONE_INT0 | FE_TX_DONE_INT1 | \ + FE_TX_DONE_INT2 | FE_TX_DONE_INT3) + #define RT5350_RX_DLY_INT BIT(30) #define RT5350_TX_DLY_INT BIT(28) +#define RT5350_RX_DONE_INT1 BIT(17) +#define RT5350_RX_DONE_INT0 BIT(16) +#define RT5350_TX_DONE_INT3 BIT(3) +#define RT5350_TX_DONE_INT2 BIT(2) +#define RT5350_TX_DONE_INT1 BIT(1) +#define RT5350_TX_DONE_INT0 BIT(0) + +#define RT5350_RX_DONE_INT (RT5350_RX_DONE_INT0 | RT5350_RX_DONE_INT1) +#define RT5350_TX_DONE_INT (RT5350_TX_DONE_INT0 | RT5350_TX_DONE_INT1 | \ + RT5350_TX_DONE_INT2 | RT5350_TX_DONE_INT3) /* registers */ #define FE_FE_OFFSET 0x0000 @@ -367,8 +381,8 @@ struct fe_soc_data void *swpriv; u32 pdma_glo_cfg; - u32 rx_dly_int; - u32 tx_dly_int; + u32 rx_int; + u32 tx_int; u32 checksum_bit; u32 tx_udf_bit; }; |