[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e5714161-d8ca-d5dd-f12c-a6b206558cf9@gmail.com>
Date: Wed, 20 Jan 2021 09:28:54 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Wei Wang <weiwan@...gle.com>, David Miller <davem@...emloft.net>,
netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>
Cc: Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Hannes Frederic Sowa <hannes@...essinduktion.org>,
Felix Fietkau <nbd@....name>,
Alexander Duyck <alexander.duyck@...il.com>
Subject: Re: [PATCH net-next v7 3/3] net: add sysfs attribute to control napi
threaded mode
On 1/19/2021 7:34 PM, Wei Wang wrote:
> This patch adds a new sysfs attribute to the network device class.
> Said attribute provides a per-device control to enable/disable the
> threaded mode for all the napi instances of the given network device.
> User sets it to 1 or 0 to enable or disable threaded mode per device.
> However, when user reads from this sysfs entry, it could return:
> 1: means all napi instances belonging to this device have threaded
> mode enabled.
> 0: means all napi instances belonging to this device have threaded
> mode disabled.
> -1: means the system fails to enable threaded mode for certain napi
> instances when user requests to enable threaded mode. This happens
> when the kthread fails to be created for certain napi instances.
>
> Co-developed-by: Paolo Abeni <pabeni@...hat.com>
> Signed-off-by: Paolo Abeni <pabeni@...hat.com>
> Co-developed-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
> Signed-off-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
> Co-developed-by: Felix Fietkau <nbd@....name>
> Signed-off-by: Felix Fietkau <nbd@....name>
> Signed-off-by: Wei Wang <weiwan@...gle.com>
Can you document the new threaded sysfs attribute under
Documentation/ABI/testing/sysfs-class-net?
--
Florian
Powered by blists - more mailing lists