diff options
| author | Nikolay Aleksandrov <razor@blackwall.org> | 2022-04-13 13:51:51 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-29 14:01:21 +0100 |
| commit | 988d372da4991ec01f3627e08351c31939b850ba (patch) | |
| tree | 06c77be75b35d2a7cd3d01169d10dcd5ff2765c5 /include | |
| parent | 2b42a595863556b394bd702d46f4a9d0d2985aaa (diff) | |
| download | linux-988d372da4991ec01f3627e08351c31939b850ba.tar.gz linux-988d372da4991ec01f3627e08351c31939b850ba.tar.bz2 linux-988d372da4991ec01f3627e08351c31939b850ba.zip | |
net: rtnetlink: add msg kind names
[ Upstream commit 12dc5c2cb7b269c5a1c6d02844f40bfce942a7a6 ]
Add rtnl kind names instead of using raw values. We'll need to
check for DEL kind later to validate bulk flag support.
Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: bf29555f5bdc ("rtnetlink: Allow deleting FDB entries in user namespace")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/rtnetlink.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index 5c2a73bbfabe..74eff5259b36 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h @@ -13,6 +13,13 @@ enum rtnl_link_flags { RTNL_FLAG_DOIT_UNLOCKED = 1, }; +enum rtnl_kinds { + RTNL_KIND_NEW, + RTNL_KIND_DEL, + RTNL_KIND_GET, + RTNL_KIND_SET +}; + void rtnl_register(int protocol, int msgtype, rtnl_doit_func, rtnl_dumpit_func, unsigned int flags); int rtnl_register_module(struct module *owner, int protocol, int msgtype, |
