examples/vmdq: fix output of pools/queues

To match the pools/queues configuration, the pools/queues output
should start from VMDQ base queue. This patch fixed the issue.

Fixes: 6bb97df521 ("examples/vmdq: new app")
Cc: stable@dpdk.org

Signed-off-by: Junyu Jiang <junyux.jiang@intel.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
Tested-by: Yingya Han <yingyax.han@intel.com>
This commit is contained in:
Junyu Jiang 2020-03-02 06:41:21 +00:00 committed by Ferruh Yigit
parent 0d6ef740e4
commit 70c37e3208

View File

@ -441,10 +441,11 @@ update_mac_address(struct rte_mbuf *m, unsigned dst_port)
static void
sighup_handler(int signum)
{
unsigned q;
for (q = 0; q < num_queues; q++) {
if (q % (num_queues/num_pools) == 0)
printf("\nPool %u: ", q/(num_queues/num_pools));
unsigned int q = vmdq_queue_base;
for (; q < num_queues; q++) {
if ((q - vmdq_queue_base) % (num_vmdq_queues / num_pools) == 0)
printf("\nPool %u: ", (q - vmdq_queue_base) /
(num_vmdq_queues / num_pools));
printf("%lu ", rxPackets[q]);
}
printf("\nFinished handling signal %d\n", signum);