Thread (21 messages) 21 messages, 7 authors, 2010-01-28

Re: [PATCH v5] rps: Receive Packet Steering

From: Ben Hutchings <hidden>
Date: 2010-01-16 02:11:38

On Thu, 2010-01-14 at 14:56 -0800, Stephen Hemminger wrote:
On Thu, 14 Jan 2010 13:56:23 -0800 (PST)
Tom Herbert [off-list ref] wrote:
[...]
quoted
The CPU masks is set on a per device basis in the sysfs variable
/sys/class/net/<device>/rps_cpus.  This is a set of canonical bit maps for
each NAPI nstance of the device.  For example:

echo "0b 0b0 0b00 0b000" > /sys/class/net/eth0/rps_cpus
Why not make a kobject out of cpus which would add subdirectory.
This would keep interface consistent with the one value per file
semantic of sysfs.
Do you mean a kobject per NAPI context, each initially with a rps_cpus
attribute holding a CPU mask, or a kobject per CPU, each with an
attribute specifying which NAPI contexts it does work for?  (Personally
I'd favour the first.)

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help