From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 01DECCFB440 for ; Mon, 7 Oct 2024 11:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9NiVGaQOQgfArX72hN5nGjrualfTi6z+7yoLVUkKVGs=; b=FPADTruKu1U2QY1rhLTdmq8WJ8 BhEjqbvDJBO32prjxJ9OKgh+CxDPljXh2xPWIuS6S6QgJEJYbQ9wKz8OeQ+4WQAWT16JKUXPsV/pr yrFNDC1azuXR5qK3t6/ooqmpC18IsPDI1zEWiGh+VvMSFIcf84wGy/WkmTexUd0wor0x91r/Zhlgd yTbbgzOklTgcwvNjL2QkUQ1mB5E5TxHt3rNURhPJHAcufboqr0GSFp6rL3rP8UHJo6iEwDNEeA0TV BdJ8fkIGeNCCod+MJyJxPulyNTRxLhmjaIJhGe8ZZdYK54fIiXQHp9ygJuWyBf9ZyiREv/Fk/9zer 2+6gkTyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxmFE-00000002ENR-2lgp; Mon, 07 Oct 2024 11:49:44 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxmDw-00000002E8Z-0ceR for linux-arm-kernel@lists.infradead.org; Mon, 07 Oct 2024 11:48:25 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id CD80DA4177E; Mon, 7 Oct 2024 11:48:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 000B4C4CEC6; Mon, 7 Oct 2024 11:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728301703; bh=385W9W9QYNTyfuD6FUYa8ebktE7Q2QSi8i4s3DwWVPg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gENxy5AYP9qM7KkOxjjoibALNHn9iljkoW+UY7NPcxKhMyAvZ/dIecYLxCT/PojIu 04r+asy/SeC7JVqw16e/6zMXN3C+nGRCcVhbCCMsMwdiwWfnH+idjPd4wZ21UHcZpc znfz9qXfLQbTat27nyPawY2Nf/WeGH3WIRYNhT2pclC+/QyLBYOfImUVv8yB3uO7dI xlLK8E3FU4mUJnTnhQs9+it9uKwVzBFE2De1Ich4q/kmHGBOBSrdKiUjwibHOhhUAN V+fbPRjJEIIu/4MKGFb82TdWCPmRDiC7YmhCS5WViu/NRbUwtth8+HIiuqHofdZmBR PbYdJNO527yfA== Message-ID: Date: Mon, 7 Oct 2024 14:48:17 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v2] net: ti: icssg-prueth: Fix race condition for VLAN table access To: MD Danish Anwar , robh@kernel.org, jan.kiszka@siemens.com, diogo.ivo@siemens.com, andrew@lunn.ch, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com, Vignesh Raghavendra References: <20241007054124.832792-1-danishanwar@ti.com> Content-Language: en-US From: Roger Quadros In-Reply-To: <20241007054124.832792-1-danishanwar@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241007_044824_328945_9A96D9FB X-CRM114-Status: UNSURE ( 7.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 07/10/2024 08:41, MD Danish Anwar wrote: > The VLAN table is a shared memory between the two ports/slices > in a ICSSG cluster and this may lead to race condition when the > common code paths for both ports are executed in different CPUs. > > Fix the race condition access by locking the shared memory access > > Fixes: 487f7323f39a ("net: ti: icssg-prueth: Add helper functions to configure FDB") > Signed-off-by: MD Danish Anwar Reviewed-by: Roger Quadros