OSDN Git Service

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)
commitc415f704c8276bc686abcb0497bf2606038ca73c
tree9afa132a119b77a1ce75f5356bf962fba51c4e00
parent55378a238e04b39cc82957d91d16499704ea719b
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: bffaa916588e ('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