Hi John,

If I understand your question correctly, you have multiple NIC ports bound to 
the DPDK driver, and of those, you want to bind a specific port to ovs-vswitchd?

It would help me to answer your query more effectively if I had some more 
information on what your setup looks like, and what your desired OVS end-state 
configuration is, but this answer should provide some general guidance.

To provide some context, consider how the DPDK port enumeration process works, 
which is (roughly) as follows: 
- as part of the DPDK init process, PCI devices are enumerated
- enumerated devices are typically ordered from low-to-high by PCI 
Bus:Device:Function 
- for each compatible PCI function detected, DPDK checks if that PCI device is 
bound to a supported DPDK driver
- if so, that device is assigned a port ID, starting from 0 for the lowest PCI 
ID, and increasing to 1 for the next PCI ID, and so on
- for more information, consult DPDK documentation and/or the DPDK mailing list

In your case, you have (presumably) two PCI functions/NIC ports bound to a DPDK 
driver; on init, these devices are enumerated/indexed as 0 and 1, respectively.

Consequently, to add DPDK port 'N' to a bridge, simply run:

        'ovs-vsctl add-port br0 dpdkN -- set Interface dpdkN type=dpdk'


Where N = the index of the DPDK device port, as enumerated by DPDK on init.

I hope this helps.

Cheers,
Mark


>>URL added: https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md
>
>On Tue, Mar 1, 2016 at 3:22 PM, John Wei <johnt...@gmail.com> wrote:
>I am following instructions in this URL to setup ovs to use with DPDK.
>With the instruction, the first two dpdk ports were always used bu ovs:
>ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk
>ovs-vsctl add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk
>
>How to tell ovs-vswitchd to use other dpdk ports?
>
>John
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to