summaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorKevin Traynor <ktraynor@redhat.com>2021-07-16 17:02:10 +0100
committerIan Stokes <ian.stokes@intel.com>2021-07-16 16:51:57 +0100
commit6193e03267c163096189ca935c6fd29a4ced7f11 (patch)
treeadfd8b3a77192641f8578354f32a0f5baa9e135b /vswitchd
parent3dd050909a74229f024da30ae4800ede79883248 (diff)
downloadopenvswitch-6193e03267c163096189ca935c6fd29a4ced7f11.tar.gz
dpif-netdev: Allow pin rxq and non-isolate PMD.
Pinning an rxq to a PMD with pmd-rxq-affinity may be done for various reasons such as reserving a full PMD for an rxq, or to ensure that multiple rxqs from a port are handled on different PMDs. Previously pmd-rxq-affinity always isolated the PMD so no other rxqs could be assigned to it by OVS. There may be cases where there is unused cycles on those pmds and the user would like other rxqs to also be able to be assigned to it by OVS. Add an option to pin the rxq and non-isolate the PMD. The default behaviour is unchanged, which is pin and isolate the PMD. In order to pin and non-isolate: ovs-vsctl set Open_vSwitch . other_config:pmd-rxq-isolate=false Note this is available only with group assignment type, as pinning conflicts with the operation of the other rxq assignment algorithms. Signed-off-by: Kevin Traynor <ktraynor@redhat.com> Acked-by: Sunil Pai G <sunil.pai.g@intel.com> Acked-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/vswitch.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml
index cf6937501..c15053b25 100644
--- a/vswitchd/vswitch.xml
+++ b/vswitchd/vswitch.xml
@@ -548,6 +548,25 @@
</p>
</column>
+ <column name="other_config" key="pmd-rxq-isolate"
+ type='{"type": "boolean"}'>
+ <p>
+ Specifies if a CPU core will be isolated after being pinned with
+ an Rx queue.
+ <p/>
+ Set this value to <code>false</code> to non-isolate a CPU core after
+ it is pinned with an Rxq using <code>pmd-rxq-affinity</code>. This
+ will allow OVS to assign other Rxqs to that CPU core.
+ </p>
+ <p>
+ The default value is <code>true</code>.
+ </p>
+ <p>
+ This can only be <code>false</code> when <code>pmd-rxq-assign</code>
+ is set to <code>group</code>.
+ </p>
+ </column>
+
<column name="other_config" key="n-handler-threads"
type='{"type": "integer", "minInteger": 1}'>
<p>