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 83670454E9 for ; Tue, 25 Jun 2024 02:02:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7EE0F427AE; Tue, 25 Jun 2024 02:02:52 +0200 (CEST) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by mails.dpdk.org (Postfix) with ESMTP id EBA004278A for ; Tue, 25 Jun 2024 02:02:51 +0200 (CEST) Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2ec4eefbaf1so39053131fa.1 for ; Mon, 24 Jun 2024 17:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719273771; x=1719878571; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qHLpXJIY0on9lKijtNzbPRnLz00K5iVZczCszL0j708=; b=m5OBcRaBLiTg3efFFUA+XJsuLd/WAcGithfMeInk0qaO0uOe/JpJNkhS7utyCbM8lJ rDRr1azEkjZXgUzN/T8CpZkyURCdDh06Oha4b7Dk4bAAmCFL+Rgr9uWs+UJcZGXt7LIj CxAz67xMfr1cBXWoi3r5cIfer6wuHIL/8h/6wz4bPthAgJ4w0o3kZ5UINZI14DbDB9fG E74hVpfVv3C4QQpC9WXwTMTYa4joSbDilyC6gIn8OKOdtd0JE4i0PtyDraQ0N5QBShS6 RaI0DuTLqcYHi8CuQKXxKxxSJJycZKBrcQHcRC52biTQcexjbK/7+xNqEneM4L55IlLW esdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719273771; x=1719878571; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qHLpXJIY0on9lKijtNzbPRnLz00K5iVZczCszL0j708=; b=pqNVDwaxvpXh7CGqb8VR3U3kK0jRO+CEBM8ZWtKqgzLqVoAlgqf3Bgv8b17pfYIAEm f7QYvCmJhtFb7IJLjqG8NfzMLkkrhuovkSm0QnawbkftmMBgj3xEsEgoOuZkJlbwLP7i S973PwUTkTnQIYkOaVBcsMRK08nKd7baxvxlsmF2FiN9i05vd1K34BHWnWhDLMk7NTWh 01cq8hXHdEwg7oaoyTgdF9UDoz/mJqTHHTK+h1lJoVWNbrdMDxI1BS7yFKW8FBBUGlOq wV/pZoTD+RwRwOGh3ZDbjilE+ECzJTxFZ60l7dePwqhBWNkakirjJ3FepBRLFaWJE2dx 1xSQ== X-Forwarded-Encrypted: i=1; AJvYcCUO6M1XiQpExkVkq1NHf+WQAaFcQvinAJoIu1xg4EZqx5iyxUViW1pC0f1klCUVVLgRtiHp3tLrTAoXGBcLjQA= X-Gm-Message-State: AOJu0Yzl/kThTXOiBzgy3NXQ/PRNugNdiSr+1c4b5g/hEXQsNsDgPJhM R97clI15cj9tL1MmHsdUbhE41+w27mM1HjFtpTXngvcR4SyQ1TKDuf2dMb4K X-Google-Smtp-Source: AGHT+IHW1DTiK6ygUEJ8Lc8vBm0dm1KgssgCBjw2Z8aVTHh5+CRvMnHCnn6zzTenRERBMO+lIe4Hvg== X-Received: by 2002:a2e:9684:0:b0:2ec:403e:631a with SMTP id 38308e7fff4ca-2ec5b36b135mr36200771fa.8.1719273771267; Mon, 24 Jun 2024 17:02:51 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:7aef:1aaa:3dff:d546]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-424817aa340sm148817295e9.19.2024.06.24.17.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 17:02:50 -0700 (PDT) From: luca.boccassi@gmail.com To: Yevgeny Kliteynik Cc: Matan Azrad , dpdk stable Subject: patch 'net/mlx5/hws: fix spinlock release on context open' has been queued to stable release 22.11.6 Date: Tue, 25 Jun 2024 00:58:54 +0100 Message-Id: <20240624235907.885628-68-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240624235907.885628-1-luca.boccassi@gmail.com> References: <20240624235907.885628-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.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/27/24. 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/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/df1753ebe821021b54a0c3bddb33d6e20b72cdef Thanks. Luca Boccassi --- >From df1753ebe821021b54a0c3bddb33d6e20b72cdef Mon Sep 17 00:00:00 2001 From: Yevgeny Kliteynik Date: Mon, 6 May 2024 14:44:10 +0300 Subject: [PATCH] net/mlx5/hws: fix spinlock release on context open [ upstream commit 36ae32b64e607c788961ab48adf24ad1cdf38140 ] Add missing spinlock destruction in error flow. Fixes: b0290e56dd08 ("net/mlx5/hws: add context object") Signed-off-by: Yevgeny Kliteynik Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/hws/mlx5dr_context.c b/drivers/net/mlx5/hws/mlx5dr_context.c index 76ada7bb7f..d1923a8e93 100644 --- a/drivers/net/mlx5/hws/mlx5dr_context.c +++ b/drivers/net/mlx5/hws/mlx5dr_context.c @@ -210,6 +210,7 @@ struct mlx5dr_context *mlx5dr_context_open(struct ibv_context *ibv_ctx, free_caps: simple_free(ctx->caps); free_ctx: + pthread_spin_destroy(&ctx->ctrl_lock); simple_free(ctx); return NULL; } -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-06-25 00:22:17.130184759 +0100 +++ 0068-net-mlx5-hws-fix-spinlock-release-on-context-open.patch 2024-06-25 00:22:13.237186709 +0100 @@ -1 +1 @@ -From 36ae32b64e607c788961ab48adf24ad1cdf38140 Mon Sep 17 00:00:00 2001 +From df1753ebe821021b54a0c3bddb33d6e20b72cdef Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 36ae32b64e607c788961ab48adf24ad1cdf38140 ] + @@ -9 +10,0 @@ -Cc: stable@dpdk.org @@ -18 +19 @@ -index 15d53c578a..7f120b3b1b 100644 +index 76ada7bb7f..d1923a8e93 100644 @@ -21 +22 @@ -@@ -263,6 +263,7 @@ struct mlx5dr_context *mlx5dr_context_open(struct ibv_context *ibv_ctx, +@@ -210,6 +210,7 @@ struct mlx5dr_context *mlx5dr_context_open(struct ibv_context *ibv_ctx,