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:
c97c9fe
)
net/mlx5e: E-Switch, Allow get vport api if esw exists
author
Roi Dayan
<roid@nvidia.com>
Sun, 2 Apr 2023 11:19:54 +0000
(14:19 +0300)
committer
Saeed Mahameed
<saeedm@nvidia.com>
Fri, 19 May 2023 17:50:29 +0000
(10:50 -0700)
We could have an esw manager device which is not a vport group manager.
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
index
bf97a59
..
692cea3
100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
@@
-92,7
+92,7
@@
mlx5_eswitch_get_vport(struct mlx5_eswitch *esw, u16 vport_num)
{
struct mlx5_vport *vport;
- if (!esw
|| !MLX5_CAP_GEN(esw->dev, vport_group_manager)
)
+ if (!esw)
return ERR_PTR(-EPERM);
vport = xa_load(&esw->vports, vport_num);