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 7C311A2E1B for ; Thu, 5 Sep 2019 12:18:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7053F1EF7F; Thu, 5 Sep 2019 12:18:22 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 0E8271EF7E for ; Thu, 5 Sep 2019 12:18:20 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D7803071D50; Thu, 5 Sep 2019 10:18:19 +0000 (UTC) Received: from rh.redhat.com (ovpn-117-52.ams2.redhat.com [10.36.117.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7E31519C6A; Thu, 5 Sep 2019 10:18:18 +0000 (UTC) From: Kevin Traynor To: Peng Huang Cc: Qi Zhang , dpdk stable Date: Thu, 5 Sep 2019 11:17:06 +0100 Message-Id: <20190905101754.21933-6-ktraynor@redhat.com> In-Reply-To: <20190905101754.21933-1-ktraynor@redhat.com> References: <20190905101754.21933-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Thu, 05 Sep 2019 10:18:19 +0000 (UTC) Subject: [dpdk-stable] patch 'net/i40e: fix RSS hash update for X722 VF' has been queued to LTS release 18.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 LTS release 18.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 09/12/19. 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/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/4396016a09a122d6e382e7bf052b85102c01d8e8 Thanks. Kevin Traynor --- >From 4396016a09a122d6e382e7bf052b85102c01d8e8 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Mon, 22 Jul 2019 13:50:28 +0000 Subject: [PATCH] net/i40e: fix RSS hash update for X722 VF [ upstream commit ba277e3720639ed46c0b51fab600b6e35c47eb88 ] This patch fixes X722 VF problem when received packet don't have HASH value. 1) Packet classifier types update should support X722 VF, not only for X722 PF; 2) MAC type is invalid for X722 VF when set packet classifier type, so move it after MAC type is set correctly; Fixes: a286ebeb0714 ("net/i40e: add dynamic mapping of SW flow types to HW pctypes") Signed-off-by: Peng Huang Acked-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- drivers/net/i40e/i40e_rxtx.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index de29f04cb..49bdeb329 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -1435,5 +1435,4 @@ i40evf_dev_init(struct rte_eth_dev *eth_dev) } i40e_set_default_ptype_table(eth_dev); - i40e_set_default_pctype_table(eth_dev); rte_eth_copy_pci_info(eth_dev, pci_dev); @@ -1453,4 +1452,5 @@ i40evf_dev_init(struct rte_eth_dev *eth_dev) } + i40e_set_default_pctype_table(eth_dev); rte_eal_alarm_set(I40EVF_ALARM_INTERVAL, i40evf_dev_alarm_handler, eth_dev); diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 679357bf8..4285f8420 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -3175,5 +3175,6 @@ i40e_set_default_pctype_table(struct rte_eth_dev *dev) (1ULL << I40E_FILTER_PCTYPE_L2_PAYLOAD); - if (hw->mac.type == I40E_MAC_X722) { + if (hw->mac.type == I40E_MAC_X722 || + hw->mac.type == I40E_MAC_X722_VF) { ad->pctypes_tbl[RTE_ETH_FLOW_NONFRAG_IPV4_UDP] |= (1ULL << I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP); -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2019-09-05 10:36:47.870015653 +0100 +++ 0006-net-i40e-fix-RSS-hash-update-for-X722-VF.patch 2019-09-05 10:36:47.446702054 +0100 @@ -1 +1 @@ -From ba277e3720639ed46c0b51fab600b6e35c47eb88 Mon Sep 17 00:00:00 2001 +From 4396016a09a122d6e382e7bf052b85102c01d8e8 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit ba277e3720639ed46c0b51fab600b6e35c47eb88 ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -24 +25 @@ -index 5fd34f8e6..308fb9835 100644 +index de29f04cb..49bdeb329 100644 @@ -27 +28 @@ -@@ -1487,5 +1487,4 @@ i40evf_dev_init(struct rte_eth_dev *eth_dev) +@@ -1435,5 +1435,4 @@ i40evf_dev_init(struct rte_eth_dev *eth_dev) @@ -33 +34 @@ -@@ -1505,4 +1504,5 @@ i40evf_dev_init(struct rte_eth_dev *eth_dev) +@@ -1453,4 +1452,5 @@ i40evf_dev_init(struct rte_eth_dev *eth_dev) @@ -40 +41 @@ -index 34aa6c814..692c3bab4 100644 +index 679357bf8..4285f8420 100644 @@ -43 +44 @@ -@@ -3169,5 +3169,6 @@ i40e_set_default_pctype_table(struct rte_eth_dev *dev) +@@ -3175,5 +3175,6 @@ i40e_set_default_pctype_table(struct rte_eth_dev *dev)