]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vxlan: Add an attribute to make VXLAN header validation configurable
authorPetr Machata <petrm@nvidia.com>
Thu, 5 Dec 2024 15:40:57 +0000 (16:40 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Dec 2024 22:47:05 +0000 (14:47 -0800)
commit6c11379b104e3718135fd7fc37bb254b41e4cf65
tree52506eb52537a85b7cca0f7c9f4a5dc2ca604ea3
parentbb16786ed6fdff3a67ba33ed928ae138fd4254b5
vxlan: Add an attribute to make VXLAN header validation configurable

The set of bits that the VXLAN netdevice currently considers reserved is
defined by the features enabled at the netdevice construction. In order to
make this configurable, add an attribute, IFLA_VXLAN_RESERVED_BITS. The
payload is a pair of big-endian u32's covering the VXLAN header. This is
validated against the set of flags used by the various enabled VXLAN
features, and attempts to override bits used by an enabled feature are
bounced.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/c657275e5ceed301e62c69fe8e559e32909442e2.1733412063.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan/vxlan_core.c
include/uapi/linux/if_link.h