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 3678E41D8D for ; Mon, 27 Feb 2023 08:16:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3246D41148; Mon, 27 Feb 2023 08:16:22 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2076.outbound.protection.outlook.com [40.107.237.76]) by mails.dpdk.org (Postfix) with ESMTP id 82B5B410D3 for ; Mon, 27 Feb 2023 08:16:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DD/B8TtSa3OY7wH/Op09e6qg0BBXqrkzTOpCXQbB1Y2kEsyMI94Xa/XqUosYMpyanGZAZrFjiHi9KI73D0Ncb1ndVZ+Uw8zsBYrChIHBmLlMj9tLF1/9GXbTU50RKG40Api5GBH12lMWpTtbdO/57WpS4NG7y8K6yteNAy0uWQAjxyM8eb2iXptPn1EkJKgGVD8B/2+yBr5Oq/Jf5E2agyuQ9L4G5odUUbyagHpWc6qL55/lX2MvPWoko2DjnrdgbK0YY1H9GeR3CWAFi/bSBSqCq3+fw9HPbj5nEm0G8ym21jOLt7Cce/YOs1shmogDdk422STFnOTW2/HcCUac8A== 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=F7HrNXhyGWZeDk9we4ri4R4bHjsSoSlXhdgziqZPwtg=; b=dV4gqug0kjv5JBccONpD/wMlJsgslnqCAjHKr5qyKVTCsdWLtmeMQsr4OgEtCkTZH23Yebcj5chedeCu5nzwy6xMUJUewY8hEZjOvMU31pTR1JJqtC+St3EDFdwaLw/+qNrVJorq+XC2BQWIdp4n9Wagpe7GpWyQmo/NLp/xObXge+RyD2XhJ4WCIrH2dEY0fM+J+BwfL1zWgb41EnyeH5jYNFoaillqrTT5KxH0NEYmt1r7ym7N0UEMxFnE1S9Ldsu7mTjH1znPKLYW+SDHFXu7giS5Eg3xGErGKcS3Wo24y4DGUtKENY5m58sH6N5pEQOxz0sx0ZiNz9X3JuftQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=redhat.com 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=F7HrNXhyGWZeDk9we4ri4R4bHjsSoSlXhdgziqZPwtg=; b=d3qF/bc5YsUOi72rksGkKSSeBEMi5sQ6raKog2fKOCeXFe7u8SeAp/pKUKZh308XtZD+x1MvQ6JbzJeBN8mu0YixlHnLKTjfrJzzcnOrUbSYg245KrtrKLZdlFhe/SU74yAqnJPBU4fnl3Z7qqqgc0dL2OhZYjeNfUJQSzXK0MnpLZ3ExqUrVlJvHud/V2zHWdxyTqW+IfWQHjKQKcrkZ+49g3fdmDhx62LimQyscVT4ZOVmF918XPNaUSI1ZmhWiTOWv84UkZH0qLV1bTgW/6xO9cK0/fgQcA/AyYDD2WPbQ/ZXpf3WzBorXZXHEH3F29ip9WtRlMtVrgEcpx1aOA== Received: from MN2PR19CA0031.namprd19.prod.outlook.com (2603:10b6:208:178::44) by SJ1PR12MB6124.namprd12.prod.outlook.com (2603:10b6:a03:459::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.25; Mon, 27 Feb 2023 07:16:18 +0000 Received: from BL02EPF00010206.namprd05.prod.outlook.com (2603:10b6:208:178:cafe::9d) by MN2PR19CA0031.outlook.office365.com (2603:10b6:208:178::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21 via Frontend Transport; Mon, 27 Feb 2023 07:16:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BL02EPF00010206.mail.protection.outlook.com (10.167.241.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:16:17 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:16:01 -0800 Received: from nvidia.com (10.126.231.37) 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.37; Sun, 26 Feb 2023 23:15:59 -0800 From: Xueming Li To: David Marchand CC: Qi Zhang , dpdk stable Subject: patch 'net/iavf: protect insertion in flow list' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 15:00:46 +0800 Message-ID: <20230227070107.15664-138-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] 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-TrafficTypeDiagnostic: BL02EPF00010206:EE_|SJ1PR12MB6124:EE_ X-MS-Office365-Filtering-Correlation-Id: 6699431e-16ca-462f-5a88-08db189284fb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hRP9zU4J4l2L+AXMY/A/VFdk+qA8DD9TA5IAmIMnqvhrLNArUkfp+CctJgvHhSgawa7SGwKssZXgFWJsOs2r4TrFHzNL7XEK8P2cLhuL9B1pd2n7oI4zTlFVkPmIf841JENNAQ6iylxdIrQ1XlVT3opBsB5LRnojRT3ihpkM4JCJ0Eas7ld19NMHmQpbaxGLKkY665RByn4u1kSJsAE4E11WKiCwtXfUua6OWEZ6kiaGMA568cLSPj1Ad92CPNmB2dUURIxgrXz9P26FKrpF5wmnemyi6kxNvSei4g7IH5fD78A+CEG4B/kVIjE9hx8SMKxCgUpWALfb8HWu5u4fyhFA2xu2KFzfj44ec0PRmu+AUEtoQbJq2/alCOHgM7n4FXQfQzFUtdTXXe1wBNsyJsWQaNOEGRXzcl7PQ2aci+85XnQYZZ24278giuWvfRhFRKD3FTj9WL1rRH5BUPc+nbDALT2+FhDjoZQ3OrR5LFoRuqOKg3tB+MOVrKN/dZgX6iaYoj5aY78/nuwGteYKsYfEQOFMzrNpHllLZXqgViOxvZU/+0/3s7qtZxprkc4yNjuElq66aLWz1+UDW6Q2+VlZi4dRRJrLbQWY4QZJId+gvOJn6yLB+SFMqb3RqqrTjOWE6n8HQiL4wJGuB7ULiNtnEKVaf+sT8IBtXHXdhuJnp+OIrmf+ZgdBuhgB56QDPfsi79srIiYgY4J6PQX0+u6WsLSJfMTBxT/6kCR7MXX/gte7DNiIzY471dH7TtLIQ7HL2qT4WmEHWZ7gkcLyvVqlhx3Xatlc6BcvUymA06g= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(346002)(39860400002)(396003)(376002)(136003)(451199018)(36840700001)(40470700004)(46966006)(55016003)(36756003)(40480700001)(40460700003)(86362001)(478600001)(41300700001)(6916009)(356005)(8936002)(4326008)(2616005)(70206006)(7696005)(82310400005)(8676002)(70586007)(966005)(316002)(54906003)(5660300002)(6286002)(186003)(2906002)(36860700001)(83380400001)(7636003)(82740400003)(6666004)(47076005)(16526019)(26005)(53546011)(1076003)(426003)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:16:17.6382 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6699431e-16ca-462f-5a88-08db189284fb X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF00010206.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6124 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 22.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 03/01/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=644d38523a3014e944ff90327fd41347b3ae5a0c Thanks. Xueming Li --- >From 644d38523a3014e944ff90327fd41347b3ae5a0c Mon Sep 17 00:00:00 2001 From: David Marchand Date: Thu, 5 Jan 2023 14:57:43 +0100 Subject: [PATCH] net/iavf: protect insertion in flow list Cc: Xueming Li [ upstream commit d79c3b264e31465695bc4c6279381522060a22f6 ] Add missing lock acquire. Fixes: ff2d0c345c3b ("net/iavf: support generic flow API") Signed-off-by: David Marchand Acked-by: Qi Zhang --- drivers/net/iavf/iavf_generic_flow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_generic_flow.c b/drivers/net/iavf/iavf_generic_flow.c index f33c764764..6f6e95fc45 100644 --- a/drivers/net/iavf/iavf_generic_flow.c +++ b/drivers/net/iavf/iavf_generic_flow.c @@ -2278,11 +2278,12 @@ iavf_flow_create(struct rte_eth_dev *dev, } flow->engine = engine; + rte_spinlock_lock(&vf->flow_ops_lock); TAILQ_INSERT_TAIL(&vf->flow_list, flow, node); + rte_spinlock_unlock(&vf->flow_ops_lock); PMD_DRV_LOG(INFO, "Succeeded to create (%d) flow", engine->type); free_flow: - rte_spinlock_unlock(&vf->flow_ops_lock); return flow; } -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:45.313320200 +0800 +++ 0139-net-iavf-protect-insertion-in-flow-list.patch 2023-02-27 14:08:40.929237000 +0800 @@ -1 +1 @@ -From d79c3b264e31465695bc4c6279381522060a22f6 Mon Sep 17 00:00:00 2001 +From 644d38523a3014e944ff90327fd41347b3ae5a0c Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit d79c3b264e31465695bc4c6279381522060a22f6 ] @@ -9 +11,0 @@ -Cc: stable@dpdk.org