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 7D19DA0524 for ; Fri, 5 Feb 2021 12:38:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6037B4067B; Fri, 5 Feb 2021 12:38:17 +0100 (CET) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mails.dpdk.org (Postfix) with ESMTP id 749DA188A51 for ; Fri, 5 Feb 2021 12:38:15 +0100 (CET) Received: by mail-wr1-f52.google.com with SMTP id c4so7284413wru.9 for ; Fri, 05 Feb 2021 03:38:15 -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=X2kHbXx7/WsZtcc9kR/wUwZSHoaChjaSWpdaW2ZeHxk=; b=fKX6/DfuYu79ihKPg3htMn8HzFrSJNUjN7Weq3BIc7D+66QaxeR/9iSSagT231Cv/q 0ljiuPtjvhRXuS5cI7zbnPEftEePBKyVWLebHycq78KKTH5aU+atHTL5LhYWzD0bWDVt sdNEUMEVz9U03KcRJyC93a1RG5xvkC9QUJShJ+I4DFXBciIkbqVFr4S1h4mH0+hLhSzW AFdeGFi+yBnjwgvgl73uy8TStY5JWLjuxu5b1ctEHZ3ZmLYKbolTuvbu8qyqfjMt44gd x244BMjIHwpCZCiAB/3SuUx33O5dXC1CkiGJaxdeJA+hB9LgX65oru0vAM9qa/I0M+ap FquA== 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=X2kHbXx7/WsZtcc9kR/wUwZSHoaChjaSWpdaW2ZeHxk=; b=q303r5UCSFIE4cYig1aSql4n8ESfS+8E1jLuw1XZONvcZ+i3S2Mfmod27uHdmlc/mw m22Rm7suX6QLYSqitM5aSAYXxxKygeFmFv2SvnEvYDe25rMaekBhrAZwLHVw1S/2VIq/ LBoXTlzGebEb4/iXbt8GVxuF6yAIPmU2Rj+4xiipM5GyXJdeCkjTtdoxgQuUaQSMCd2g m+5t7s27DDD0PRVB1Hj9Uyr7lTKW0kglbCnOJucMbHaAdAWEmnsRNrTU2GJ/O5KQiQz6 koJYcy/mcbYA5IsfJk6Onm3aMMMhANJENDb1HUcYGnK9NGvRcCsnJLZQ1XYMjlDwsbEz oBRw== X-Gm-Message-State: AOAM532aAqpQPuZgiUIcK49jahbRg2nThLXQdRSA/FGrU+/2L+zm9KZ6 6Edyg00KRmY/jhaHtj+CptA= X-Google-Smtp-Source: ABdhPJwGBVJmR9B9ci8OaAdiCNJDvcX8JpQ4z8J32a/XYuuPsB4tr97fgLHMw47ETRuqICd5/aYUXg== X-Received: by 2002:adf:d4ce:: with SMTP id w14mr4427311wrk.89.1612525095286; Fri, 05 Feb 2021 03:38:15 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id k6sm12443654wro.27.2021.02.05.03.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 03:38:14 -0800 (PST) From: luca.boccassi@gmail.com To: Xuan Ding Cc: Beilei Xing , dpdk stable Date: Fri, 5 Feb 2021 11:18:51 +0000 Message-Id: <20210205111920.1272063-245-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 'net/iavf: fix symmetric flow rule creation' 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/5edd02ac74a4103c429da1daccf7309fda11481e Thanks. Luca Boccassi --- >From 5edd02ac74a4103c429da1daccf7309fda11481e Mon Sep 17 00:00:00 2001 From: Xuan Ding Date: Fri, 22 Jan 2021 03:19:22 +0000 Subject: [PATCH] net/iavf: fix symmetric flow rule creation [ upstream commit 3e7ff9d5d80386b9f588f401c91b044ea08a68c5 ] Only allow to create symmetric rule for L3/L4. Fixes: 91f27b2e39ab ("net/iavf: refactor RSS") Signed-off-by: Xuan Ding Acked-by: Beilei Xing --- drivers/net/iavf/iavf_hash.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/iavf/iavf_hash.c index 27cafdf2b4..72b0117230 100644 --- a/drivers/net/iavf/iavf_hash.c +++ b/drivers/net/iavf/iavf_hash.c @@ -869,6 +869,13 @@ iavf_any_invalid_rss_type(enum rte_eth_hash_function rss_func, if (rss_type & (ETH_RSS_L3_SRC_ONLY | ETH_RSS_L3_DST_ONLY | ETH_RSS_L4_SRC_ONLY | ETH_RSS_L4_DST_ONLY)) return true; + + if (!(rss_type & + (ETH_RSS_IPV4 | ETH_RSS_IPV6 | + ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_NONFRAG_IPV6_UDP | + ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_NONFRAG_IPV6_TCP | + ETH_RSS_NONFRAG_IPV4_SCTP | ETH_RSS_NONFRAG_IPV6_SCTP))) + return true; } /* check invalid combination */ -- 2.29.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-02-05 11:18:39.973617016 +0000 +++ 0245-net-iavf-fix-symmetric-flow-rule-creation.patch 2021-02-05 11:18:29.254699641 +0000 @@ -1 +1 @@ -From 3e7ff9d5d80386b9f588f401c91b044ea08a68c5 Mon Sep 17 00:00:00 2001 +From 5edd02ac74a4103c429da1daccf7309fda11481e Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 3e7ff9d5d80386b9f588f401c91b044ea08a68c5 ] + @@ -9 +10,0 @@ -Cc: stable@dpdk.org @@ -18 +19 @@ -index f437fc3170..d8d22f8009 100644 +index 27cafdf2b4..72b0117230 100644 @@ -21 +22 @@ -@@ -927,6 +927,13 @@ iavf_any_invalid_rss_type(enum rte_eth_hash_function rss_func, +@@ -869,6 +869,13 @@ iavf_any_invalid_rss_type(enum rte_eth_hash_function rss_func,