
Issue 11
© Solarflare Communications 2014
86
Solarflare Server Adapter
User Guide
Add the following line to
/etc/modprobe.conf
file or add the options line to a user created file
under the /etc/modprobe.d directory. The file should have a .conf extension
:
options sfc rss_cpus=<option>
To set
rss_cpus
equal to the number of CPU cores:
options sfc rss_cpus=cores
Sometimes, it can be desirable to disable RSS when running single stream applications, since all
interface processing may benefit from taking place on a single CPU:
options sfc rss_cpus=1
The driver must be reloaded to enable option changes:
rmmod sfc
modprobe sfc
Table 21: rss_cpus Options
Option
Description
Interrupt Affinity (MSI-X)
<num_cpus>
Indicates the number of RSS
queues to create.
A separate MSI-X interrupt for a receive
queue is affinitized to each CPU.
packages
An RSS queue will be created for
each multi-core CPU package.
The first CPU in the package will
be chosen.
A separate MSI-X interrupt for a receive
queue, is affinitized to each of the
designated package CPUs.
cores
An RSS queue will be created for
each CPU. The first hyperthread
instance (If CPU has
hyperthreading) will be chosen.
The default option.
A separate MSI-X interrupt for a receive
queue, is affinitized to each of the
CPUs.
hyperthreads
An RSS queue will be created for
each CPU hyperthread
(hyperthreading must be
enabled).
A separate MSI-X interrupt for a receive
queue, is affinitized to each of the
hyperthreads.
NOTE:
The association of RSS receive queues to a CPU is governed by the receive queue's MSI-X
interrupt affinity. See
Interrupt and Irqbalance Service on page 91
for more details.