vxlan: vxlan_rcv(): Drop unparsed
authorPetr Machata <petrm@nvidia.com>
Thu, 5 Dec 2024 15:40:56 +0000 (16:40 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Dec 2024 22:47:04 +0000 (14:47 -0800)
commitbb16786ed6fdff3a67ba33ed928ae138fd4254b5
tree57076bd9f1587c5b4d8dacb49db5a38e33d20093
parent752b1c8d8b409f2b03e61e153696689ee081bf07
vxlan: vxlan_rcv(): Drop unparsed

The code currently validates the VXLAN header in two ways: first by
comparing it with the set of reserved bits, constructed ahead of time
during the netdevice construction; and second by gradually clearing the
bits off a separate copy of VXLAN header, "unparsed". Drop the latter
validation method.

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/4559f16c5664c189b3a4ee6f5da91f552ad4821c.1733412063.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan/vxlan_core.c