numam-dpdk/drivers/net
Tetsuya Mukawa f0aa0e9579 vhost: fix maximum of queues
Currently, the maximum value of rx/tx queues are kept by EAL. But,
the value is used like below with different meanings in vhost PMD.
 - The maximum value of current enabled queues.
 - The maximum value of current supported queues.

This wrong double meaning will cause an issue like below steps.

* Invoke application with below option.
  --vdev 'eth_vhost0,iface=<socket path>,queues=4'
* Configure queues like below.
  rte_eth_dev_configure(portid, 2, 2, ...);
* Configure queues again like below.
  rte_eth_dev_configure(portid, 4, 4, ...);

The second rte_eth_dev_configure() will fail because both
the maximum value of current enabled queues and supported queues
will be '2' after calling first rte_eth_dev_configure().

To fix the issue, the patch adds another variable to keep the maximum
number of supported queues in vhost PMD.

Fixes: 23981fb0d78b ("vhost: Add vhost PMD")

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: Ciara Loftus <ciara.loftus@intel.com>
2016-03-25 19:02:06 +01:00
..
af_packet af_packet: make the device detachable 2016-03-16 19:05:47 +01:00
bnx2x drivers: make struct of networking operations const 2016-03-25 19:01:37 +01:00
bonding drivers: make struct of networking operations const 2016-03-25 19:01:37 +01:00
cxgbe drivers: make struct of networking operations const 2016-03-25 19:01:37 +01:00
e1000 ethdev: query supported packet types 2016-03-25 18:56:43 +01:00
ena ena: add polling-mode driver 2016-03-25 18:56:43 +01:00
enic enic: fix Rx descriptor limit 2016-03-25 19:01:37 +01:00
fm10k ethdev: query supported packet types 2016-03-25 18:56:43 +01:00
i40e i40e: fix build without Rx bulk alloc 2016-03-25 19:01:38 +01:00
ixgbe ixgbe: fix RETA query and update on X550 2016-03-25 19:01:37 +01:00
mlx4 ethdev: query supported packet types 2016-03-25 18:56:43 +01:00
mlx5 mlx5: fix null RSS key handling 2016-03-25 19:01:37 +01:00
mpipe drivers: make struct of networking operations const 2016-03-25 19:01:37 +01:00
nfp drivers: make struct of networking operations const 2016-03-25 19:01:37 +01:00
null null: remove duplicate fields in internal struct 2016-03-16 19:05:47 +01:00
pcap pcap: reduce duplication 2016-03-16 19:05:47 +01:00
ring ring: free rings when detaching device 2016-03-16 19:05:47 +01:00
szedata2 drivers: make struct of networking operations const 2016-03-25 19:01:37 +01:00
vhost vhost: fix maximum of queues 2016-03-25 19:02:06 +01:00
virtio virtio: fix Rx ring descriptor starvation 2016-03-25 19:01:37 +01:00
vmxnet3 ethdev: query supported packet types 2016-03-25 18:56:43 +01:00
xenvirt mbuf: get DMA address 2016-03-04 16:01:15 +01:00
Makefile vhost: add driver on top of the library 2016-03-25 18:56:44 +01:00