net: rtnetlink: add helper to extract msg type's kind
authorNikolay Aleksandrov <razor@blackwall.org>
Wed, 13 Apr 2022 10:51:52 +0000 (13:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 11:46:25 +0000 (12:46 +0100)
commit2e9ea3e30f696fd438319c07836422bb0bbb4608
tree84cc9b965e5bac0557aef733992e6c371f7f26ef
parent12dc5c2cb7b269c5a1c6d02844f40bfce942a7a6
net: rtnetlink: add helper to extract msg type's kind

Add a helper which extracts the msg type's kind using the kind mask (0x3).

Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rtnetlink.h
net/core/rtnetlink.c