[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z/z5dTyAdyiBsiit@gmail.com>
Date: Mon, 14 Apr 2025 05:03:01 -0700
From: Breno Leitao <leitao@...ian.org>
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: davem@...emloft.net, dsahern@...nel.org, edumazet@...gle.com,
horms@...nel.org, kuba@...nel.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, pabeni@...hat.com
Subject: Re: [PATCH net-next 9/9] net: fib_rules: Use nlmsg_payload in
fib_valid_dumprule_req
On Fri, Apr 11, 2025 at 02:38:01PM -0700, Kuniyuki Iwashima wrote:
> From: Breno Leitao <leitao@...ian.org>
> 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@...ian.org>
>
> Reviewed-by: Kuniyuki Iwashima <kuniyu@...zon.com>
>
> You can use it for fib_newrule() and fib_delrule() where
> nlmsg_data() is prefetched.
Agree. the code becomes way more readable, and more looks like more
"net" code.
Thanks for the suggestion, I am adding an additional patch for this one.
--breno
Powered by blists - more mailing lists