[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9c8e9ad4-22ab-4727-a345-f8e403c55294@gmail.com>
Date: Fri, 17 Jan 2025 02:38:33 +0000
From: Pavel Begunkov <asml.silence@...il.com>
To: Jakub Kicinski <kuba@...nel.org>, David Wei <dw@...idwei.uk>
Cc: io-uring@...r.kernel.org, netdev@...r.kernel.org,
Jens Axboe <axboe@...nel.dk>, Paolo Abeni <pabeni@...hat.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jesper Dangaard Brouer <hawk@...nel.org>, David Ahern <dsahern@...nel.org>,
Mina Almasry <almasrymina@...gle.com>,
Stanislav Fomichev <stfomichev@...il.com>, Joe Damato <jdamato@...tly.com>,
Pedro Tammela <pctammela@...atatu.com>
Subject: Re: [PATCH net-next v11 17/21] io_uring/zcrx: set pp memory provider
for an rx queue
On 1/17/25 02:13, Jakub Kicinski wrote:
> On Thu, 16 Jan 2025 15:16:59 -0800 David Wei wrote:
>> +static void io_close_queue(struct io_zcrx_ifq *ifq)
>> +{
>> + struct net_device *netdev;
>> + netdevice_tracker netdev_tracker;
>> + struct pp_memory_provider_params p = {
>> + .mp_ops = &io_uring_pp_zc_ops,
>> + .mp_priv = ifq,
>> + };
>> +
>> + if (ifq->if_rxq == -1)
>> + return;
>> +
>> + spin_lock(&ifq->lock);
>> + netdev = ifq->netdev;
>> + netdev_tracker = ifq->netdev_tracker;
>> + ifq->netdev = NULL;
>> + spin_unlock(&ifq->lock);
>> +
>> + if (netdev)
>> + net_mp_close_rxq(netdev, ifq->if_rxq, &p);
>> + ifq->if_rxq = -1;
>> +}
>
> Did you mean to call netdev_put() somewhere here? :S
yeah, it's missed
--
Pavel Begunkov
Powered by blists - more mailing lists