f0aa0e9579
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> |
||
---|---|---|
app | ||
config | ||
doc | ||
drivers | ||
examples | ||
lib | ||
mk | ||
pkg | ||
scripts | ||
tools | ||
.gitignore | ||
GNUmakefile | ||
LICENSE.GPL | ||
LICENSE.LGPL | ||
MAINTAINERS | ||
Makefile | ||
README |
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD license for the core libraries and drivers. The kernel components are GPLv2 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org