aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/snic/snic_disc.h
diff options
context:
space:
mode:
authorGavin Li2022-11-25 04:15:40 +0200
committerGreg Kroah-Hartman2023-03-30 12:49:08 +0200
commit3169140ee294351d35162ecea05251add75e0377 (patch)
tree5062a3d178d44981ba86d9934ef2d55b94ed60e2 /drivers/scsi/snic/snic_disc.h
parent9cda812c76067c8a771eae43bb6943481cc7effc (diff)
net/mlx5e: Set uplink rep as NETNS_LOCAL
[ Upstream commit c83172b0639c8a005c0dd3b36252dc22ddd9f19c ] Previously, NETNS_LOCAL was not set for uplink representors, inconsistent with VF representors, and allowed the uplink representor to be moved between net namespaces and separated from the VF representors it shares the core device with. Such usage would break the isolation model of namespaces, as devices in different namespaces would have access to shared memory. To solve this issue, set NETNS_LOCAL for uplink representors if eswitch is in switchdev mode. Fixes: 7a9fb35e8c3a ("net/mlx5e: Do not reload ethernet ports when changing eswitch mode") Signed-off-by: Gavin Li <gavinl@nvidia.com> Reviewed-by: Gavi Teitz <gavi@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/scsi/snic/snic_disc.h')
0 files changed, 0 insertions, 0 deletions