net/mlx5e: Expand WQE stride when CQE compression is enabled
authorTariq Toukan <tariqt@mellanox.com>
Tue, 10 May 2016 21:29:15 +0000 (00:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2016 23:42:39 +0000 (19:42 -0400)
commitd9d9f156f3807b07bb84c1cfb074d620383c016a
tree63f69043585e17dd94d6e0c92c2c96d710a03dc5
parent7219ab34f184b5d864be38f5ada7cdff1ab5b18a
net/mlx5e: Expand WQE stride when CQE compression is enabled

Make the MPWQE/Striding RQ default configuration dynamic and not
statically set at compile time.  Now at driver load we set
stride size and num strides dynamically.

By default we use same values as before, but when CQE compression
is enabled, we set larger stride size to benefit from CQE
compression for larger packets.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@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_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c