]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Fix min inline value for VF rep SQs
authorChris Mi <chrism@mellanox.com>
Tue, 16 May 2017 11:07:11 +0000 (07:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:41:36 +0000 (14:41 +0200)
commit050efbe12925bc9fe1fa2695afc2ba186c1f9cc2
tree91c55cfbb13e92f449121cd6a548bfb5e81cca26
parenteb0d418f2e579a2e9de610368c3100fe58d2c0ba
net/mlx5e: Fix min inline value for VF rep SQs

[ Upstream commit 5f195c2c5cba60241004146cd12d71451d6b0fc4 ]

The offending commit only changed the code path for PF/VF, but it
didn't take care of VF representors. As a result, since
params->tx_min_inline_mode for VF representors is kzalloced to 0
(MLX5_INLINE_MODE_NONE), all VF reps SQs were set to that mode.

This actually works on CX5 by default but broke CX4. Fix that by
adding a call to query the min inline mode from the VF rep build up code.

Fixes: a6f402e49901 ("net/mlx5e: Tx, no inline copy on ConnectX-5")
Signed-off-by: Chris Mi <chrism@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c