projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61955da
)
net/mlx5: Remove redundant is_mdev_switchdev_mode() check from is_ib_rep_supported()
author
Jiri Pirko
<jiri@nvidia.com>
Thu, 1 Jun 2023 11:15:12 +0000
(13:15 +0200)
committer
Saeed Mahameed
<saeedm@nvidia.com>
Fri, 23 Jun 2023 19:27:34 +0000
(12:27 -0700)
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>
drivers/net/ethernet/mellanox/mlx5/core/dev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/dev.c
b/drivers/net/ethernet/mellanox/mlx5/core/dev.c
index 3b1e925f16d253cac971557daa281edeb86257ab..edb06fb9bbc52c6c318603e3e572d1d600525c09 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/dev.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/dev.c
@@
-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;