dpif-netdev: Create multiple tx/rx queues when adding dpdk interface.
authorAlex Wang <alexw@nicira.com>
Tue, 17 Jun 2014 17:52:20 +0000 (10:52 -0700)
committerAlex Wang <alexw@nicira.com>
Mon, 15 Sep 2014 18:43:48 +0000 (11:43 -0700)
commit5a0340647741260c5cc87327e84a13cb851bb1b4
tree85aaf36538dff7a822c1c6c9b427723f8734fab6
parent5496878cbf52f3819601f7bd925adc06890add9d
dpif-netdev: Create multiple tx/rx queues when adding dpdk interface.

Before this commit, ovs creates one tx and one rx queue for
each dpdk interface and uses only one poll thread for handling
I/O of all dpdk interfaces.  An upcoming patch will allow multiple
poll threads be created.  As a preparation, this commit changes
the dpif-netdev to create multiple tx/rx queues when the dpdk
interface is added.

Specifically, the number of rx queues will still be one per-dpdk
interface for this commit.  But upcoming work will allow user
create multiple rx queues.  The number of tx queues will be the
number of cpu cores on the machine.  Although not all the tx queues
will be used, each poll thread will have its own queue for
transmission on the dpdk interface.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/dpif-netdev.c
lib/netdev-dpdk.c