Skip to content
Commit b8f97554 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

net: devlink: add port type spinlock



Add spinlock to protect port type and type_dev pointer consistency.
Without that, userspace may see inconsistent type and type_dev
combinations.

Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
v1->v2:
- rebased
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b239e70
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment