aboutsummaryrefslogtreecommitdiff
path: root/net/dcb/dcbevent.c
diff options
context:
space:
mode:
authorParav Pandit2020-11-25 11:16:19 +0200
committerJakub Kicinski2020-11-25 17:26:34 -0800
commitb187c9b4178b87954dbc94e78a7094715794714f (patch)
tree1198ba7ba2156a4d6b10983528c356344cbaf12f /net/dcb/dcbevent.c
parent3cb2e6d92be637b79d6ba0746d610a8dfcc0400b (diff)
devlink: Hold rtnl lock while reading netdev attributes
A netdevice of a devlink port can be moved to different net namespace than its parent devlink instance. This scenario occurs when devlink reload is not used. When netdevice is undergoing migration to net namespace, its ifindex and name may change. In such use case, devlink port query may read stale netdev attributes. Fix it by reading them under rtnl lock. Fixes: bfcd3a466172 ("Introduce devlink infrastructure") Signed-off-by: Parav Pandit <parav@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dcb/dcbevent.c')
0 files changed, 0 insertions, 0 deletions