Files
erofs-linux/include/net/netdev_netlink.h
Stanislav Fomichev 10eef096be net: add granular lock for the netdev netlink socket
As we move away from rtnl_lock for queue ops, introduce
per-netdev_nl_sock lock.

Signed-off-by: Stanislav Fomichev <[email protected]>
Reviewed-by: Mina Almasry <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
2025-03-12 13:32:35 -07:00

13 lines
239 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __NET_NETDEV_NETLINK_H
#define __NET_NETDEV_NETLINK_H
#include <linux/list.h>
struct netdev_nl_sock {
struct mutex lock;
struct list_head bindings;
};
#endif /* __NET_NETDEV_NETLINK_H */