DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] netdev-dpdk: add hotplug support
@ 2017-02-13  6:25 Devanath S
  0 siblings, 0 replies; only message in thread
From: Devanath S @ 2017-02-13  6:25 UTC (permalink / raw)
  To: dpdk-ovs, users

Hi,


I am looking for the below feature in ovs, with 2.6.1 release it seem
to fail.  I dont see any reference to rte_eth_dev_attach()/detach()api
in the code aswell. Even though ovs 2.6 release note indicates the
support, the feature doesnt seem to work. Please advice.

Ovs How_to documentation
=========================
http://docs.openvswitch.org/en/latest/howto/dpdk
OVS supports port hotplugging, allowing the use of ports that were not
bound to DPDK when vswitchd was started. In order to attach a port, it
has to be bound to DPDK using the dpdk_nic_bind.py script: $
$DPDK_DIR/tools/dpdk_nic_bind.py --bind=igb_uio 0000:01:00.0 Then it
can be attached to OVS: $ ovs-vsctl add-port br0 dpdkx -- set
Interface dpdkx type=dpdk \ options:dpdk-devargs=0000:01:00.0 It is
also possible to detach a port from ovs, the user has to remove the
port using the del-port command, then it can be detached using: $
ovs-appctl netdev-dpdk/detach 0000:01:00.0 This feature is not
supported with VFIO and does not work with some NICs. For more
information please refer to the DPDK Port Hotplug Framework.

Code commit of the feature:
----------------------------------------
commit b8374d0d04260793db35b617eb15bba958d50003
Author: Mauricio Vásquez <mauricio.vasquezbernal@studenti.polito.it>
Date:   Thu Jan 5 10:42:08 2017 +0000

    netdev-dpdk: add hotplug support

    In order to use dpdk ports in ovs they have to be bound to a DPDK
    compatible driver before ovs is started.

    This patch adds the possibility to hotplug (or hot-unplug) a device
    after ovs has been started. The implementation adds two appctl commands:
    netdev-dpdk/attach and netdev-dpdk/detach

    After the user attaches a new device, it has to be added to a bridge
    using the add-port command, similarly, before detaching a device,
    it has to be removed using the del-port command.

    Signed-off-by: Mauricio Vasquez B
<mauricio.vasquezbernal@studenti.polito.it>
    Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
    Co-authored-by: Ciara Loftus <ciara.loftus@intel.com>
    Acked-by: Stephen Finucane <stephen@that.guru>  # docs only
    Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-13  6:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13  6:25 [dpdk-users] netdev-dpdk: add hotplug support Devanath S

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).