net/mlx5: E-Switch, Fix default encap mode
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 17 Jun 2019 10:22:28 +0000 (13:22 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 11 Jul 2019 18:45:03 +0000 (11:45 -0700)
commit9a64144d683a4395f57562d90247c61a0bf5105f
treeb4f1453e03ba9eb8bd4437b6d29385501922a896
parente858faf556d4e14c750ba1e8852783c6f9520a0e
net/mlx5: E-Switch, Fix default encap mode

Encap mode is related to switchdev mode only. Move the init of
the encap mode to eswitch_offloads. Before this change, we reported
that eswitch supports encap, even tough the device was in non
SRIOV mode.

Fixes: 7768d1971de67 ('net/mlx5: E-Switch, Add control for encapsulation')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c