]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: Use nlmsg_payload in rtnetlink file
authorBreno Leitao <leitao@debian.org>
Thu, 17 Apr 2025 13:03:08 +0000 (06:03 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Apr 2025 01:38:00 +0000 (18:38 -0700)
commita45193018001b6fbbaaf4ae2c5c37db426d42d94
tree7343034d4fbaa3ae0bf4b552434e6d4cdae70aca
parent9929ba194299eadc80849db4cb992f4bc310401b
net: Use nlmsg_payload in rtnetlink file

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/20250417-nlmsg_v3-v1-2-9b09d9d7e61d@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/rtnetlink.c