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 C8D68A057C; Wed, 18 Mar 2020 13:38:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8AA331BF98; Wed, 18 Mar 2020 13:38:21 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 0DD3E2BF9 for ; Wed, 18 Mar 2020 13:38:19 +0100 (CET) IronPort-SDR: 9KpC/aiLbrtUKIZAuyuRx0Bvqxk2Ed8x9QYyaJZ9FQBLAHtApzStQXRK8tycE7OMbbmzto8ANy IcQN+LHz+WoQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2020 05:38:19 -0700 IronPort-SDR: gG6ooTmqJmXfuiRngp+kIY+yH64c0lk8Yv6GYAdCDYGMVXv2N5jOamPsaFwvrRbGl9Xs5OV2JN oeH4GlUznwFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,567,1574150400"; d="scan'208";a="236626441" Received: from sivswdev08.ir.intel.com (HELO localhost.localdomain) ([10.237.217.47]) by fmsmga007.fm.intel.com with ESMTP; 18 Mar 2020 05:38:17 -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, 18 Mar 2020 12:38:08 +0000 Message-Id: <1584535089-29499-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 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 | 2 ++ 2 files changed, 5 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..f7d6dd9 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -106,6 +106,8 @@ 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 }, + { "esp", ETH_RSS_ESP }, + { "ah", ETH_RSS_AH }, { NULL, 0 }, }; -- 2.7.4