Re: [PATCH net-next] net: use napi_id_valid helper
From: Joe Damato
Date: Wed Feb 12 2025 - 17:45:37 EST
On Wed, Feb 12, 2025 at 04:15:05PM -0500, Stefano Jordhani wrote:
> In commit 6597e8d35851 ("netdev-genl: Elide napi_id when not present"),
> napi_id_valid function was added. Use the helper to refactor open-coded
> checks in the source.
>
> Suggested-by: Paolo Abeni <pabeni@xxxxxxxxxx>
> Signed-off-by: Stefano Jordhani <sjordhani@xxxxxxxxx>
> ---
> fs/eventpoll.c | 8 ++++----
> include/net/busy_poll.h | 4 ++--
> io_uring/napi.c | 4 ++--
> net/core/dev.c | 6 +++---
> net/core/netdev-genl.c | 2 +-
> net/core/page_pool_user.c | 2 +-
> net/core/sock.c | 2 +-
> net/xdp/xsk.c | 2 +-
> 8 files changed, 15 insertions(+), 15 deletions(-)
Thanks for the cleanup. As far as I can tell, LGTM.
Reviewed-by: Joe Damato <jdamato@xxxxxxxxxx>