vxlan: Use nlmsg_payload in vxlan_vnifilter_dump
authorBreno Leitao <leitao@debian.org>
Tue, 15 Apr 2025 19:28:59 +0000 (12:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:33:03 +0000 (18:33 -0700)
commit9b1097a4108f5afb0911dbbbc79a8de130042665
treec91c1e3f36bd7b2e136265b3497ed7cd241dc0a4
parent04e00a849e7c25b331f103bf71a56fd078f73f8d
vxlan: Use nlmsg_payload in vxlan_vnifilter_dump

Leverage the new nlmsg_payload() helper to avoid checking for message
size and then reading the nlmsg data.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250415-nlmsg_v2-v1-8-a1c75d493fd7@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan/vxlan_vnifilter.c