From: Yuanhan Liu Date: Fri, 7 Jul 2017 06:02:12 +0000 (+0800) Subject: app/testpmd: allow to query any RETA size X-Git-Tag: spdx-start~1584 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c07b3f046fcb2828e158e9ac4bf74a768f690d3d;p=dpdk.git app/testpmd: allow to query any RETA size Currently, testpmd just allows to query the RETA info only when the required size equals to configured RETA size. This patch allows to query any RETA size <= the configured size. This helps when the RETA size is big (say 512) and when I just want to peak few RETA entries. Signed-off-by: Yuanhan Liu Acked-by: Jingjing Wu --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index b2d5284dfa..828d6977f1 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2199,7 +2199,7 @@ cmd_showport_reta_parsed(void *parsed_result, memset(&dev_info, 0, sizeof(dev_info)); rte_eth_dev_info_get(res->port_id, &dev_info); - if (dev_info.reta_size == 0 || res->size != dev_info.reta_size || + if (dev_info.reta_size == 0 || res->size > dev_info.reta_size || res->size > ETH_RSS_RETA_SIZE_512) { printf("Invalid redirection table size: %u\n", res->size); return;