From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 51DE4A0526; Thu, 9 Jul 2020 04:02:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 782CE1DC36; Thu, 9 Jul 2020 04:02:50 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id C3C511DBBC for ; Thu, 9 Jul 2020 04:02:47 +0200 (CEST) IronPort-SDR: rFyhzEgJUC+48hp2dEJE15Hd/ZzKl6M5mj1aCYF74h4HHsT+zbF9/ZHbFou1QcbWIb2py4J2VV maiQXks73PCw== X-IronPort-AV: E=McAfee;i="6000,8403,9676"; a="127995980" X-IronPort-AV: E=Sophos;i="5.75,330,1589266800"; d="scan'208";a="127995980" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2020 19:02:47 -0700 IronPort-SDR: lcYud8B40NBCRP7cs2lZriABE8K0YZRWKX8JbqVNN3IGX3h8h6lzhVsMi6TFxrIVDy97adtT9g 1bQr86V7K6CQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,330,1589266800"; d="scan'208";a="314802282" Received: from dpdk51.sh.intel.com ([10.67.111.82]) by orsmga008.jf.intel.com with ESMTP; 08 Jul 2020 19:02:45 -0700 From: Qi Zhang To: thomas@monjalon.net Cc: dev@dpdk.org, ferruh.yigit@intel.com, arybchenko@solarflare.com, Junfeng Guo , Qi Zhang Date: Thu, 9 Jul 2020 10:06:42 +0800 Message-Id: <20200709020643.18415-2-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20200709020643.18415-1-qi.z.zhang@intel.com> References: <20200708133703.48945-1-qi.z.zhang@intel.com> <20200709020643.18415-1-qi.z.zhang@intel.com> Subject: [dpdk-dev] [PATCH v6 2/3] app/testpmd: support extended RSS offload types X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Junfeng Guo This patch adds testpmd cmdline support for IPv6 prefix. Signed-off-by: Junfeng Guo Signed-off-by: Qi Zhang --- app/test-pmd/cmdline.c | 12 ++++++++++++ app/test-pmd/config.c | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 39ad93838..4ef23fd86 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2297,6 +2297,18 @@ cmd_config_rss_parsed(void *parsed_result, rss_conf.rss_hf = ETH_RSS_GENEVE; else if (!strcmp(res->value, "nvgre")) rss_conf.rss_hf = ETH_RSS_NVGRE; + else if (!strcmp(res->value, "l3-pre32")) + rss_conf.rss_hf = RTE_ETH_RSS_L3_PRE32; + else if (!strcmp(res->value, "l3-pre40")) + rss_conf.rss_hf = RTE_ETH_RSS_L3_PRE40; + else if (!strcmp(res->value, "l3-pre48")) + rss_conf.rss_hf = RTE_ETH_RSS_L3_PRE48; + else if (!strcmp(res->value, "l3-pre56")) + rss_conf.rss_hf = RTE_ETH_RSS_L3_PRE56; + else if (!strcmp(res->value, "l3-pre64")) + rss_conf.rss_hf = RTE_ETH_RSS_L3_PRE64; + else if (!strcmp(res->value, "l3-pre96")) + rss_conf.rss_hf = RTE_ETH_RSS_L3_PRE96; else if (!strcmp(res->value, "l3-src-only")) rss_conf.rss_hf = ETH_RSS_L3_SRC_ONLY; else if (!strcmp(res->value, "l3-dst-only")) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 53a9b97d6..3ac7d8f61 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -119,6 +119,12 @@ const struct rss_type_info rss_type_table[] = { { "tcp", ETH_RSS_TCP }, { "sctp", ETH_RSS_SCTP }, { "tunnel", ETH_RSS_TUNNEL }, + { "l3-pre32", RTE_ETH_RSS_L3_PRE32 }, + { "l3-pre40", RTE_ETH_RSS_L3_PRE40 }, + { "l3-pre48", RTE_ETH_RSS_L3_PRE48 }, + { "l3-pre56", RTE_ETH_RSS_L3_PRE56 }, + { "l3-pre64", RTE_ETH_RSS_L3_PRE64 }, + { "l3-pre96", RTE_ETH_RSS_L3_PRE96 }, { "l3-src-only", ETH_RSS_L3_SRC_ONLY }, { "l3-dst-only", ETH_RSS_L3_DST_ONLY }, { "l4-src-only", ETH_RSS_L4_SRC_ONLY }, -- 2.13.6