Re: [PATCH net-next 9/9] net: fib_rules: Use nlmsg_payload in fib_valid_dumprule_req

From: Kuniyuki Iwashima
Date: Fri Apr 11 2025 - 17:40:35 EST


From: Breno Leitao <leitao@xxxxxxxxxx>
Date: Fri, 11 Apr 2025 10:00:56 -0700
> Leverage the new nlmsg_payload() helper to avoid checking for message
> size and then reading the nlmsg data.
>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>

Reviewed-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>

You can use it for fib_newrule() and fib_delrule() where
nlmsg_data() is prefetched.