[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <qvqwsfic3zik.fsf@dev0134.prn3.facebook.com>
Date: Mon, 21 Nov 2022 10:58:45 -0800
From: Stefan Roesch <shr@...kernel.io>
To: Ammar Faizi <ammarfaizi2@...weeb.org>
Cc: Facebook Kernel Team <kernel-team@...com>,
Jens Axboe <axboe@...nel.dk>,
Olivier Langlois <olivier@...llion01.com>,
netdev Mailing List <netdev@...r.kernel.org>,
io-uring Mailing List <io-uring@...r.kernel.org>,
Jakub Kicinski <kuba@...nel.org>
Subject: Re: [RFC PATCH v4 1/4] liburing: add api to set napi busy poll
settings
Ammar Faizi <ammarfaizi2@...weeb.org> writes:
> On 11/19/22 11:11 AM, Stefan Roesch wrote:
>> +
>> +int io_uring_register_napi(struct io_uring *ring, struct io_uring_napi *napi)
>> +{
>> + return __sys_io_uring_register(ring->ring_fd,
>> + IORING_REGISTER_NAPI, napi, 0);
>> +}
>> +
>> +int io_uring_unregister_napi(struct io_uring *ring, struct io_uring_napi *napi)
>> +{
>> + return __sys_io_uring_register(ring->ring_fd,
>> + IORING_REGISTER_NAPI, napi, 0);
>> +}
>
> The latter should be IORING_UNREGISTER_NAPI instead of IORING_REGISTER_NAPI?
> Or did I miss something?
Thats correct.
Powered by blists - more mailing lists