net/mlx5e: RX, Verify MPWQE stride size is in range
authorMoshe Shemesh <moshe@mellanox.com>
Fri, 2 Nov 2018 04:10:49 +0000 (06:10 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 13 Dec 2018 09:24:44 +0000 (01:24 -0800)
commite1c15b62b7015119d3e5915cd2ae3b89d59c2576
tree0cb7d37aeb8158edbab62156402daba2f0630977
parent8956f0014ea5ed824aae3816fd9e52cf3c85b9d4
net/mlx5e: RX, Verify MPWQE stride size is in range

Add check of MPWQE stride size is within range supported by HW. In case
calculated MPWQE stride size exceed range, linear SKB can't be used and
we should use non linear MPWQE instead.

Fixes: 619a8f2a42f1 ("net/mlx5e: Use linear SKB in Striding RQ")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c