projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15ddd72
)
net/mlx5: Remove redundant MLX5_ESWITCH_MANAGER() check from is_ib_rep_supported()
author
Jiri Pirko
<jiri@nvidia.com>
Thu, 1 Jun 2023 11:12:37 +0000
(13:12 +0200)
committer
Saeed Mahameed
<saeedm@nvidia.com>
Fri, 23 Jun 2023 19:27:34 +0000
(12:27 -0700)
MLX5_ESWITCH_MANAGER() 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
617ac7e
..
3b1e925
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 (!MLX5_ESWITCH_MANAGER(dev))
- return false;
-
if (!is_mdev_switchdev_mode(dev))
return false;