]> git.baikalelectronics.ru Git - kernel.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)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Jun 2017 20:27:46 +0000 (23:27 +0300)
commita5833e51129da0388ae46f7aa8a863724f17c5a2
tree5dc5a67ec8c154e649a8ac3960fec176e8932363
parentf4ae92ce2a99f357c8eb10fbf530e60436d342e9
net/mlx5e: Fix min inline value for VF rep SQs

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: c4a0780d09d3 ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c