]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Return the correct devlink e-switch mode
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 18 Aug 2016 18:09:09 +0000 (21:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 23:09:56 +0000 (16:09 -0700)
commitafed69c1d123e3f90714f65b2473dc63eeffe01f
tree5b157b49ffeb9257e92035176f83c5b069d6be5d
parentf741816b4b3a38a860b0e62d62b83f0d4e253235
net/mlx5: E-Switch, Return the correct devlink e-switch mode

Since mlx5 has also the NONE e-switch mode, we must translate from mlx5
mode to devlink mode on the devlink eswitch mode get call, do that.

While here, remove the mlx5_ prefix from the static function helpers
that deal with the mode to comply with the rest of the code.

Fixes: 7f723e3c09c8 ('net/mlx5e: Add devlink based SRIOV mode change')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c