Skip to content

Commit

Permalink
net/mlx5: Remove redundant is_mdev_switchdev_mode() check from is_ib_…
Browse files Browse the repository at this point in the history
…rep_supported()

is_mdev_switchdev_mode() check is done in is_eth_rep_supported().
Function is_ib_rep_supported() calls is_eth_rep_supported().
Remove the redundant check from it.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
  • Loading branch information
Jiri Pirko authored and Saeed Mahameed committed Jun 23, 2023
1 parent 61955da commit 0d0946d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/ethernet/mellanox/mlx5/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ static bool is_ib_rep_supported(struct mlx5_core_dev *dev)
if (!is_eth_rep_supported(dev))
return false;

if (!is_mdev_switchdev_mode(dev))
return false;

if (mlx5_core_mp_enabled(dev))
return false;

Expand Down

0 comments on commit 0d0946d

Please sign in to comment.