]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f47830dbf783662903fc8fa0545bb6b9b29425d
treeb4f1453e03ba9eb8bd4437b6d29385501922a896
parentb6c83a3ec0954cf3d8d0bbe1b092101c10ed91c1
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: 09a0a4c7df259 ('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