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 377E5A0543 for ; Tue, 21 Jun 2022 10:12:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7FE58427EE; Tue, 21 Jun 2022 10:11:49 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2079.outbound.protection.outlook.com [40.107.243.79]) by mails.dpdk.org (Postfix) with ESMTP id 436FB427EE for ; Tue, 21 Jun 2022 10:11:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ESP7yp3FADGhSbVRJM6awzxEN/ne8PvTuNN6y+OEDKZd0wvrdimuQFyvwN9HSQgd5B6v43TIagkNzbvRz3NU28opqvqMlTXDBIgVkG2/P+fyjlFbjL5QEdchLp9nslfqKK2xBETXhTl+BM91wsU1LgRWoS/6K27GnT4osYCsANRpcgfYfHkvdSeD/KoTzmrMuFYa/0K+5NBtkAjEcP4LZKPBvLBUlQ86lKbUkleoxnl0GOdjKa7r/g/ggv0ZtX1tYh/yWrhdFbLREXb7XjZRIM6VhjNDt+mEoWXbvriYncFYwFTbPeSKW+rgR8qtBUZ46oDwLduMXZwvHGk5zQypTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+OmpMcn6HcUrk47pPSKhdxW/kW7h/OrQq35+kc1Le1g=; b=MZCEvNwXRKQBAffizrofKuUPZ2fnk/iICkArWqd2M5UE8fuI0oNwTWNQOcguMu8KHnJ7QiHWyyqatc/ZwRYdLbcsRkfaQvk22SWZjS0saMcudgVfs/IhatkkrpgynoiijNuWt6SkZNPuV2uYptL8tn64ZkQu04u4Sr1RbI97jhpuStIA+kWFHfy3yZ1u/zkPyfyyO+MoD9Kb82ZEJVCPECDLsYpJzPY0U3EJg+l5tgbetASyojO5jjjzYY+DoUlXAvhmvgpR1WnZTkwuTx4P6rAYJEd3Yg/Co3/0Gg8yiAd436XkG61al5eC3mTXbgSrzZng8XxL0LTMjjRMmVZmOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+OmpMcn6HcUrk47pPSKhdxW/kW7h/OrQq35+kc1Le1g=; b=pElPJXN5LqJgzmUgGc4x2JBwfbWC0RYvXXNBg6m4KHs366VcjxCPoSJMnaBaFyWFuj9ukJV/OVUtKaD6z5B0XBfVH+/c+3YwEFIDWX+gLGiuTNWSVqCIRpd9sTnHxCrPmuEmP8vDWq+FDPr6/gc58K7jt5CaNwtUVkXXn9swLaP9cNZVxICbmKwCQeQ9YcCT4LXqndE5luoa6QiKtnmAebI/aqJxWdz71GhZ10qvvRQSOhlS2uUUCDrwUomsD9RBnZ+bYh9C/EKbayP9wxNMZ85pHyGkU5CKNXOVNzKf2YYtu3qmQ+maO+S9tYfwifKcnlA36K6qsZx2CIwbVZOXkw== Received: from MW4PR03CA0079.namprd03.prod.outlook.com (2603:10b6:303:b6::24) by IA1PR12MB6140.namprd12.prod.outlook.com (2603:10b6:208:3e8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Tue, 21 Jun 2022 08:11:44 +0000 Received: from CO1NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b6:cafe::e1) by MW4PR03CA0079.outlook.office365.com (2603:10b6:303:b6::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14 via Frontend Transport; Tue, 21 Jun 2022 08:11:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.238) by CO1NAM11FT036.mail.protection.outlook.com (10.13.174.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5353.14 via Frontend Transport; Tue, 21 Jun 2022 08:11:43 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 21 Jun 2022 08:11:43 +0000 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 21 Jun 2022 01:11:41 -0700 From: Xueming Li To: Ke Zhang CC: Qi Zhang , dpdk stable Subject: patch 'net/iavf: fix mbuf release in multi-process' has been queued to stable release 20.11.6 Date: Tue, 21 Jun 2022 11:02:45 +0300 Message-ID: <20220621080301.2315720-100-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220621080301.2315720-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0002dcfb-db42-44b6-7eae-08da535dadab X-MS-TrafficTypeDiagnostic: IA1PR12MB6140:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gzYn4T1JXSNNjfoB6Kp+wec9+ZcywEnfcLux6W/RGVARQvh5gDtvacDlFNoOGZgkCjdQSEWZRtvXIFhRpqYA/aUfITyq6m6AC5u0lz1uIQFq42h7Rf3lwRfDjcKsYlP0XHadKZonzd+9lbaWua6zPfzBqhuIdXIgiDNTu3hquNThQk4oKaNQ3MMMYGbgR9dO5YZZ7XyaaFUmO9Ml7Umk8xNRICFsZd1hY6jo+rUjvFAgUWa5lRWxpEs2BLUhIgdufRZEF0a/XjfEF2Mg3cNo/mznKA11Y5CR+1bvDTn2gSJYgHYPe81/mFTrlRT6k6OOjvLmSRgE2JqfA7vEkTgyg2w8Xu5T9HVPnPAbKw2z9u8ktcfmqZC2HYDatLnNmOJUjGpUZmf0c377f04S8IFecnj5Dw5giTO9Ym2qlCISBWnvDysb065CWzZoI+wMSAB6WA1W4zB1o9SrLXy1O6FEeFkLmnNfKi/4kj6OWX/gttktWwZ6Rk0xuzwi2yt+8YezDKlj+NQVtvxi2u6tGLtBK+oLdeJwMUqN3wbkBmJIqNgBsPk8LNGNeV9IF1ivPZZYY24dE8pKD1Var0Cb8tOqvUxTlEyJikpTehMZxiyDaKAF6yEW3Ui9FDKcVQmrVkAhuMr0WRoqW8Mub76lQd+NmTDkO/DBxu0sdfOI+4XkoTYD/9P6DhAiL7i6w+/7YJJMSPX1MOnCBCi09FtIRD6EIvzUccpVdfcCyxVqrjlUwWfVxfFnri53V+ppIMAVobbk9sGU+3OlKy9gS4kEM2UhXH5Gz3FxdIVpho8gw/rtboIqEf2X6knJ6dTW/Y5fjhGG5DyYM1d4QlKRVh6g3VPlGcZ1HGmPQa/gkuOvl72yfkc= X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(136003)(376002)(39860400002)(396003)(346002)(40470700004)(46966006)(36840700001)(8676002)(2616005)(4326008)(70206006)(70586007)(53546011)(7696005)(41300700001)(6286002)(26005)(6916009)(86362001)(966005)(54906003)(82310400005)(478600001)(316002)(40460700003)(36860700001)(5660300002)(47076005)(426003)(336012)(186003)(16526019)(1076003)(82740400003)(81166007)(356005)(83380400001)(36756003)(2906002)(8936002)(30864003)(55016003)(40480700001)(40140700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2022 08:11:43.5701 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0002dcfb-db42-44b6-7eae-08da535dadab X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6140 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 Hi, FYI, your patch has been queued to stable release 20.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/23/22. 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/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/7ec8629367d742344b5a725ade2f3d987ff52f9f Thanks. Xueming Li --- >From 7ec8629367d742344b5a725ade2f3d987ff52f9f Mon Sep 17 00:00:00 2001 From: Ke Zhang Date: Thu, 19 May 2022 07:36:04 +0000 Subject: [PATCH] net/iavf: fix mbuf release in multi-process Cc: Xueming Li [ upstream commit fced83c1229e0ad89f26d07fa7bd46b8767d9f5c ] In the multiple process environment, the subprocess operates on the shared memory and changes the function pointer of the main process, resulting in the failure to find the address of the function when main process releasing, resulting in crash. Fixes: 319c421f3890 ("net/avf: enable SSE Rx Tx") Signed-off-by: Ke Zhang Acked-by: Qi Zhang --- drivers/net/iavf/iavf_rxtx.c | 36 ++++++++++++++++--------- drivers/net/iavf/iavf_rxtx.h | 11 ++++++++ drivers/net/iavf/iavf_rxtx_vec_avx512.c | 8 ++---- drivers/net/iavf/iavf_rxtx_vec_sse.c | 16 +++-------- 4 files changed, 41 insertions(+), 30 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 516a1684c2..7689d7fa46 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -326,12 +326,24 @@ release_txq_mbufs(struct iavf_tx_queue *txq) } } -static const struct iavf_rxq_ops def_rxq_ops = { - .release_mbufs = release_rxq_mbufs, +static const +struct iavf_rxq_ops iavf_rxq_release_mbufs_ops[] = { + [IAVF_REL_MBUFS_DEFAULT].release_mbufs = release_rxq_mbufs, +#ifdef RTE_ARCH_X86 + [IAVF_REL_MBUFS_SSE_VEC].release_mbufs = iavf_rx_queue_release_mbufs_sse, +#endif }; -static const struct iavf_txq_ops def_txq_ops = { - .release_mbufs = release_txq_mbufs, +static const +struct iavf_txq_ops iavf_txq_release_mbufs_ops[] = { + [IAVF_REL_MBUFS_DEFAULT].release_mbufs = release_txq_mbufs, +#ifdef RTE_ARCH_X86 + [IAVF_REL_MBUFS_SSE_VEC].release_mbufs = iavf_tx_queue_release_mbufs_sse, +#ifdef CC_AVX512_SUPPORT + [IAVF_REL_MBUFS_AVX512_VEC].release_mbufs = iavf_tx_queue_release_mbufs_avx512, +#endif +#endif + }; static inline void @@ -610,7 +622,7 @@ iavf_dev_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, rxq->q_set = true; dev->data->rx_queues[queue_idx] = rxq; rxq->qrx_tail = hw->hw_addr + IAVF_QRX_TAIL1(rxq->queue_id); - rxq->ops = &def_rxq_ops; + rxq->rel_mbufs_type = IAVF_REL_MBUFS_DEFAULT; if (check_rx_bulk_allow(rxq) == true) { PMD_INIT_LOG(DEBUG, "Rx Burst Bulk Alloc Preconditions are " @@ -721,7 +733,7 @@ iavf_dev_tx_queue_setup(struct rte_eth_dev *dev, txq->q_set = true; dev->data->tx_queues[queue_idx] = txq; txq->qtx_tail = hw->hw_addr + IAVF_QTX_TAIL1(queue_idx); - txq->ops = &def_txq_ops; + txq->rel_mbufs_type = IAVF_REL_MBUFS_DEFAULT; if (check_tx_vec_allow(txq) == false) { struct iavf_adapter *ad = @@ -837,7 +849,7 @@ iavf_dev_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) } rxq = dev->data->rx_queues[rx_queue_id]; - rxq->ops->release_mbufs(rxq); + iavf_rxq_release_mbufs_ops[rxq->rel_mbufs_type].release_mbufs(rxq); reset_rx_queue(rxq); dev->data->rx_queue_state[rx_queue_id] = RTE_ETH_QUEUE_STATE_STOPPED; @@ -865,7 +877,7 @@ iavf_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) } txq = dev->data->tx_queues[tx_queue_id]; - txq->ops->release_mbufs(txq); + iavf_txq_release_mbufs_ops[txq->rel_mbufs_type].release_mbufs(txq); reset_tx_queue(txq); dev->data->tx_queue_state[tx_queue_id] = RTE_ETH_QUEUE_STATE_STOPPED; @@ -880,7 +892,7 @@ iavf_dev_rx_queue_release(void *rxq) if (!q) return; - q->ops->release_mbufs(q); + iavf_rxq_release_mbufs_ops[q->rel_mbufs_type].release_mbufs(q); rte_free(q->sw_ring); rte_memzone_free(q->mz); rte_free(q); @@ -894,7 +906,7 @@ iavf_dev_tx_queue_release(void *txq) if (!q) return; - q->ops->release_mbufs(q); + iavf_txq_release_mbufs_ops[q->rel_mbufs_type].release_mbufs(q); rte_free(q->sw_ring); rte_memzone_free(q->mz); rte_free(q); @@ -928,7 +940,7 @@ iavf_stop_queues(struct rte_eth_dev *dev) txq = dev->data->tx_queues[i]; if (!txq) continue; - txq->ops->release_mbufs(txq); + iavf_txq_release_mbufs_ops[txq->rel_mbufs_type].release_mbufs(txq); reset_tx_queue(txq); dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED; } @@ -936,7 +948,7 @@ iavf_stop_queues(struct rte_eth_dev *dev) rxq = dev->data->rx_queues[i]; if (!rxq) continue; - rxq->ops->release_mbufs(rxq); + iavf_rxq_release_mbufs_ops[rxq->rel_mbufs_type].release_mbufs(rxq); reset_rx_queue(rxq); dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED; } diff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h index 5b24d2ca29..557a7e46a7 100644 --- a/drivers/net/iavf/iavf_rxtx.h +++ b/drivers/net/iavf/iavf_rxtx.h @@ -166,6 +166,7 @@ struct iavf_rx_queue { struct rte_mbuf *pkt_last_seg; /* last segment of current packet */ struct rte_mbuf fake_mbuf; /* dummy mbuf */ uint8_t rxdid; + uint8_t rel_mbufs_type; /* used for VPMD */ uint16_t rxrearm_nb; /* number of remaining to be re-armed */ @@ -220,6 +221,7 @@ struct iavf_tx_queue { uint16_t last_desc_cleaned; /* last desc have been cleaned*/ uint16_t free_thresh; uint16_t rs_thresh; + uint8_t rel_mbufs_type; uint16_t port_id; uint16_t queue_id; @@ -324,6 +326,12 @@ struct iavf_32b_rx_flex_desc_comms_ovs { } flex_ts; }; +enum iavf_rxtx_rel_mbufs_type { + IAVF_REL_MBUFS_DEFAULT = 0, + IAVF_REL_MBUFS_SSE_VEC = 1, + IAVF_REL_MBUFS_AVX512_VEC = 2, +}; + /* Receive Flex Descriptor profile IDs: There are a total * of 64 profiles where profile IDs 0/1 are for legacy; and * profiles 2-63 are flex profiles that can be programmed @@ -483,6 +491,9 @@ int iavf_txq_vec_setup_avx512(struct iavf_tx_queue *txq); uint8_t iavf_proto_xtr_type_to_rxdid(uint8_t xtr_type); void iavf_set_default_ptype_table(struct rte_eth_dev *dev); +void iavf_tx_queue_release_mbufs_avx512(struct iavf_tx_queue *txq); +void iavf_rx_queue_release_mbufs_sse(struct iavf_rx_queue *rxq); +void iavf_tx_queue_release_mbufs_sse(struct iavf_tx_queue *txq); static inline void iavf_dump_rx_descriptor(struct iavf_rx_queue *rxq, diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx512.c b/drivers/net/iavf/iavf_rxtx_vec_avx512.c index f61681474c..d56a523940 100644 --- a/drivers/net/iavf/iavf_rxtx_vec_avx512.c +++ b/drivers/net/iavf/iavf_rxtx_vec_avx512.c @@ -1681,7 +1681,7 @@ iavf_xmit_pkts_vec_avx512(void *tx_queue, struct rte_mbuf **tx_pkts, return nb_tx; } -static inline void +void __rte_cold iavf_tx_queue_release_mbufs_avx512(struct iavf_tx_queue *txq) { unsigned int i; @@ -1701,13 +1701,9 @@ iavf_tx_queue_release_mbufs_avx512(struct iavf_tx_queue *txq) } } -static const struct iavf_txq_ops avx512_vec_txq_ops = { - .release_mbufs = iavf_tx_queue_release_mbufs_avx512, -}; - int __rte_cold iavf_txq_vec_setup_avx512(struct iavf_tx_queue *txq) { - txq->ops = &avx512_vec_txq_ops; + txq->rel_mbufs_type = IAVF_REL_MBUFS_AVX512_VEC; return 0; } diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf/iavf_rxtx_vec_sse.c index e9ea17842f..b3ea8bc86d 100644 --- a/drivers/net/iavf/iavf_rxtx_vec_sse.c +++ b/drivers/net/iavf/iavf_rxtx_vec_sse.c @@ -1198,37 +1198,29 @@ iavf_xmit_pkts_vec(void *tx_queue, struct rte_mbuf **tx_pkts, return nb_tx; } -static void __rte_cold +void __rte_cold iavf_rx_queue_release_mbufs_sse(struct iavf_rx_queue *rxq) { _iavf_rx_queue_release_mbufs_vec(rxq); } -static void __rte_cold +void __rte_cold iavf_tx_queue_release_mbufs_sse(struct iavf_tx_queue *txq) { _iavf_tx_queue_release_mbufs_vec(txq); } -static const struct iavf_rxq_ops sse_vec_rxq_ops = { - .release_mbufs = iavf_rx_queue_release_mbufs_sse, -}; - -static const struct iavf_txq_ops sse_vec_txq_ops = { - .release_mbufs = iavf_tx_queue_release_mbufs_sse, -}; - int __rte_cold iavf_txq_vec_setup(struct iavf_tx_queue *txq) { - txq->ops = &sse_vec_txq_ops; + txq->rel_mbufs_type = IAVF_REL_MBUFS_SSE_VEC; return 0; } int __rte_cold iavf_rxq_vec_setup(struct iavf_rx_queue *rxq) { - rxq->ops = &sse_vec_rxq_ops; + rxq->rel_mbufs_type = IAVF_REL_MBUFS_SSE_VEC; return iavf_rxq_vec_setup_default(rxq); } -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-06-21 15:37:53.654301751 +0800 +++ 0099-net-iavf-fix-mbuf-release-in-multi-process.patch 2022-06-21 15:37:49.214451878 +0800 @@ -1 +1 @@ -From fced83c1229e0ad89f26d07fa7bd46b8767d9f5c Mon Sep 17 00:00:00 2001 +From 7ec8629367d742344b5a725ade2f3d987ff52f9f Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit fced83c1229e0ad89f26d07fa7bd46b8767d9f5c ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -24 +26 @@ -index 73e4960257..ff0c98ffc3 100644 +index 516a1684c2..7689d7fa46 100644 @@ -27 +29 @@ -@@ -362,12 +362,24 @@ release_txq_mbufs(struct iavf_tx_queue *txq) +@@ -326,12 +326,24 @@ release_txq_mbufs(struct iavf_tx_queue *txq) @@ -56 +58 @@ -@@ -681,7 +693,7 @@ iavf_dev_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, +@@ -610,7 +622,7 @@ iavf_dev_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, @@ -65 +67 @@ -@@ -821,7 +833,7 @@ iavf_dev_tx_queue_setup(struct rte_eth_dev *dev, +@@ -721,7 +733,7 @@ iavf_dev_tx_queue_setup(struct rte_eth_dev *dev, @@ -74 +76 @@ -@@ -953,7 +965,7 @@ iavf_dev_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) +@@ -837,7 +849,7 @@ iavf_dev_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) @@ -83 +85 @@ -@@ -981,7 +993,7 @@ iavf_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) +@@ -865,7 +877,7 @@ iavf_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) @@ -92 +94 @@ -@@ -996,7 +1008,7 @@ iavf_dev_rx_queue_release(struct rte_eth_dev *dev, uint16_t qid) +@@ -880,7 +892,7 @@ iavf_dev_rx_queue_release(void *rxq) @@ -101 +103 @@ -@@ -1010,7 +1022,7 @@ iavf_dev_tx_queue_release(struct rte_eth_dev *dev, uint16_t qid) +@@ -894,7 +906,7 @@ iavf_dev_tx_queue_release(void *txq) @@ -110 +112 @@ -@@ -1044,7 +1056,7 @@ iavf_stop_queues(struct rte_eth_dev *dev) +@@ -928,7 +940,7 @@ iavf_stop_queues(struct rte_eth_dev *dev) @@ -119 +121 @@ -@@ -1052,7 +1064,7 @@ iavf_stop_queues(struct rte_eth_dev *dev) +@@ -936,7 +948,7 @@ iavf_stop_queues(struct rte_eth_dev *dev) @@ -129 +131 @@ -index 642b9a700a..e8362bbd1d 100644 +index 5b24d2ca29..557a7e46a7 100644 @@ -132 +134 @@ -@@ -190,6 +190,7 @@ struct iavf_rx_queue { +@@ -166,6 +166,7 @@ struct iavf_rx_queue { @@ -140 +142 @@ -@@ -249,6 +250,7 @@ struct iavf_tx_queue { +@@ -220,6 +221,7 @@ struct iavf_tx_queue { @@ -148,2 +150,2 @@ -@@ -392,6 +394,12 @@ struct iavf_32b_rx_flex_desc_comms_ipsec { - __le32 ipsec_said; +@@ -324,6 +326,12 @@ struct iavf_32b_rx_flex_desc_comms_ovs { + } flex_ts; @@ -161 +163 @@ -@@ -695,6 +703,9 @@ int iavf_txq_vec_setup_avx512(struct iavf_tx_queue *txq); +@@ -483,6 +491,9 @@ int iavf_txq_vec_setup_avx512(struct iavf_tx_queue *txq); @@ -172 +174 @@ -index 7319d4cb65..3bfec63851 100644 +index f61681474c..d56a523940 100644 @@ -175,2 +177,2 @@ -@@ -1992,7 +1992,7 @@ iavf_xmit_pkts_vec_avx512(void *tx_queue, struct rte_mbuf **tx_pkts, - return iavf_xmit_pkts_vec_avx512_cmn(tx_queue, tx_pkts, nb_pkts, false); +@@ -1681,7 +1681,7 @@ iavf_xmit_pkts_vec_avx512(void *tx_queue, struct rte_mbuf **tx_pkts, + return nb_tx; @@ -184 +186 @@ -@@ -2012,14 +2012,10 @@ iavf_tx_queue_release_mbufs_avx512(struct iavf_tx_queue *txq) +@@ -1701,13 +1701,9 @@ iavf_tx_queue_release_mbufs_avx512(struct iavf_tx_queue *txq) @@ -199 +200,0 @@ - @@ -201 +202 @@ -index 717a227b2c..4a5232c1d2 100644 +index e9ea17842f..b3ea8bc86d 100644