[ovs-discuss] Unable to hotplug interface with DPDK initialized
ian.stokes at intel.com
Thu May 16 14:34:45 UTC 2019
On 5/15/2019 10:37 PM, Shriroop Joshi (shrirjos) via discuss wrote:
> Hello ovs community
> I am trying to attach an interface (eth4-4) to a bridge (svc-br) with netdev datapath_type. Here are the steps which I follow:
> 1. Load vfio-pci driver
> 2. Bind vfio-pci driver to interface eth4-4
> (following steps as mentioned here: http://docs.openvswitch.org/en/latest/topics/dpdk/phy/#dpdk-binding-nics)
> 3. Hotplug this interface to DPDK bridge:
> # ovs-vsctl add-port svc-br eth4-4 -- set interface eth4-4 type=dpdk options:dpdk-devargs=0000:af:00.3
> (following steps as mentioned here: http://docs.openvswitch.org/en/latest/topics/dpdk/phy/#hotplugging)
> After completing these steps, I see that it shows 'Error attaching device '0000:af:00.3' to DPDK' error.
> Here are the error logs:
> 2019-05-15T21:11:20.663Z|00227|dpdk|INFO|EAL: PCI device 0000:af:00.3 on NUMA socket 1
> 2019-05-15T21:11:20.663Z|00228|dpdk|INFO|EAL: probe driver: 8086:1521 net_e1000_igb
> 2019-05-15T21:11:20.663Z|00229|dpdk|ERR|EAL: Driver cannot attach the device (0000:af:00.3)
> 2019-05-15T21:11:20.663Z|00230|netdev_dpdk|WARN|Error attaching device '0000:af:00.3' to DPDK
> 2019-05-15T21:11:20.663Z|00231|netdev|WARN|eth4-4: could not set configuration (Invalid argument)
I tried to reproduce this on my local system but could not.
What model HW NIC are you attempting to hotplug out of interest?
Also could you provide the full log for when OVS fails to hotplug as
well as when it succeeds?
I'd be interested in seeing the OVS configuration commands passed for DPDK.
> I noticed that restarting openvswitch solves this issue, and I can see the interface attached to bridge after restart.
> Here is the snippet from logs during restart:
> 2019-05-15T21:14:54.172Z|00078|dpdk|INFO|EAL: PCI device 0000:af:00.3 on NUMA socket 1
> 2019-05-15T21:14:54.172Z|00079|dpdk|INFO|EAL: probe driver: 8086:1521 net_e1000_igb
> 2019-05-15T21:14:54.174Z|00080|dpdk|INFO|EAL: using IOMMU type 1 (Type 1)
> Am I missing any step? Openvswitch documentation does not specify anything else.
> # ovs-vswitchd --version
> ovs-vswitchd (Open vSwitch) 2.9.3
> DPDK 17.11.0
> discuss mailing list
> discuss at openvswitch.org
More information about the discuss