]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Disable HW LRO when PCI is slower than link on striding RQ
authorEran Ben Elisha <eranbe@mellanox.com>
Wed, 26 Apr 2017 10:42:04 +0000 (13:42 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 30 Apr 2017 13:03:20 +0000 (16:03 +0300)
commitdf85ed4be50b9628ab936716c1ed55f48adc7283
treef9c7c1bc020fad9ad85d1b8dce856137a22a5551
parent71281e5256b08aa14b4b7f6d8790fe523808ed05
net/mlx5e: Disable HW LRO when PCI is slower than link on striding RQ

We will activate the HW LRO only on servers with PCI BW > MAX LINK BW,
or when PCI BW > 16Gbps. On other cases we do not want LRO by default as
LRO sessions might get timeout and add redundant software overhead.

Tested:
ethtool -k <ifs-name> | grep large-receive-offload
On systems with and without the limitations.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Cc: kernel-team@fb.com
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c