summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorGavin Li <gavinl@nvidia.com>2023-02-09 13:48:52 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-03-22 00:06:31 +0300
commit662404b24a4c4d839839ed25e3097571f5938b9b (patch)
treeaab5a095b77cfbd83d2cb3d3b5e341dd1496406b /scripts/gdb/linux/utils.py
parentc83172b0639c8a005c0dd3b36252dc22ddd9f19c (diff)
downloadlinux-662404b24a4c4d839839ed25e3097571f5938b9b.tar.xz
net/mlx5e: Block entering switchdev mode with ns inconsistency
Upon entering switchdev mode, VF/SF representors are spawned in the devlink instance's net namespace, whereas the PF net device transforms into the uplink representor, remaining in the net namespace the PF net device was in. Therefore, if a PF net device's namespace is different from its parent devlink net namespace, entering switchdev mode can create an illegal situation where all representors sharing the same core device are NOT in the same net namespace. To avoid this issue, block entering switchdev mode for devices whose child netdev net namespace has diverged from the parent devlink's. Fixes: 7768d1971de6 ("net/mlx5: E-Switch, Add control for encapsulation") Signed-off-by: Gavin Li <gavinl@nvidia.com> Reviewed-by: Gavi Teitz <gavi@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions