Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1043077rwd; Wed, 31 May 2023 08:44:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Wz2FUdqFsKMP+BArm2GX/VcuO9lPDuJn3tBLXKR4cqr0C/7xFTvqMom3pp0dXbrKpAxsO X-Received: by 2002:a05:6a00:2e9e:b0:64f:52c9:ddd5 with SMTP id fd30-20020a056a002e9e00b0064f52c9ddd5mr7464653pfb.34.1685547851585; Wed, 31 May 2023 08:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685547851; cv=none; d=google.com; s=arc-20160816; b=GT0cWDfgycS9BFs1LBdRwAaKyOchnZsZdM0AkqWz49S3qb9O7YAtiR2USJDocBKydg QKYAN2QnOjSlXIoBaEY4WFH7NN73MrM7mV9kyVnt9M0mgPhq749Migf3ZhI+jfKA2i2v SFjXI8ZyVh653DXveN9fgcZD6QR0g2TiPQTKvyGWyNcXvQoegyKvPXTSFxBVQoj+BHcU KH+jTHRja+cYpfrik0zi5ZkiMlbEhiAs6qD4OgtTqqlDlfM87H93RhF98DlBRCvl9Dgd vmICyfCKaLpnRZkI+xQ8pmiQFhpkRWJZ2Gqlrw+PbFdQ+ZtwiYJ88LF429u6z1lzXHBp pLMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SuL4u8NzTzbnlOrPBhBiIT/DZ/NXRnMhr+o5QeIpT0o=; b=hptmTDPZxATPhKaLwmGWWhh7oEbMXuwavdlo7j0PKY/s/ssy01BPlqQvwUfLzq7AvV o7gcek/Tgw/tJLulKbQYgPIitZoH+1Q3GN6hiUcjZmsQnzfYE2KpsT+G15mTjnz9/v4V Jpsb85cTt80IsizE3hD8ZDNhtswm+gSx5kp/tWakAlqUcSvuC53h8e2XqtQPFNu+IrKf sFGmbu79429P8oVRCk5Vn5D4pncHNo8VnjKI5eS8wHDxT7YVYUbHYAS0p0HdoKnK8n+m J6Mio2fF0fWKTaMOvvFM4FKrLgcnml4bFzp5O5D6ZyaKB7ADR7HyTU9oPQVV3/+3Wjxe tCVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=aKr5dn2u; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a637548000000b0052c6b5537easi1144065pgn.47.2023.05.31.08.43.56; Wed, 31 May 2023 08:44: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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=aKr5dn2u; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233727AbjEaPQm (ORCPT + 99 others); Wed, 31 May 2023 11:16:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbjEaPQ0 (ORCPT ); Wed, 31 May 2023 11:16:26 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1413107; Wed, 31 May 2023 08:16:24 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3f6da07feb2so60790665e9.0; Wed, 31 May 2023 08:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685546183; x=1688138183; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SuL4u8NzTzbnlOrPBhBiIT/DZ/NXRnMhr+o5QeIpT0o=; b=aKr5dn2uRnABDYMBhkNLWSP4IaVFEeBUlJG0YdoJ15Qi5Q7YgV02NAJMJt+EE57M7R 0+bPKa/R8dVdByRt3URoplMccb0IqfB/8uDb7Hu5XwvSpG9oSj5D+mov4wq5pTU57kZW lxXnBgbcCU7ykp6HREmXIo/Q3aH2nSMc33GH2RWgggJvNPaOVghUxCK3MzPii6nCDPq+ zToAzyFfa2KMVPCGstkY/djAISeIMrhnsUwlgy3nFy0FnwqXsb+VOfCofpwPmpfvPP5v TJFWCo3Y88syuHPOf4jpz6RYn+327gZr/S9psN5pDbswstqv+RxGo4wKMUchtowpeWWk rqDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685546183; x=1688138183; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SuL4u8NzTzbnlOrPBhBiIT/DZ/NXRnMhr+o5QeIpT0o=; b=Xgn00WSOuLrQ78nkm7/jxD7/5T6zaPCGUABU8rYkCgOe3CYB3OlBhILo5OMSnlZpm0 rkGk4DlS7oYpIP4febNeqvcirhgLqtVisNtATgs8Qn8gBUgWmXqgeigdj4jQNZ2/vSLX SEivzWr0iGJt99GUz9CjQQNT5hxhWcblqzjGusTU/8OJwPd8aXI4if8xHr2VSa+PQfiD QWw8DSiF+nxrgisjPM61XIIBePAv9oRQDjAibEMB2x7WKmk+RsKmZ6zro2UL13zUOYqt MEX2tF7yS3SxSz3KdTQnr0IsfC3tvOcxULERibS4a4/dCKAyjCJ8T6d5trarFhSGeqqO czew== X-Gm-Message-State: AC+VfDxHsrVwp8nK7NXkYrhhjPADU+6tCKOdjYsWMfaZQGfuWhGdcRfU dUG7iw/jh1T7D8Qs0GSCDxTSGjxbMsSJpA== X-Received: by 2002:a7b:cd8a:0:b0:3f4:2255:8608 with SMTP id y10-20020a7bcd8a000000b003f422558608mr4403587wmj.31.1685546183139; Wed, 31 May 2023 08:16:23 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id m23-20020a7bca57000000b003f5ffba9ae1sm21225612wml.24.2023.05.31.08.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 08:16:22 -0700 (PDT) Date: Wed, 31 May 2023 18:16:20 +0300 From: Vladimir Oltean To: "A. Sverdlin" Cc: netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , linux-kernel@vger.kernel.org, Egil Hjelmeland Subject: Re: [PATCH] net: dsa: lan9303: allow vid != 0 in port_fdb_{add|del} methods Message-ID: <20230531151620.rqdaf2dlp5jsn6mk@skbuf> References: <20230531143826.477267-1-alexander.sverdlin@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230531143826.477267-1-alexander.sverdlin@siemens.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 On Wed, May 31, 2023 at 04:38:26PM +0200, A. Sverdlin wrote: > From: Alexander Sverdlin > > LAN9303 doesn't associate FDB (ALR) entries with VLANs, it has just one > global Address Logic Resolution table [1]. > > Ignore VID in port_fdb_{add|del} methods, go on with the global table. This > is the same semantics as hellcreek or RZ/N1 implement. > > Visible symptoms: > LAN9303_MDIO 5b050000.ethernet-1:00: port 2 failed to delete 00:xx:xx:xx:xx:cf vid 1 from fdb: -2 > LAN9303_MDIO 5b050000.ethernet-1:00: port 2 failed to add 00:xx:xx:xx:xx:cf vid 1 to fdb: -95 > > [1] https://ww1.microchip.com/downloads/en/DeviceDoc/00002308A.pdf > > Fixes: 0620427ea0d6 ("net: dsa: lan9303: Add fdb/mdb manipulation") > Signed-off-by: Alexander Sverdlin > --- Thanks for taking a look. Although it would probably be safer to add: Fixes: 2fd186501b1c ("net: dsa: be louder when a non-legacy FDB operation fails") since I'm not sure it has a reason to be backported beyond that. Anyway: Reviewed-by: Vladimir Oltean Yuck.