[ovs-discuss] Fwd: netdev-dpdk: add hotplug support

Stokes, Ian ian.stokes at intel.com
Mon Feb 13 11:36:53 UTC 2017


> -----Original Message-----
> From: ovs-discuss-bounces at openvswitch.org [mailto:ovs-discuss-
> bounces at openvswitch.org] On Behalf Of Devanath S
> Sent: Monday, February 13, 2017 6:30 AM
> To: ovs-discuss at openvswitch.org
> Subject: [ovs-discuss] Fwd: netdev-dpdk: add hotplug support
> 
> 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.

Hotplug support for DPDK devices is not supported in OVS 2.6.1. It was introduced post 2.6.1 (If you checkout the 2.6.1 tag you'll see there's no commit for DPDK hotplug), it will be in OVS 2.7 release (or accessible via the master branch currently with the commit ID you have below).

> 
> Ovs How_to documentation
> =========================
> http://docs.openvswitch.org/en/latest/howto/dpdk

I believe this is referring to the latest code committed on the master branch, it's not specific to 2.6.1.

Ian
> 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 at 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 at studenti.polito.it>
>     Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
>     Co-authored-by: Ciara Loftus <ciara.loftus at intel.com>
>     Acked-by: Stephen Finucane <stephen at that.guru>  # docs only
>     Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


More information about the discuss mailing list