diff options
author | Mark Bloch <markb@mellanox.com> | 2017-08-25 15:13:59 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-12-28 13:36:33 +0300 |
commit | 4c66df01f5a46b191df0d036fc76cc9350280bc3 (patch) | |
tree | 9545bf17ce68766ab8af5009f6557f6cc748190a /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | |
parent | 6ed1803abe401ec44eb65a4ca12d3b9da2839f45 (diff) | |
download | linux-4c66df01f5a46b191df0d036fc76cc9350280bc3.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h index 9722c2a96090..23808a65889c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h @@ -139,10 +139,9 @@ struct mlx5_esw_sq { }; struct mlx5_eswitch_rep { - int (*load)(struct mlx5_eswitch *esw, + int (*load)(struct mlx5_core_dev *dev, struct mlx5_eswitch_rep *rep); - void (*unload)(struct mlx5_eswitch *esw, - struct mlx5_eswitch_rep *rep); + void (*unload)(struct mlx5_eswitch_rep *rep); u16 vport; u8 hw_id[ETH_ALEN]; struct net_device *netdev; |