From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: [PATCH 1/2] testpmd: allow to query any RETA size Date: Fri, 7 Jul 2017 14:02:12 +0800 Message-ID: <1499407333-1682-1-git-send-email-yliu@fridaylinux.org> Cc: Jingjing Wu , Yuanhan Liu To: dev@dpdk.org Return-path: Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by dpdk.org (Postfix) with ESMTP id D3E472C8 for ; Fri, 7 Jul 2017 08:02:54 +0200 (CEST) Received: by mail-pg0-f65.google.com with SMTP id u36so2842412pgn.3 for ; Thu, 06 Jul 2017 23:02:54 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- app/test-pmd/cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 0afac68..c8faef9 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2143,7 +2143,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; -- 2.7.4