diff options
author | Florian Westphal <fw@strlen.de> | 2017-08-09 20:41:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-10 01:57:38 +0200 |
commit | 62256f98f244fbb1c7a10465e1ee412f209d8978 (patch) | |
tree | 89b1dff314d7b5fd1e10c24ef3971f51abe9c624 /include/net/rtnetlink.h | |
parent | rtnetlink: protect handler table with rcu (diff) | |
download | linux-62256f98f244fbb1c7a10465e1ee412f209d8978.tar.xz linux-62256f98f244fbb1c7a10465e1ee412f209d8978.zip |
rtnetlink: add RTNL_FLAG_DOIT_UNLOCKED
Allow callers to tell rtnetlink core that its doit callback
should be invoked without holding rtnl mutex.
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/rtnetlink.h')
-rw-r--r-- | include/net/rtnetlink.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index ac32460a0adb..21837ca68ecc 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h @@ -8,6 +8,10 @@ typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *, struct netlink_ext_ack *); typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *); +enum rtnl_link_flags { + RTNL_FLAG_DOIT_UNLOCKED = 1, +}; + int __rtnl_register(int protocol, int msgtype, rtnl_doit_func, rtnl_dumpit_func, unsigned int flags); void rtnl_register(int protocol, int msgtype, |