[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c14e49f1-3ded-1d7b-ef3d-938e8c405926@huawei.com>
Date: Fri, 21 Jul 2023 20:35:53 +0800
From: Yunsheng Lin <linyunsheng@...wei.com>
To: Liang Chen <liangchen.linux@...il.com>
CC: <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <hawk@...nel.org>, <ilias.apalodimas@...aro.org>,
<daniel@...earbox.net>, <ast@...nel.org>, <netdev@...r.kernel.org>
Subject: Re: [RFC PATCH net-next 1/2] net: veth: Page pool creation error
handling for existing pools only
On 2023/7/21 19:17, Liang Chen wrote:
>> There is NULL checking in page_pool_destroy(),
>> priv->rq[i].page_pool is set to NULL here, and the kcalloc()
>> in veth_alloc_queues() ensure it is NULL initially, maybe it
>> is fine as it is?
>>
>
> Sure, it doesn't cause any real problem.
>
> This was meant to align err_page_pool handling with the case above
> (though ptr_ring_cleanup cannot take an uninitialized ring), and it
> doesn't always need to loop from start to end.
>
I suppose it is for the preparation of the next patch, right?
In that case, maybe make it clear in the commit log.
Powered by blists - more mailing lists