Re: [PATCH net-next v7 3/3] net: add sysfs attribute to control napi threaded mode
From: Wei Wang <hidden>
Date: 2021-01-20 18:14:06
On Wed, Jan 20, 2021 at 9:29 AM Florian Fainelli [off-list ref] wrote:
On 1/19/2021 7:34 PM, Wei Wang wrote:quoted
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@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Co-developed-by: Hannes Frederic Sowa <redacted> Signed-off-by: Hannes Frederic Sowa <redacted> Co-developed-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Wei Wang <redacted>Can you document the new threaded sysfs attribute under Documentation/ABI/testing/sysfs-class-net?
OK. Will do.
-- Florian