]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: mvpp2: adjust the coalescing parameters
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Mon, 11 Dec 2017 08:13:29 +0000 (09:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 16:16:51 +0000 (11:16 -0500)
This patch adjust the coalescing parameters to the vendor
recommendations for the PPv2 network controller.

Suggested-by: Yan Markman <ymarkman@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c

index aa72109290c3ca3f9bf291b049278bfd0f3b6377..a19760736b7189369b1413c65e927486d20d7939 100644 (file)
 /* Various constants */
 
 /* Coalescing */
-#define MVPP2_TXDONE_COAL_PKTS_THRESH  15
+#define MVPP2_TXDONE_COAL_PKTS_THRESH  64
 #define MVPP2_TXDONE_HRTIMER_PERIOD_NS 1000000UL
 #define MVPP2_TXDONE_COAL_USEC         1000
 #define MVPP2_RX_COAL_PKTS             32
-#define MVPP2_RX_COAL_USEC             100
+#define MVPP2_RX_COAL_USEC             64
 
 /* The two bytes Marvell header. Either contains a special value used
  * by Marvell switches when a specific hardware mode is enabled (not