rtnetlink: add new rtm tunnel api for tunnel id filtering
authorRoopa Prabhu <roopa@nvidia.com>
Tue, 1 Mar 2022 05:04:34 +0000 (05:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2022 08:38:02 +0000 (08:38 +0000)
commit7b8135f4df98b155b23754b6065c157861e268f1
tree709d1020f69ea8df8537d6a26ca643d772eb8ecf
parentefe0f94b333bf73dae0649937d40fbb15b3165e1
rtnetlink: add new rtm tunnel api for tunnel id filtering

This patch adds new rtm tunnel msg and api for tunnel id
filtering in dst_metadata devices. First dst_metadata
device to use the api is vxlan driver with AF_BRIDGE
family.

This and later changes add ability in vxlan driver to do
tunnel id filtering (or vni filtering) on dst_metadata
devices. This is similar to vlan api in the vlan filtering bridge.

this patch includes selinux nlmsg_route_perms support for RTM_*TUNNEL
api from Benjamin Poirier.

Signed-off-by: Roopa Prabhu <roopa@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_link.h
include/uapi/linux/rtnetlink.h
security/selinux/nlmsgtab.c