Thread (13 messages) 13 messages, 3 authors, 2020-11-23

Re: [PATCH net-next v3 2/5] net: add sysfs attribute to control napi threaded mode

From: Randy Dunlap <hidden>
Date: 2020-11-18 20:36:40

On 11/18/20 11:10 AM, Wei Wang wrote:
From: Paolo Abeni <pabeni@redhat.com> 

this patch adds a new sysfs attribute to the network
device class. Said attribute is a bitmask that allows controlling
the threaded mode for all the napi instances of the given
network device.

The threaded mode can be switched only if related network device
is down.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Hannes Frederic Sowa <redacted>
Signed-off-by: Wei Wang <redacted>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Hi,

Could someone describe the bitmask (is it a bit per instance of the
network device?).
And how to use the sysfs interface, please?
quoted hunk ↗ jump to hunk
---
 net/core/net-sysfs.c | 103 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 103 insertions(+)
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 94fff0700bdd..df8dd25e5e4b 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c

thanks.
-- 
~Randy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help