From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C5F6CA0524 for ; Fri, 5 Feb 2021 12:37:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BCCB1188A4B; Fri, 5 Feb 2021 12:37:42 +0100 (CET) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mails.dpdk.org (Postfix) with ESMTP id 0B386188A01 for ; Fri, 5 Feb 2021 12:37:40 +0100 (CET) Received: by mail-wr1-f47.google.com with SMTP id q7so7263609wre.13 for ; Fri, 05 Feb 2021 03:37:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+nPvJ+ZPcH94AHOWEL680hfSOOu9g2/x6p7fyV4MY2Q=; b=Bt4Iges4qVSFdaythA+zm1gmD5xfcotrGCiezKGTVF2MkfpnUeK483THFnk7ijYfiZ xQkmRw3QoBXpZ/P2xBNIKfvMOt77guIn2JMS4WlnTOEMzaYx0O3wJs+qStv3WKRuHvj6 B9mmJFHfvrG5RwQwCUgonzrg4aZ6Rv7Qr6nc7x9nzYbzs+EZ0G8V03TIMEsbRGLUejEX S8YnW6NnTiy9cpG+fEfDbT41YAwXTtKVNhh3yyzGRRxfLlZ+q+DJtO1vk3DCeBeL6qPq UoxcRhjDasRx8mG1ZvfC3kR8LTIlj7bto4+dBmSb/Y6oyZgiWxJTKACM8ZZ+eBHUG2MX NIkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+nPvJ+ZPcH94AHOWEL680hfSOOu9g2/x6p7fyV4MY2Q=; b=lvTZ/xq8SvtcutTvoJSYvJ2EJzw92O/so8+M4L3+D/4f/ygjZ6IVTFUYlxn7sf3ubr avvWEsumKBwk8W3TMYbPBuPERhAV15BCideb/bc2kiPaD4M2W1bRmTRhBK/Eb9mHe5R4 SivYors+nEUXrEpaYnuuK079AHtJnB7Kc0WhV3t+bczInQkLb6gv2J6wY4PjVdhXAxRQ qkQAcfydTSkmJfITSl1FthNPgWsUZPqk95I0y03vAckzCxGLTpNQlQnTpwBc7V45jJKQ 2PkA8VyYN3WksthDe34CP3r1GSweLgqbupkoI0nLQR8TRrQE7699MIm4ecagBFGJ1zsA Pf5A== X-Gm-Message-State: AOAM531nWsifwdJJRgXt9t8zZiaPYhMy4YeRRefpJkeHovn+huvTjbe/ nwYzIFi28NV9rq8ARNOVZxQ= X-Google-Smtp-Source: ABdhPJwuJ8RYkiLs18KqImZs4qggm0T40vYt1koJlh4D/ADIixndU6Dqf3GmXJP/I+j0KtiJJ6arKA== X-Received: by 2002:adf:d0d2:: with SMTP id z18mr4766216wrh.70.1612525059781; Fri, 05 Feb 2021 03:37:39 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id o17sm11839344wrm.52.2021.02.05.03.37.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 03:37:39 -0800 (PST) From: luca.boccassi@gmail.com To: Alvin Zhang Cc: Jun W Zhou , Ferruh Yigit , dpdk stable Date: Fri, 5 Feb 2021 11:18:39 +0000 Message-Id: <20210205111920.1272063-233-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210205111920.1272063-1-luca.boccassi@gmail.com> References: <20210205111920.1272063-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'app/testpmd: fix key for RSS flow rule' has been queued to stable release 20.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/07/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/ff62c0e737d56475dc648ef33c8fc5202cba51d0 Thanks. Luca Boccassi --- >From ff62c0e737d56475dc648ef33c8fc5202cba51d0 Mon Sep 17 00:00:00 2001 From: Alvin Zhang Date: Thu, 21 Jan 2021 17:41:54 +0800 Subject: [PATCH] app/testpmd: fix key for RSS flow rule [ upstream commit b57927702a58685e46d87960aba25a7b1fa0279e ] Since the patch '1848b117' has initialized the variable 'key' in 'struct rte_flow_action_rss' with 'NULL', the PMD cannot get the RSS key now. Details as bellow: testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-other end key 1234567890123456789012345678901234567890FFFFFFFFFFFF123 4567890123456789012345678901234567890FFFFFFFFFFFF queues end / end Flow rule #1 created testpmd> show port 0 rss-hash key RSS functions: all ipv4-other ip RSS key: 4439796BB54C5023B675EA5B124F9F30B8A2C03DDFDC4D02A08C9B3 34AF64A4C05C6FA343958D8557D99583AE138C92E81150366 This patch sets offset and size of the 'key' variable as the first parameter of the token 'key'. Later, the address of the RSS key will be copied to 'key' variable. Fixes: 1848b117cca1 ("app/testpmd: fix RSS key for flow API RSS rule") Signed-off-by: Alvin Zhang Tested-by: Jun W Zhou Reviewed-by: Ferruh Yigit --- app/test-pmd/cmdline_flow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 585cab98b4..de80924e7c 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -3403,7 +3403,10 @@ static const struct token token_list[] = { .name = "key", .help = "RSS hash key", .next = NEXT(action_rss, NEXT_ENTRY(HEX)), - .args = ARGS(ARGS_ENTRY_ARB(0, 0), + .args = ARGS(ARGS_ENTRY_ARB + (offsetof(struct action_rss_data, conf) + + offsetof(struct rte_flow_action_rss, key), + sizeof(((struct rte_flow_action_rss *)0)->key)), ARGS_ENTRY_ARB (offsetof(struct action_rss_data, conf) + offsetof(struct rte_flow_action_rss, key_len), -- 2.29.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-02-05 11:18:39.444322238 +0000 +++ 0233-app-testpmd-fix-key-for-RSS-flow-rule.patch 2021-02-05 11:18:29.218698956 +0000 @@ -1 +1 @@ -From b57927702a58685e46d87960aba25a7b1fa0279e Mon Sep 17 00:00:00 2001 +From ff62c0e737d56475dc648ef33c8fc5202cba51d0 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit b57927702a58685e46d87960aba25a7b1fa0279e ] + @@ -28 +29,0 @@ -Cc: stable@dpdk.org @@ -38 +39 @@ -index 0618611ab1..067e120743 100644 +index 585cab98b4..de80924e7c 100644 @@ -41 +42 @@ -@@ -3541,7 +3541,10 @@ static const struct token token_list[] = { +@@ -3403,7 +3403,10 @@ static const struct token token_list[] = {