]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: create helpers for checking type is an int
authorJakub Kicinski <kuba@kernel.org>
Mon, 5 Oct 2020 22:07:37 +0000 (15:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Oct 2020 13:25:55 +0000 (06:25 -0700)
commit54841ffe2609fca1aa00891e0f1920f0a23b9ce8
tree37b80b5548642d33d52980fa928628650677dda8
parent5bb236c911ddfb814df3f65b80c594eb5b96a7ff
netlink: create helpers for checking type is an int

There's a number of policies which check if type is a uint or sint.
Factor the checking against the list of value sizes to a helper
for easier reuse.

v2: - new patch

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h