From patchwork Thu Apr 8 09:17:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 417409 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp368690jai; Thu, 8 Apr 2021 02:19:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx03M2I4wIlyyVtd9BAKVNC7/HVuNtzQ32Yj7ZZtRJNHVMVaGUzqLoVx4gNlguJ6RRnIQFk X-Received: by 2002:a1c:65c2:: with SMTP id z185mr7371980wmb.2.1617873553915; Thu, 08 Apr 2021 02:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617873553; cv=none; d=google.com; s=arc-20160816; b=CUHSzygz2/GJ9SJCIq4VEFrTiVbeKZ7sdsBM2RkiYzJKkFxEna1pTdGM/UNf3esVJZ rieDDwTv8lrVerdtw/irth1FEbF3tQ2EwfwVnRVcZbd9Cqi00DJn/j0DrxLT/Ya5QOnl 0wONt5lJWf0WmMtEh5deOlv+EnDhORUwTg4vEw1sLCYoXNhoJIckT6Xra0g2sOaseRYc bj5LfXVcnOrQGj0b9mzNNdbdNaQtDhwZn+2/6YWoORNQO2R+RF3SWzY/1ZBoc12k+vqG m+b8fp1N/oLwBKEbapoGIdal+1MY508ON9KRMB3f+ivrriPTstTRVrmZmcL8o3r23RJd vLvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=rL+g/6OZzPRgoo/XmWhApHLBych+FmwRftu6rDSGUfw=; b=svWJYAuISZwst/c4QGPELXkA87fuS3J2kpqGGp8ghoJWXzuDQio8EDjl7ESFv1ifql KYtkr9B6Dpkm5hEPnx2mUEw/X3yRceLLz06RCT3w73+SujV8jMg8+IObrF72n/4e2XTc r/iQm4V5Hame3Y8F9xtXPC1+GKgQTYI9grrJlnkw0Hyqd8CO/MatLYvWYp0kFhIiEKoZ 2RLgUwjXCVkY6w/zBHVISv+KUkPnbHBJJ1m9pMu2naZnQXUoPdMo6Xo7XnxWvznDkGfd i67S/YvA1kVM4LeDuXm9+aviNpc4r/59XYA2zP9BPvYktI8RAzoTs8Pi0kZWciV9Wvef Qa6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id c2si33305947wri.261.2021.04.08.02.19.13; Thu, 08 Apr 2021 02:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74B0D141045; Thu, 8 Apr 2021 11:19:09 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by mails.dpdk.org (Postfix) with ESMTP id CE68340138 for ; Thu, 8 Apr 2021 11:19:07 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id ADBDC2023B1; Thu, 8 Apr 2021 11:19:07 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6E7082023A5; Thu, 8 Apr 2021 11:19:05 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 57C17402B1; Thu, 8 Apr 2021 11:19:02 +0200 (CEST) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com--dry-run Cc: hemant.agrawal@nxp.com Date: Thu, 8 Apr 2021 14:47:34 +0530 Message-Id: <20210408091734.21522-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210408091734.21522-1-hemant.agrawal@nxp.com> References: <20210408091734.21522-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] app/testpmd: fix missing MPLS tokens for RSS X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" This patch adds missing MPLS tokens in for RSS config. Fixes: d810252857c9 ("ethdev: add MPLS RSS offload type") Cc: hemant.agrawal@nxp.com Signed-off-by: Hemant Agrawal --- app/test-pmd/cmdline.c | 4 ++-- app/test-pmd/config.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 14110eb2e4..f272179041 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2423,7 +2423,7 @@ cmdline_parse_token_string_t cmd_config_rss_hash_key_rss_type = "ipv6-tcp-ex#ipv6-udp-ex#" "l3-src-only#l3-dst-only#l4-src-only#l4-dst-only#" "l2-src-only#l2-dst-only#s-vlan#c-vlan#" - "l2tpv3#esp#ah#pfcp#pppoe#gtpu#ecpri"); + "l2tpv3#esp#ah#pfcp#pppoe#gtpu#ecpri#mpls"); cmdline_parse_token_string_t cmd_config_rss_hash_key_value = TOKEN_STRING_INITIALIZER(struct cmd_config_rss_hash_key, key, NULL); @@ -2436,7 +2436,7 @@ cmdline_parse_inst_t cmd_config_rss_hash_key = { "l2-payload|ipv6-ex|ipv6-tcp-ex|ipv6-udp-ex|" "l3-src-only|l3-dst-only|l4-src-only|l4-dst-only|" "l2-src-only|l2-dst-only|s-vlan|c-vlan|" - "l2tpv3|esp|ah|pfcp|pppoe|gtpu|ecpri " + "l2tpv3|esp|ah|pfcp|pppoe|gtpu|ecpri|mpls " "", .tokens = { (void *)&cmd_config_rss_hash_key_port, diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index ef0b9784d0..a5e82b7a97 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -87,7 +87,7 @@ const struct rss_type_info rss_type_table[] = { { "all", ETH_RSS_ETH | ETH_RSS_VLAN | ETH_RSS_IP | ETH_RSS_TCP | ETH_RSS_UDP | ETH_RSS_SCTP | ETH_RSS_L2_PAYLOAD | ETH_RSS_L2TPV3 | ETH_RSS_ESP | ETH_RSS_AH | ETH_RSS_PFCP | - ETH_RSS_GTPU | ETH_RSS_ECPRI}, + ETH_RSS_GTPU | ETH_RSS_ECPRI | ETH_RSS_MPLS}, { "none", 0 }, { "eth", ETH_RSS_ETH }, { "l2-src-only", ETH_RSS_L2_SRC_ONLY }, @@ -137,6 +137,7 @@ const struct rss_type_info rss_type_table[] = { { "pppoe", ETH_RSS_PPPOE }, { "gtpu", ETH_RSS_GTPU }, { "ecpri", ETH_RSS_ECPRI }, + { "mpls", ETH_RSS_MPLS }, { NULL, 0 }, };