net/mlx5: E-Switch, Simplify representor load/unload callback API
authorMark Bloch <markb@mellanox.com>
Fri, 25 Aug 2017 12:13:59 +0000 (12:13 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 Dec 2017 10:36:33 +0000 (12:36 +0200)
commit4c66df01f5a46b191df0d036fc76cc9350280bc3
tree9545bf17ce68766ab8af5009f6557f6cc748190a
parent6ed1803abe401ec44eb65a4ca12d3b9da2839f45
net/mlx5: E-Switch, Simplify representor load/unload callback API

In the load() callback for loading representors we don't really need
struct mlx5_eswitch but struct mlx5_core_dev, pass it directly.

In the unload() callback for unloading representors we don't need the
struct mlx5_eswitch argument, remove it.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c