diff options
| author | Carolina Jubran <[email protected]> | 2025-03-10 22:01:44 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-03-13 12:11:15 +0000 |
| commit | e92df790d07a8eea873efcb84776e7b71f81c7d5 (patch) | |
| tree | 7e97723f3d5e4fd68f23121fdbf8f6fe5ef0a9b9 /net/switchdev/switchdev.c | |
| parent | net/mlx5: Bridge, fix the crash caused by LAG state check (diff) | |
| download | kernel-e92df790d07a8eea873efcb84776e7b71f81c7d5.tar.gz kernel-e92df790d07a8eea873efcb84776e7b71f81c7d5.zip | |
net/mlx5e: Prevent bridge link show failure for non-eswitch-allowed devices
mlx5_eswitch_get_vepa returns -EPERM if the device lacks
eswitch_manager capability, blocking mlx5e_bridge_getlink from
retrieving VEPA mode. Since mlx5e_bridge_getlink implements
ndo_bridge_getlink, returning -EPERM causes bridge link show to fail
instead of skipping devices without this capability.
To avoid this, return -EOPNOTSUPP from mlx5e_bridge_getlink when
mlx5_eswitch_get_vepa fails, ensuring the command continues processing
other devices while ignoring those without the necessary capability.
Fixes: 4b89251de024 ("net/mlx5: Support ndo bridge_setlink and getlink")
Signed-off-by: Carolina Jubran <[email protected]>
Reviewed-by: Jianbo Liu <[email protected]>
Signed-off-by: Tariq Toukan <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
