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 68CD4A0A0E for ; Mon, 10 May 2021 18:13:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D8ED40140; Mon, 10 May 2021 18:13:34 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2061.outbound.protection.outlook.com [40.107.92.61]) by mails.dpdk.org (Postfix) with ESMTP id 5087D410FF for ; Mon, 10 May 2021 18:13:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A1aa092ujuDxeV+FWlP6+27dBvz2QN9hadGCUwoturYCHPsyXpcDWcSNEQJNLJMXoyA7S0vItksm5I0AsaJ/AtECI0nVsMz0jhBtGkxyBzmNV15MHoz38rVJsp6Trhig0qZlzZ2h5pGHURqSF3hbow+v9O4+7hv+yNYXQ3YACnhsBQEKSDQIfuDr+uqjGC5RN+ADHGBMLNtgZHOk2Bi21HvUDjkroizD8cpxgxVLz1zFQWKSPmoPn/9NLtRSGO8bnwwDh9w1MAsPt4UDyKAR8f7wqEHLZ6P3OhVLgvkXNR9SE3LwI6vmoc0d/91mgYDWCYcbVV/Pptdfyv0AVDfhjg== 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=LRRjhp27XGeQoeTUbzvi4n/ODfya7uztNjd3xjKMUxQ=; b=JRVNkxmA3y0E2CwI0/xMgQZ01Jd/6FcDjmn8p4xSnwTlvqFZAyr2h31cU/gjXAk6eAdO+/Jt+BcT/dyjbeZCa6T5YJMA2+mkN7+eDZZu+lgnYzvA8I2RPFs1tJVmLhyIEbh2px65NSdAxXnuxx7SH7ve8fL40quj6daUMz2hSP++3+SGC2Mh7YNUgcUMFCNTPLRDroarGBx03t8kH4glAE0Tsm/+yzV58mxp4AKYPnCjLRzGQGlHAT0z5sASX2qXX+BjurfBu0jHgIbejQVJWlJeGIQVJ4oiwDv4JKxENqRYgvsVAQyGhrJp2YqMCs5GQ7sytv5BQ0ZkEdDIVUOCrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=huawei.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=LRRjhp27XGeQoeTUbzvi4n/ODfya7uztNjd3xjKMUxQ=; b=ciY8UJ/85AehTVujB0Vu9bQkZgE1Tb2mMpb7tu0irTV8/dB1d7zzqxurO3HI/TFuRVC/2ezdYH0N+fJx1LmuRWXxIg8eti4RQ6kjsUdsfdf0FKD9gzePW/EqBIxL9yJmDSFpB2r7AM8RRP7z2T3Evh8bm5BigSDp31MbH15LlONDToJNojgLz42FDL7me0Mxb9bS2qVlenUGfIg+6Ztt7E2vKoNTGndGr9GaXubnJd8oJr0m5k0crEcySvNY/wJrQbZi4zRYJqewLsGPJepu5DV/sg9pUsCaTujbfQ+gYbjN/7YUVsiLE8+zrUttIQWgmIgYqXpLYCYJpfS3hNDFtQ== Received: from MW2PR16CA0010.namprd16.prod.outlook.com (2603:10b6:907::23) by BL0PR12MB4674.namprd12.prod.outlook.com (2603:10b6:207:38::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24; Mon, 10 May 2021 16:13:32 +0000 Received: from CO1NAM11FT022.eop-nam11.prod.protection.outlook.com (2603:10b6:907:0:cafe::ef) by MW2PR16CA0010.outlook.office365.com (2603:10b6:907::23) 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:13:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; huawei.com; dkim=none (message not signed) header.d=none;huawei.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 CO1NAM11FT022.mail.protection.outlook.com (10.13.175.199) 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:13:29 +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:13:26 +0000 From: Xueming Li To: Chengchang Tang CC: Luca Boccassi , Min Hu , dpdk stable Date: Tue, 11 May 2021 00:00:54 +0800 Message-ID: <20210510160258.30982-105-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: 029961ed-8393-4609-95d2-08d913ce8cbd X-MS-TrafficTypeDiagnostic: BL0PR12MB4674: 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: QKKqCYf88AXQgmPMByX1DuVBL5HXOys5lChXYZQq7Zf23CzDSMgtrAQ7fdx26waKi76tNG5ZgV0l1Ov04UvnABOO+XB84Z5aozibBS+Mj/TqTrospiYycpHYS6WBVJlH5KBQYCmo5oqr1qppdon05/VdXiRujNQOek0LWXtF/umVG3z4NvR6NmzA3xZ6KpeTUY8DpkcEjmJ1Dn3Ur6U6o2DoiyV8XD4+7G4zbmiNl1D8MydcnNJcI9kZLEV8HN/Gyvkw+FnszGQBB/acVBwUHr7kVvu/eZE1ypRegYV8OZGX9PEF57kbLDwhQuRTEF7TC77F0TUVd8kziJcA1phI6jcY/YEDBvVpnJUUOvX8iQo1XPYy8U6+ssT6DFeiO5OBibyS/gGBUxs7I+Dc8BOcUnJ74LGEDQUNG4Sqmv+XtclKIIsqX2Rckmi9WWCvavV9auh+4wLO8GMXc4UzYhJUC5Hv/Z9MZUybuufPGVCh8ckiFQl9bDBsfFJMMcEl9PXcnzB786v9go8+XA3u1mluDEsjjlNgr1pMVJlduNGnrCluA7RdC7ajDK9GIHNQbrPdw5X4pkEn3a5gFJVsMo14O2lF6yZVOrw/iW+LOTks8yrVkWvFdGUKQ/pudwXqMn/LBFjwvcyjXr2fRe2SIBALCYXNgVMwG10V68IZxeKDkqJIjRyWgA7vvYks+IXXEcjiiiYdhnzmLq1DzaGTuteu+7Desyw7P9XQIuqCeTJXP12rzdNeXvPrbOC1/5htAM5XRfvMMP+e7+bUUOkSb8TWXw== 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)(39860400002)(346002)(376002)(396003)(46966006)(36840700001)(53546011)(6286002)(55016002)(336012)(2616005)(5660300002)(966005)(7636003)(82740400003)(7696005)(6666004)(478600001)(4326008)(426003)(1076003)(356005)(54906003)(26005)(8676002)(6916009)(36756003)(70206006)(70586007)(82310400003)(316002)(36906005)(47076005)(16526019)(86362001)(2906002)(186003)(36860700001)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:13:29.4002 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 029961ed-8393-4609-95d2-08d913ce8cbd 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: CO1NAM11FT022.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4674 Subject: [dpdk-stable] patch 'net/hns3: fix processing Tx offload flags' 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/a7bf8336a2d7fed8e654a86dc99ef96bdec03294 Thanks. Xueming Li --- >From a7bf8336a2d7fed8e654a86dc99ef96bdec03294 Mon Sep 17 00:00:00 2001 From: Chengchang Tang Date: Tue, 23 Mar 2021 21:45:53 +0800 Subject: [PATCH] net/hns3: fix processing Tx offload flags Cc: Luca Boccassi [ upstream commit a1d0caa92c7fe43cef7a9f6ac4772e0eecd4a011 ] Currently, if the PKT_TX_TCP_SEG and PKT_TX_TCP_CKSUM offload flags set in the same time, hns3 PMD can not process the descriptors correctly. This patch fixes it by adding the processing of this situation. Fixes: fb6eb9009f41 ("net/hns3: fix Tx checksum with fixed header length") Signed-off-by: Chengchang Tang Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c index 896567c791..77038ffe00 100644 --- a/drivers/net/hns3/hns3_rxtx.c +++ b/drivers/net/hns3/hns3_rxtx.c @@ -3083,6 +3083,7 @@ hns3_parse_l4_cksum_params(struct rte_mbuf *m, uint32_t *type_cs_vlan_tso_len) uint32_t tmp; /* Enable L4 checksum offloads */ switch (ol_flags & (PKT_TX_L4_MASK | PKT_TX_TCP_SEG)) { + case PKT_TX_TCP_CKSUM | PKT_TX_TCP_SEG: case PKT_TX_TCP_CKSUM: case PKT_TX_TCP_SEG: tmp = *type_cs_vlan_tso_len; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:29.343421400 +0800 +++ 0106-net-hns3-fix-processing-Tx-offload-flags.patch 2021-05-10 23:59:26.490000000 +0800 @@ -1 +1 @@ -From a1d0caa92c7fe43cef7a9f6ac4772e0eecd4a011 Mon Sep 17 00:00:00 2001 +From a7bf8336a2d7fed8e654a86dc99ef96bdec03294 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit a1d0caa92c7fe43cef7a9f6ac4772e0eecd4a011 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index feeb702281..ff9cb158d7 100644 +index 896567c791..77038ffe00 100644 @@ -24 +26 @@ -@@ -3291,6 +3291,7 @@ hns3_parse_l4_cksum_params(struct rte_mbuf *m, uint32_t *type_cs_vlan_tso_len) +@@ -3083,6 +3083,7 @@ hns3_parse_l4_cksum_params(struct rte_mbuf *m, uint32_t *type_cs_vlan_tso_len)