mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev-dpdk: Make get_config() report correct queue info.
With the separation of tx queue and rx queue configuration in netdev-dpdk module, the netdev_dpdk_get_config() can no longer report 'n_rxq' as tx queue configuration. This commit fixes the above issue. Reported-by: Daniele Di Proietto <ddiproietto@vmware.com> Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Daniele Di Proietto <ddiproietto@vmware.com>
This commit is contained in:
@@ -593,9 +593,8 @@ netdev_dpdk_get_config(const struct netdev *netdev_, struct smap *args)
|
||||
|
||||
ovs_mutex_lock(&dev->mutex);
|
||||
|
||||
/* XXX: Allow to configure number of queues. */
|
||||
smap_add_format(args, "configured_rx_queues", "%u", netdev_->n_rxq);
|
||||
smap_add_format(args, "configured_tx_queues", "%u", netdev_->n_rxq);
|
||||
smap_add_format(args, "configured_rx_queues", "%d", netdev_->n_rxq);
|
||||
smap_add_format(args, "configured_tx_queues", "%d", netdev_->n_txq);
|
||||
ovs_mutex_unlock(&dev->mutex);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user