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 A807BA0A0E for ; Mon, 10 May 2021 18:14:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A1F7240140; Mon, 10 May 2021 18:14:26 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2089.outbound.protection.outlook.com [40.107.243.89]) by mails.dpdk.org (Postfix) with ESMTP id 79F9A410FE for ; Mon, 10 May 2021 18:14:25 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MFyMjL8Q2eMGqOr+1ce9unRgD4ebuSHqZdJDsYu/CDbqHqA/jXmi4vQtLv4Or4X/qd37NldH54bjNQTPoNS48vtd5oltCn82ItXX/hK6qp7aG/4eI8Y5mhv8lnfHIabqG+2+foDQ/nxbeGvu5FLwt6DVLPc1+gU2u4HOSLZdw2Ou0kby/h58D/9oMAfTw5bRc61bXCCmymAaCvlcueKe0SYqj4W2uCb8+A28LPAgBbA/PRGNS6Ga7TrXd1haXjpkcy9tf51Z3Y1VXPSU+6sJ3CCyH4I/x9dyaW4MlwHDi5Niwv3KKPxtTTXky7HHxxWkU8vv1XoAv9r6nJIfQw23/w== 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-SenderADCheck; bh=eLejYvn7IzcBKc+m6T5xlCNF4YphzSTRRIuBQwNtBaw=; b=LSWedigRCEnzLyMDyrn+u5y//li/kfSp91M1egfoCgcoECACaOyer1gTbVgfqBCh4t0lFPWBlPogGUhRAvV0s+8tYcrI6tNJTkNgdo06F1WidI2+fDaJN1dtWCQsZCNgHWPtX8/FXTQ4wUXO6HRrv5FxQ90Xt13EJW5hyf6HV7+EREVBorwT1t4Rjwi9z1PsfmDDzz1lAVyLI66PXAnyCnG0n1YU1C4KkOaDN9ktNrDEI6jvEynmYs2b3PlNmm2Bhveom8syf6xQNRhwRCGfmYzf8cgW2XklIaoRJTBCn2n8wVBV/uYGZ3UdvzjdnKdqH3lNGA7X+vIXrwjMcNPRvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=eLejYvn7IzcBKc+m6T5xlCNF4YphzSTRRIuBQwNtBaw=; b=twLjg1DggSlDCdt/FLQnblWu0kCk5Is9pIx7JRb8gPqFdop10jEy4Gquv4SJeJE5C1fMSg+fTHXp8N5tayvRrmAOvwdJPexZKpVRP00cZW2xM7DxZl7aPzyzkDx9o2F8xg2f+Pb1UFy7zU7qhUktf29t1jektXhUZJfJtyitM1t+3t+2vss1HgiQhtYehbaeKDn2+4dGNODDTs4RKOz7/FI9rKmrsYi58AEFn/BFuiMmL+I+aFFC45wHv7IRfW8fsdfCKTeo2vlc60KhDE8X7702eEk4SnJABdERpeX2LhqHK2hbLLQwH9xAt+anNI+T34OpC6p+BeQ9JYd+9xGT1A== Received: from MW4PR04CA0010.namprd04.prod.outlook.com (2603:10b6:303:69::15) by BN6PR12MB1300.namprd12.prod.outlook.com (2603:10b6:404:1a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.29; Mon, 10 May 2021 16:14:24 +0000 Received: from CO1NAM11FT021.eop-nam11.prod.protection.outlook.com (2603:10b6:303:69:cafe::98) by MW4PR04CA0010.outlook.office365.com (2603:10b6:303:69::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:14:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT021.mail.protection.outlook.com (10.13.175.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:14:23 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 16:14:21 +0000 From: Xueming Li To: Leyi Rong CC: Luca Boccassi , David Coyle , dpdk stable Date: Tue, 11 May 2021 00:01:02 +0800 Message-ID: <20210510160258.30982-113-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cfeed828-6b25-43ab-5827-08d913cead3a X-MS-TrafficTypeDiagnostic: BN6PR12MB1300: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qPN+zm094UjQ+Jjq+0PaF/gU09OFJJOJu2boiQbTORc9GJYrUO1eo1+cWiRy3SKOQxtCav+RtvFmwrDH3us9sydbC0GAS4C6Lr0sczWlAPTA6mppgWwPkZqLNRDcfkq/mjQOm54Z4sOSiK94WSnPgFtQkH7m446nUmnyDCacDD8rVPPiKGvd1rcodegwCP/ygZ40mLhqZQBsi2hGEv08a/nHN5m6OahzG14AmQfgLhuSNBarUSd1uODfaUCtHU8YhMK4anIp/AK7R1KGeoXWJL56jvSWmd7L0zteEI/CkRUvpzYzu3AwfQFDHWpvL/rwV5z/czkXA3FJLGPafx+ls8cgRzI7vgaxwEDziC4mwEKpiifIQQjk0e/7dH7BcYHuI8BjaLrVNAok0+qIUGWi0cnLl/SDu6ify8I3urxrOTMNI8FhRovhySDtVPw9jS0suQgHxxXYPyDy4HwLHTat9D5v4TF5UJCuYr74KgizoX4szX+esu1FerAyX0Owjja20OkCFJ7uIiLgUISzbrvhfFc8HRIrErnwRSS7L6a3cRkfADcsorWj3Cx3wrglpXdcORwrA54TIprxGKObf7s0Qk2uubX15h0JGT7gfAmrB8aCLN1QfI6MYBjDGAf/GhoW0jpC0aHYPG7BcAUcb5lBfLb1RwQuibHbbxuA03NveTcLluBTdMth8Ez1I7n/reCN6yqNZ2Z+0T2vWoXwT6r++cgwoJWQaChKcld/AvL9/8ELFPfSXXJmZq/qNT2pCrvqh1MX/YFk0aNvpNL/EFdLzw== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(376002)(396003)(346002)(39860400002)(36840700001)(46966006)(16526019)(186003)(70586007)(26005)(82310400003)(53546011)(2906002)(8936002)(47076005)(4326008)(316002)(6666004)(70206006)(36906005)(86362001)(426003)(966005)(5660300002)(8676002)(83380400001)(6286002)(2616005)(6916009)(336012)(478600001)(54906003)(7636003)(82740400003)(55016002)(7696005)(36860700001)(36756003)(356005)(1076003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:14:23.9059 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cfeed828-6b25-43ab-5827-08d913cead3a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT021.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1300 Subject: [dpdk-stable] patch 'net/iavf: fix packet length parsing in AVX512' has been queued to stable release 20.11.2 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.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/12/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/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/ddb17b5462d5b54579e201ef3530abe0f1f0f7b1 Thanks. Xueming Li --- >From ddb17b5462d5b54579e201ef3530abe0f1f0f7b1 Mon Sep 17 00:00:00 2001 From: Leyi Rong Date: Wed, 17 Mar 2021 17:17:56 +0800 Subject: [PATCH] net/iavf: fix packet length parsing in AVX512 Cc: Luca Boccassi [ upstream commit fecbc64cb3647531062a8b97bd62a98bee05e773 ] Fix pkt_len parsing when DEV_RX_OFFLOAD_KEEP_CRC is set in AVX512 path. Fixes: 31737f2b66fb ("net/iavf: enable AVX512 for legacy Rx") Fixes: 6df587028e57 ("net/iavf: enable AVX512 for flexible Rx") Signed-off-by: Leyi Rong Tested-by: David Coyle --- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx512.c b/drivers/net/iavf/iavf_rxtx_vec_avx512.c index 584d12ea36..4aae99031e 100644 --- a/drivers/net/iavf/iavf_rxtx_vec_avx512.c +++ b/drivers/net/iavf/iavf_rxtx_vec_avx512.c @@ -380,7 +380,7 @@ _iavf_recv_raw_pkts_vec_avx512(struct iavf_rx_queue *rxq, len4_7); __m512i mb4_7 = _mm512_shuffle_epi8(desc4_7, shuf_msk); - mb4_7 = _mm512_add_epi16(mb4_7, crc_adjust); + mb4_7 = _mm512_add_epi32(mb4_7, crc_adjust); /** * to get packet types, shift 64-bit values down 30 bits * and so ptype is in lower 8-bits in each @@ -411,7 +411,7 @@ _iavf_recv_raw_pkts_vec_avx512(struct iavf_rx_queue *rxq, len0_3); __m512i mb0_3 = _mm512_shuffle_epi8(desc0_3, shuf_msk); - mb0_3 = _mm512_add_epi16(mb0_3, crc_adjust); + mb0_3 = _mm512_add_epi32(mb0_3, crc_adjust); /* get the packet types */ const __m512i ptypes0_3 = _mm512_srli_epi64(desc0_3, 30); const __m256i ptypes2_3 = _mm512_extracti64x4_epi64(ptypes0_3, 1); @@ -869,7 +869,7 @@ _iavf_recv_raw_pkts_vec_avx512_flex_rxd(struct iavf_rx_queue *rxq, */ __m512i mb4_7 = _mm512_shuffle_epi8(raw_desc4_7, shuf_msk); - mb4_7 = _mm512_add_epi16(mb4_7, crc_adjust); + mb4_7 = _mm512_add_epi32(mb4_7, crc_adjust); /** * to get packet types, ptype is located in bit16-25 * of each 128bits @@ -898,7 +898,7 @@ _iavf_recv_raw_pkts_vec_avx512_flex_rxd(struct iavf_rx_queue *rxq, */ __m512i mb0_3 = _mm512_shuffle_epi8(raw_desc0_3, shuf_msk); - mb0_3 = _mm512_add_epi16(mb0_3, crc_adjust); + mb0_3 = _mm512_add_epi32(mb0_3, crc_adjust); /** * to get packet types, ptype is located in bit16-25 * of each 128bits -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:29.551805700 +0800 +++ 0114-net-iavf-fix-packet-length-parsing-in-AVX512.patch 2021-05-10 23:59:26.510000000 +0800 @@ -1 +1 @@ -From fecbc64cb3647531062a8b97bd62a98bee05e773 Mon Sep 17 00:00:00 2001 +From ddb17b5462d5b54579e201ef3530abe0f1f0f7b1 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit fecbc64cb3647531062a8b97bd62a98bee05e773 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 5cb4c7cda6..67184ae3f4 100644 +index 584d12ea36..4aae99031e 100644