Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6190614rwl; Wed, 22 Mar 2023 07:37:11 -0700 (PDT) X-Google-Smtp-Source: AK7set9Ty0KsiAFiVSZfz7OufNiS7ZQY/UKMVulCzK53CjOdpzz9266QLe3B0S4vyW5lMqaTurc1 X-Received: by 2002:a62:644d:0:b0:628:a71:77a0 with SMTP id y74-20020a62644d000000b006280a7177a0mr3273658pfb.7.1679495831693; Wed, 22 Mar 2023 07:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679495831; cv=none; d=google.com; s=arc-20160816; b=Jtc88bNVSo24RD9L/xDPa+Mr2aO1RjltjP2PRMyoIhgy/tYLqbAJ5q70o3En2TGdYC Asr9cUgq/kajWzplx8d0bJLeYtiZ5cKCos5dBF1i2liz3uxwxoJDz531SgUCKfgptggQ EISWpyeq6hkVUG2QqcgotLmLNwAOmgM0A/GF+4Oatlv0tyOS1gcx200QmsGB7Pamd161 B7zOy+0U//p7jVLVLOzGmYt45ZgBrMJo3zn2FEJ4oPI6JJdZ3DOpzEuzLobnM7Csciyu Qaf1Yx8CoXIbgMheLgmlgKQpPigDiETRAePebCCqAk0J+C/9NV+NBeLI0807dFKnvWM4 nu3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6mALEcV9zA/4z4es/IPu5h8Mipk9xWByKuXtPRiSfDM=; b=bPgAMafwLp/3IXZowqy13Qm3UXs25BSrTaX8OeNVC1mM9VPzPjgoZdCkqRW0g0fnEr GDn59JTGgZEz98R4uAd64+0X4L6sR5EhygJxSgG8r7iaC8ZlhJT+kYSFGyPFU9UyIsNv EhcAEr3OeY2nX2PhSH9XCnvK8yDoPyPT3dmwalnLZSZUFvsMFJp57pn0x5P5UIBrxRmK uYfK0y4n+jDF0wmC4kZZro5faTwz72b2Y7B+vBpeYnbyMaF99KvhSzaAqwitm+JaCq42 Ah260aTAMYSujbM5NByF0i7qe8YQ58DUmBZWtoULARfRzNkH4988wVYU70mj7sD9dGW/ WQZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w189-20020a6282c6000000b0058d8e5bbbc2si15858252pfd.146.2023.03.22.07.36.59; Wed, 22 Mar 2023 07:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231488AbjCVObr (ORCPT + 99 others); Wed, 22 Mar 2023 10:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230508AbjCVObp (ORCPT ); Wed, 22 Mar 2023 10:31:45 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A3E62B49 for ; Wed, 22 Mar 2023 07:31:44 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pezV1-0003Ot-Aw; Wed, 22 Mar 2023 15:31:35 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pezUy-005wWG-K2; Wed, 22 Mar 2023 15:31:32 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pezUx-0060aL-5F; Wed, 22 Mar 2023 15:31:31 +0100 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: [PATCH net v1 6/6] net: dsa: microchip: ksz8: fix MDF configuration with non-zero VID Date: Wed, 22 Mar 2023 15:31:30 +0100 Message-Id: <20230322143130.1432106-7-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230322143130.1432106-1-o.rempel@pengutronix.de> References: <20230322143130.1432106-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org FID is directly mapped to VID. However, configuring a MAC address with a VID != 0 resulted in incorrect configuration due to an incorrect bit mask. This kernel commit fixed the issue by correcting the bit mask and ensuring proper configuration of MAC addresses with non-zero VID. Fixes: d23a5e18606c ("net: dsa: microchip: move ksz8->masks to ksz_common") Signed-off-by: Oleksij Rempel --- drivers/net/dsa/microchip/ksz_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 4929fb29ed06..74c56d05ab0b 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -404,7 +404,7 @@ static const u32 ksz8863_masks[] = { [VLAN_TABLE_VALID] = BIT(19), [STATIC_MAC_TABLE_VALID] = BIT(19), [STATIC_MAC_TABLE_USE_FID] = BIT(21), - [STATIC_MAC_TABLE_FID] = GENMASK(29, 26), + [STATIC_MAC_TABLE_FID] = GENMASK(25, 22), [STATIC_MAC_TABLE_OVERRIDE] = BIT(20), [STATIC_MAC_TABLE_FWD_PORTS] = GENMASK(18, 16), [DYNAMIC_MAC_TABLE_ENTRIES_H] = GENMASK(1, 0), -- 2.30.2