]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Correctly deal with inline mode on ConnectX-5
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 30 Mar 2017 13:56:10 +0000 (15:56 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 22 Apr 2017 18:52:37 +0000 (21:52 +0300)
commit71e6a705e8d169d65597390d6c02a26adb9d20ac
tree9afa132a119b77a1ce75f5356bf962fba51c4e00
parentb6558b6f963a331d21140051efd0922c72b7af91
net/mlx5: E-Switch, Correctly deal with inline mode on ConnectX-5

On ConnectX5 the wqe inline mode is "none" and hence the FW
reports MLX5_CAP_INLINE_MODE_NOT_REQUIRED.

Fix our devlink callbacks to deal with that on get and set.

Also fix the tc flow parsing code not to fail anything when
inline isn't required.

Fixes: 2b0d9e87016e ('net/mlx5: E-Switch, Add control for inline mode')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c