]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vxlan: vxlan_rcv(): Extract vxlan_hdr(skb) to a named variable
authorPetr Machata <petrm@nvidia.com>
Thu, 5 Dec 2024 15:40:53 +0000 (16:40 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Dec 2024 22:47:03 +0000 (14:47 -0800)
commite713130dfb4d6b5a2cd42f33a94b6ac983d2989d
tree788920d9f3605b508cfd8ce220625399c7909f5b
parentfe3dcbcfae522fae9c62954488398562ff6b5ece
vxlan: vxlan_rcv(): Extract vxlan_hdr(skb) to a named variable

Having a named reference to the VXLAN header is more handy than having to
conjure it anew through vxlan_hdr() on every use. Add a new variable and
convert several open-coded sites.

Additionally, convert one "unparsed" use to the new variable as well. Thus
the only "unparsed" uses that remain are the flag-clearing and the header
validity check at the end.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/2a0a940e883c435a0fdbcdc1d03c4858957ad00e.1733412063.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan/vxlan_core.c