[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250614131018.6d760d19@kernel.org>
Date: Sat, 14 Jun 2025 13:10:18 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Samiullah Khawaja <skhawaja@...gle.com>
Cc: "David S . Miller " <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
almasrymina@...gle.com, willemb@...gle.com, jdamato@...tly.com,
mkarsten@...terloo.ca, netdev@...r.kernel.org
Subject: Re: [PATCH net-next v7] Add support to set napi threaded for
individual napi
On Fri, 13 Jun 2025 19:16:46 +0000 Samiullah Khawaja wrote:
> +/**
> + * napi_get_threaded - get the napi threaded state
> + * @n: napi struct to get the threaded state from
> + *
> + * Return: the per-NAPI threaded state.
> + */
> +static inline bool napi_get_threaded(struct napi_struct *n)
> +{
> + return test_bit(NAPI_STATE_THREADED, &n->state);
> +}
> +
> +/**
> + * napi_set_threaded - set napi threaded state
> + * @n: napi struct to set the threaded state on
> + * @threaded: whether this napi does threaded polling
> + *
> + * Return 0 on success and negative errno on failure.
> + */
> +int napi_set_threaded(struct napi_struct *n, bool threaded);
nit: missing : after Return
but really, I don't think we need kdoc for functions this obvious and
trivial.
--
pw-bot: cr
Powered by blists - more mailing lists