net/mlx5: Simplify eswitch mode check
Provide mlx5_core device instead of "priv" pointer while checking eswith mode. Reviewed-by:Roi Dayan <roid@nvidia.com> Signed-off-by:
Leon Romanovsky <leonro@nvidia.com>
Showing
- drivers/infiniband/hw/mlx5/counters.c 0 additions, 7 deletionsdrivers/infiniband/hw/mlx5/counters.c
- drivers/infiniband/hw/mlx5/ib_rep.c 0 additions, 5 deletionsdrivers/infiniband/hw/mlx5/ib_rep.c
- drivers/infiniband/hw/mlx5/ib_rep.h 0 additions, 6 deletionsdrivers/infiniband/hw/mlx5/ib_rep.h
- drivers/net/ethernet/mellanox/mlx5/core/dev.c 2 additions, 2 deletionsdrivers/net/ethernet/mellanox/mlx5/core/dev.c
- drivers/net/ethernet/mellanox/mlx5/core/devlink.c 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlx5/core/devlink.c
- drivers/net/ethernet/mellanox/mlx5/core/en_main.c 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlx5/core/en_main.c
- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 3 additions, 5 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_tc.c
- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 3 additions, 1 deletiondrivers/net/ethernet/mellanox/mlx5/core/eswitch.c
- include/linux/mlx5/eswitch.h 6 additions, 2 deletionsinclude/linux/mlx5/eswitch.h
Loading
Please register or sign in to comment