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 4CB92A058F; Wed, 25 Mar 2020 16:56:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BA03B1C02E; Wed, 25 Mar 2020 16:56:10 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 3ED391C02C for ; Wed, 25 Mar 2020 16:56:09 +0100 (CET) IronPort-SDR: xbOmFGIrKgfDrTcdt+OCE4PlsodQ0DVy4U8t9DF3zrUcpDhmSuxx4/JCgSqBTSOU4atRp1bBZb 4Twvl25J5Bnw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 08:56:08 -0700 IronPort-SDR: b2HCko7EM58EZkZ/3RKp3BLEfrO9hYUlxcqZT9vHApEgl7rp8tWFOkKoRNn8Zd2L/Iy5IlGmw2 Wo6CRGpP576Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,304,1580803200"; d="scan'208";a="238553719" Received: from sivswdev08.ir.intel.com (HELO localhost.localdomain) ([10.237.217.47]) by fmsmga007.fm.intel.com with ESMTP; 25 Mar 2020 08:56:07 -0700 From: Bernard Iremonger To: dev@dpdk.org, beilei.xing@intel.com, qi.z.zhang@intel.com, declan.doherty@intel.com Cc: konstantin.ananyev@intel.com, Bernard Iremonger Date: Wed, 25 Mar 2020 15:55:54 +0000 Message-Id: <1585151755-15837-3-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1584535089-29499-1-git-send-email-bernard.iremonger@intel.com> References: <1584535089-29499-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-dev] [PATCH v2 2/3] app/testpmd: handle RSS offload types ESP and AH 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" parse RSS offload types ESP and AH add printf for rss_hf Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 4 +++- app/test-pmd/config.c | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index a037a55..997f063 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2338,8 +2338,10 @@ cmd_config_rss_parsed(void *parsed_result, i, -diag, strerror(-diag)); } } - if (all_updated && !use_default) + if (all_updated && !use_default) { rss_hf = rss_conf.rss_hf; + printf("rss_hf %#"PRIx64"\n", rss_hf); + } } cmdline_parse_token_string_t cmd_config_rss_port = diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 8cf84cc..df52df9 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -106,6 +106,12 @@ const struct rss_type_info rss_type_table[] = { { "l3-dst-only", ETH_RSS_L3_DST_ONLY }, { "l4-src-only", ETH_RSS_L4_SRC_ONLY }, { "l4-dst-only", ETH_RSS_L4_DST_ONLY }, + { "ipv4-esp", ETH_RSS_ESP }, + { "ipv6-esp", ETH_RSS_ESP }, + { "ipv4-udp-esp", ETH_RSS_ESP }, + { "ipv6-udp-esp", ETH_RSS_ESP }, + { "ipv4-ah", ETH_RSS_AH }, + { "ipv6-ah", ETH_RSS_AH }, { NULL, 0 }, }; -- 2.7.4