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 3F143A0562; Tue, 31 Mar 2020 15:57:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DA6D61C045; Tue, 31 Mar 2020 15:56:57 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 3E3A01C025 for ; Tue, 31 Mar 2020 15:56:54 +0200 (CEST) IronPort-SDR: k7UiSwkcqK4ZF/+OxW+Ksx2gTR8dnD07rvYSs17oVTfbOBBHf9ERbxv3e7NIQWZU+6TUy2SeC9 PWvFgtHjAJvQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2020 06:56:53 -0700 IronPort-SDR: ylYNp67Tw7uiVx1F1v5DmHhWmyIVBihKNsPtCPftCoxY8Es4g+D7oC/9jXhLaW2TSKxYkf6hPK vzvFiohsytoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,327,1580803200"; d="scan'208";a="267288119" Received: from sivswdev08.ir.intel.com (HELO localhost.localdomain) ([10.237.217.47]) by orsmga002.jf.intel.com with ESMTP; 31 Mar 2020 06:56:51 -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: Tue, 31 Mar 2020 14:56:36 +0100 Message-Id: <1585662997-23618-3-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1585151755-15837-1-git-send-email-bernard.iremonger@intel.com> References: <1585151755-15837-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-dev] [PATCH v3 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