diff options
author | Yuanhan Liu <yliu@fridaylinux.org> | 2018-01-10 11:05:29 +0800 |
---|---|---|
committer | Ian Stokes <ian.stokes@intel.com> | 2018-01-26 20:49:18 +0000 |
commit | 5e758818683915fe8490ddfd0365daee3407ce6f (patch) | |
tree | 3fbcb08efd5e38130d60ec2cafb117cfec5fcf0a /Documentation/howto | |
parent | f6f50552a3f05a7b44f759c1888d1f33e36da8c6 (diff) | |
download | openvswitch-5e758818683915fe8490ddfd0365daee3407ce6f.tar.gz |
netdev-dpdk: fix port addition for ports sharing same PCI id
Some NICs have only one PCI address associated with multiple ports. This
patch extends the dpdk-devargs option's format to cater for such devices.
To achieve that, this patch uses a new syntax that will be adapted and
implemented in future DPDK release (likely, v18.05):
http://dpdk.org/ml/archives/dev/2017-December/084234.html
And since it's the DPDK duty to parse the (complete and full) syntax
and this patch is more likely to serve as an intermediate workaround,
here I take a simpler and shorter syntax from it (note it's allowed to
have only one category being provided):
class=eth,mac=00:11:22:33:44:55:66
Also, old compatibility is kept. Users can still go on with using the
PCI id to add a port (if that's enough for them). Meaning, this patch
will not break anything.
This patch is basically based on the one from Ciara:
https://mail.openvswitch.org/pipermail/ovs-dev/2017-October/339496.html
Cc: Loftus Ciara <ciara.loftus@intel.com>
Cc: Thomas Monjalon <thomas@monjalon.net>
Cc: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Yuanhan Liu <yliu@fridaylinux.org>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Diffstat (limited to 'Documentation/howto')
-rw-r--r-- | Documentation/howto/dpdk.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/howto/dpdk.rst b/Documentation/howto/dpdk.rst index 40f9d9649..d717d2ebe 100644 --- a/Documentation/howto/dpdk.rst +++ b/Documentation/howto/dpdk.rst @@ -48,6 +48,18 @@ number of dpdk devices found in the log file:: $ ovs-vsctl add-port br0 dpdk-p1 -- set Interface dpdk-p1 type=dpdk \ options:dpdk-devargs=0000:01:00.1 +Some NICs (i.e. Mellanox ConnectX-3) have only one PCI address associated +with multiple ports. Using a PCI device like above won't work. Instead, below +usage is suggested:: + + $ ovs-vsctl add-port br0 dpdk-p0 -- set Interface dpdk-p0 type=dpdk \ + options:dpdk-devargs="class=eth,mac=00:11:22:33:44:55:01" + $ ovs-vsctl add-port br0 dpdk-p1 -- set Interface dpdk-p1 type=dpdk \ + options:dpdk-devargs="class=eth,mac=00:11:22:33:44:55:02" + +Note: such syntax won't support hotplug. The hotplug is supposed to work with +future DPDK release, v18.05. + After the DPDK ports get added to switch, a polling thread continuously polls DPDK devices and consumes 100% of the core, as can be checked from ``top`` and ``ps`` commands:: |