]> git.proxmox.com Git - ovs.git/commit - lib/netdev-dpdk.c
netdev-dpdk: fix port addition for ports sharing same PCI id
authorYuanhan Liu <yliu@fridaylinux.org>
Wed, 10 Jan 2018 03:05:29 +0000 (11:05 +0800)
committerIan Stokes <ian.stokes@intel.com>
Fri, 26 Jan 2018 20:49:18 +0000 (20:49 +0000)
commit5e758818683915fe8490ddfd0365daee3407ce6f
tree3fbcb08efd5e38130d60ec2cafb117cfec5fcf0a
parentf6f50552a3f05a7b44f759c1888d1f33e36da8c6
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>
Documentation/howto/dpdk.rst
lib/netdev-dpdk.c