i40evf: fix RSS with less Rx queues than Tx queues
authorJingjing Wu <jingjing.wu@intel.com>
Mon, 13 Jul 2015 01:21:41 +0000 (09:21 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 19 Jul 2015 23:13:55 +0000 (01:13 +0200)
commit999a867c936aa14f7791592cc8627b622ad71f58
tree244b5382b9927ffc023d88f50c1213301cc0930e
parent492a028c659c3d34900eccb33a347243d28dcd77
i40evf: fix RSS with less Rx queues than Tx queues

I40e VF driver uses the num_queue_pairs in vf structure to construct
queue index look up table. When the nb_rx_queue is less than nb_tx_queue,
num_queue_pairs is equal to nb_tx_queue. It will make the table use
invalid queue index, then application cannot poll packets on these queues.

This patch also moves the inline function i40e_align_floor from
i40e_ethdev.c to i40e_ethdev.h.

Test report: http://dpdk.org/ml/archives/dev/2015-July/021838.html

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Tested-by: Qian Xu <qian.q.xu@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev.h
drivers/net/i40e/i40e_ethdev_vf.c