net/mlx5e: Enable CQE compression when PCI is slower than link
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 10 May 2016 21:29:16 +0000 (00:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2016 23:42:39 +0000 (19:42 -0400)
commitb797a684b0ddeb6f78193c9b1bfae6bd824ec01a
tree2edb95f99b366a5cda5dbacacae0fc5a703cf203
parentd9d9f156f3807b07bb84c1cfb074d620383c016a
net/mlx5e: Enable CQE compression when PCI is slower than link

We turn the feature ON, only for servers with PCI BW < MAX LINK BW, as it
helps reducing PCI pressure on weak PCI slots, but it adds some software
overhead.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c