]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Increase default TX ring size
authorTariq Toukan <tariqt@mellanox.com>
Thu, 15 Jun 2017 11:35:38 +0000 (14:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jun 2017 02:53:23 +0000 (22:53 -0400)
commit191f0f984e388efeb8f5fcd878b82a9a4d2f2896
tree4840870e7d26bc59ffb8800f19b001c1fb71e534
parent1b549e4e1410a501e0ddb668e938c7ddd049287f
net/mlx4_en: Increase default TX ring size

Increase the default TX ring size (from 512 to 1024) to match
the RX ring size.
This gives the XDP TX ring a better chance to keep up with the
rate of its RX ring in case of a high load of XDP_TX actions.

Tested:
Ethtool counter rx_xdp_tx_full used to increase, after applying this
patch it stopped.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Cc: kernel-team@fb.com
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h