From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EC0F29899A; Mon, 12 May 2025 18:07:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747073276; cv=none; b=hy+SeeBHfbnKZ9uYxMzib9MptUP4e8k83MpEVOd/UETPakpoq/Cqz4g+7Jz03rh1HJt/CFdR65TEHFXSEfLRawDooKgMdOYQicVNefuNmkIzsrCzCkYi7Zhg3SFEO0CX1rifAdI/x8c98Xyk/AsgugpMpjjydU6GrWNRL4DUzcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747073276; c=relaxed/simple; bh=6mWlOGoBLtVvh+VbYqp4PyHhJYUr30l+LvGBAVvkCMo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=imHBUP44eV30Q9iQn85EtEshOm0Eu/B0P01/Yn8JnRjthHr230zIN3aqvsA5l/FudYXpLCFmrH/sA7MbrtCMfpnRvpBimS3r/J+FQqfYO0J22GyJnjwNgDww4Nt2Q04huRq65dBzygKx/D75YylD67hoJtSIFMwCL+frRTQki6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hViWmvii; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hViWmvii" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF1F9C4CEE9; Mon, 12 May 2025 18:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747073276; bh=6mWlOGoBLtVvh+VbYqp4PyHhJYUr30l+LvGBAVvkCMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hViWmviiOdibr5Q4TIwhjQVGhIg9dbVEKCTirFG9zuv2s715/ck/QwmVmgaSQdmur oSzmj1lzI6+KkA/7t31ECO1umftina4VV28fQmZ3N96sASl6NNBqMq7WptKoouEMde 3UBAnyGkDmTFYPPcAQ6Snt+e378Ntq5rlfSqSYL4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jonas Gorski , Florian Fainelli , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.6 025/113] net: dsa: b53: fix learning on VLAN unaware bridges Date: Mon, 12 May 2025 19:45:14 +0200 Message-ID: <20250512172028.706894027@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250512172027.691520737@linuxfoundation.org> References: <20250512172027.691520737@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jonas Gorski [ Upstream commit 9f34ad89bcf0e6df6f8b01f1bdab211493fc66d1 ] When VLAN filtering is off, we configure the switch to forward, but not learn on VLAN table misses. This effectively disables learning while not filtering. Fix this by switching to forward and learn. Setting the learning disable register will still control whether learning actually happens. Fixes: dad8d7c6452b ("net: dsa: b53: Properly account for VLAN filtering") Signed-off-by: Jonas Gorski Tested-by: Florian Fainelli Reviewed-by: Florian Fainelli Link: https://patch.msgid.link/20250429201710.330937-11-jonas.gorski@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/dsa/b53/b53_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c index aa449fa182683..d2ff2c2fcbbfc 100644 --- a/drivers/net/dsa/b53/b53_common.c +++ b/drivers/net/dsa/b53/b53_common.c @@ -383,7 +383,7 @@ static void b53_enable_vlan(struct b53_device *dev, int port, bool enable, vc4 |= VC4_ING_VID_VIO_DROP << VC4_ING_VID_CHECK_S; vc5 |= VC5_DROP_VTABLE_MISS; } else { - vc4 |= VC4_ING_VID_VIO_FWD << VC4_ING_VID_CHECK_S; + vc4 |= VC4_NO_ING_VID_CHK << VC4_ING_VID_CHECK_S; vc5 &= ~VC5_DROP_VTABLE_MISS; } -- 2.39.5