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)
commit0f6e4cf67411631be7f010fdb5c2d82c0c8705c0
treef9c7c1bc020fad9ad85d1b8dce856137a22a5551
parentb1b03bded1ee8b88ad85055a15d5f62ab6ddde44
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