diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-11-14 12:42:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-15 12:25:41 -0800 |
commit | 4e4337ccf780978881f8f41c5c30dad626a4a51e (patch) | |
tree | a66ec10f18f31634084cbcd272aa79c646bcd22d /drivers/net/ethernet/stmicro/stmmac/common.h | |
parent | 09146abebc788a2f133a6eae9cd6dc8c91c05047 (diff) | |
download | lwn-4e4337ccf780978881f8f41c5c30dad626a4a51e.tar.gz lwn-4e4337ccf780978881f8f41c5c30dad626a4a51e.zip |
net: stmmac: Setup a default RX Coalesce value instead of the minimum
For performance reasons, sometimes using the minimum RX Coalesce value
is not optimal. Lets setup a default value that is optimal in most of
the use cases.
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/common.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index 912bbb6515b2..309ea12ea61f 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/drivers/net/ethernet/stmicro/stmmac/common.h @@ -248,6 +248,7 @@ struct stmmac_safety_stats { /* Max/Min RI Watchdog Timer count value */ #define MAX_DMA_RIWT 0xff #define MIN_DMA_RIWT 0x10 +#define DEF_DMA_RIWT 0xa0 /* Tx coalesce parameters */ #define STMMAC_COAL_TX_TIMER 1000 #define STMMAC_MAX_COAL_TX_TICK 100000 |