Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2022814pxu; Sun, 13 Dec 2020 10:53:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJypCCnuDIMpzyvRUB7Ziz9fVanRjdkaahDfKI4koK3HuaIOBCTjffujBBf952dOq6LoBDMg X-Received: by 2002:aa7:ce94:: with SMTP id y20mr21291819edv.361.1607885637340; Sun, 13 Dec 2020 10:53:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607885637; cv=pass; d=google.com; s=arc-20160816; b=TJqrGj7q2kH69TC9V6A58Pa+R7bRiegj/pDxFzIeTEgTped3V5dXEMvNmhy82pxq8D 2nNlzDzWJiNjiRzMZ/E697mdhDNJI6SmOz6PTqQadBMihmkwfWmikU1ye1o3ecAk5uVI eDrQNNzHKcbGyoqxl+ipvzkuasmAtHmdFtPlu7hi2Ng2FcBQucXxg4KAmwI15Jn3bF3t CHGbd0Lu8QSssQ20tXj5xW4iblwkGNCK3Tga/XDPxVkJnOeepEzR3s/R4BbdBWiEznt2 6rIZ5qP9Enpv9t4JSginyZAHSM4eviAoeK42LQ+mh0VIuVbBZQMu1+IFIEaRjJOoCGF1 eCpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=glUNLV58+8I+VGyntUpvxg8EqGk4oNpIuhBgucx9tSc=; b=xMdTTbhU8mAUgCFqUPI/0bcGsbX0jNu37GmiXGCbkl/mAwd5xV0wT1Ae1BfzNFwT8M bwY3ZYm19hMJGCGsh/jm1ipsT4UnMdyYqNmiL69xj4JgCbAoJLC4VVUonO6JQAKSOTAb 466XawR+1JH0ZzG8tg7MuBrS21bJW0dvivhqaXbsBDYeeXhY1EnsHbwtRdILXjZ662ZZ IO5tZAlHpSoJmDnY3cAM90zN5Qi0/K5C09jW4C/HBWncm5V5WTGUWkHoky9Vv5IHdkye FuB+QVmKxZxN4lGX+QGy7l37LqmF80ktY1wIxFVJ2XBchZkkomICtVaOr5EcgV1vr1zF md5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=afsJ1YYd; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce16si8063052ejb.245.2020.12.13.10.53.34; Sun, 13 Dec 2020 10:53:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=afsJ1YYd; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727617AbgLMPJj (ORCPT + 99 others); Sun, 13 Dec 2020 10:09:39 -0500 Received: from mail-eopbgr150053.outbound.protection.outlook.com ([40.107.15.53]:50310 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727064AbgLMPJb (ORCPT ); Sun, 13 Dec 2020 10:09:31 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sxqpm3nsoSHJitp4zFA54BsOHrme+CaxfDUgpHmohIZWsfVHIymcQ6Jt0lh15xV84y9MfdKl3aBc6LFMN3jkuyxQlnPTmkzVZqBarQWlSyQN3NhSYTNGsTxK48mQo1jtTzU4Kz88tKlqc26c9V77iTSPyXWBXOLfsUwunQnqgGetSqvAuerBg8YAUJIL/kFQm7AJJGBKwXEUpRZWCBbPEgTOZZ8fhkLYbPKp66V0x4ovQnYaq695ULmF/YN0JuH5QaaSwjkSRUFVteKRIpzeUBnG4meQp3hxzUwL8uyzX8PHn70hywSmehOGl+S3t+5iGGL9A3GD/8BjS4SEuD21VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=glUNLV58+8I+VGyntUpvxg8EqGk4oNpIuhBgucx9tSc=; b=XFm53RR1LVmYLQ7Nx0UA7r8o/VbN5dB3HPVTzpUFsDs4xqgRx7dwq0R+q7NQCJh/F2nl9oJ0nYYk0XIocEc8Boep0y18YI0yUTLTFxxN7S9YFqHl9CSkRqv1CoP/smbZJ9y8A6bdZNDkZcLM49q0iHxOrYO3b0RkeGR/cNCDB1p0lj44el/CoXNibEV6J5RgOYtzp5YRtdzYPkpYN7Xl9vW4LNjtiQyPvVT7HWwcnj4gkb3NT8S7Fq5ILlZRH4qCAecJmnKowditEFuFL9MwNyDRqD2t/wmcu5invB0NkxoLpWUmQ0To2NQg8qCByLFWSncYdMfD6kbWROTRLyCpZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=glUNLV58+8I+VGyntUpvxg8EqGk4oNpIuhBgucx9tSc=; b=afsJ1YYd6wftxP03OKI2rfGKavXWuuCimBmIRXDykby6jW2Z/lJxdSpgB2XQD3MbLrTrFtC6Ap29FJFEysTdwYPppFhnaW7xoUqwESpF3tkDpns16OXxbFYXATNkPeyJyqeD8HaxeoK7QNeMFZ77k/oeqh/utWFFtSXzIVhqgRc= Received: from VI1PR04MB5696.eurprd04.prod.outlook.com (2603:10a6:803:e7::13) by VI1PR04MB5695.eurprd04.prod.outlook.com (2603:10a6:803:e9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.17; Sun, 13 Dec 2020 15:08:42 +0000 Received: from VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::2dd6:8dc:2da7:ad84]) by VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::2dd6:8dc:2da7:ad84%5]) with mapi id 15.20.3654.020; Sun, 13 Dec 2020 15:08:42 +0000 From: Vladimir Oltean To: Ido Schimmel CC: Andrew Lunn , Vivien Didelot , Florian Fainelli , Jakub Kicinski , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bridge@lists.linux-foundation.org" , Roopa Prabhu , Nikolay Aleksandrov , "David S. Miller" , DENG Qingfang , Tobias Waldekranz , Marek Behun , Russell King - ARM Linux admin , Alexandra Winter , Jiri Pirko , Claudiu Manoil , "UNGLinuxDriver@microchip.com" Subject: Re: [PATCH v3 net-next 1/7] net: bridge: notify switchdev of disappearance of old FDB entry upon migration Thread-Topic: [PATCH v3 net-next 1/7] net: bridge: notify switchdev of disappearance of old FDB entry upon migration Thread-Index: AQHW0VlPMeocR3LBl0GZDisbPfFCdan1HVyAgAADoIA= Date: Sun, 13 Dec 2020 15:08:42 +0000 Message-ID: <20201213150841.ctp2njznfqvikj7x@skbuf> References: <20201213140710.1198050-1-vladimir.oltean@nxp.com> <20201213140710.1198050-2-vladimir.oltean@nxp.com> <20201213145543.GA2539586@shredder.lan> In-Reply-To: <20201213145543.GA2539586@shredder.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: idosch.org; dkim=none (message not signed) header.d=none;idosch.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [188.25.2.120] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: fcfcd307-e6e9-4773-c247-08d89f78fa94 x-ms-traffictypediagnostic: VI1PR04MB5695: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uD24Ia6LXLwEPEQuNJ+fzKE+P79hKCdcnhS3ZTdkTA1W712w4eePxaq+/J8X7hvcvJ5hTUe2YXTFFqBbR3nrXKZ0GHYKsQsZ+cgTr+Hvn8Tf+hSaLdMIwXIiPU4i2he1Ilru32JcAW4ctK1HcBSGqa2uJlxt1zQQHd64vpKkXO6OsUnPViNRTMVyct588vIBvzjI2zVrghgrHGZoPpfXQ+Hg+j6leVBZAMOaRa0ukpsJQsPTrCpWPx69PfWVMyCu2xUwQ9acqkHwQ6tcgSwIemjIsoWFSD0fxebZjb2+mNIgn0Xg3NSl3fmdYQg24Um4d7ACOk82S6r+814isxaKoA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5696.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(7916004)(4636009)(136003)(376002)(366004)(396003)(346002)(39850400004)(6916009)(66476007)(66946007)(8936002)(6506007)(66556008)(83380400001)(64756008)(8676002)(66446008)(5660300002)(478600001)(4326008)(71200400001)(7416002)(44832011)(76116006)(9686003)(6512007)(54906003)(316002)(1076003)(2906002)(33716001)(86362001)(186003)(26005)(6486002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?98DBou6enkOG2PqOI9dOFYP0OhiKaMOkMh4o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us-ascii?Q?q4iMp7UkMMFy/jxPQASV5cVcISajxFfEP574K+JWYTvUYQa95uQZmtJbP1cK?= =?us-ascii?Q?wUbYjA17JTFWR72+nZwCj2oo8gaA0nAwftEbg3gDFefwbQlZLS9q2GdXkjDi?= =?us-ascii?Q?94jB?= Content-Type: text/plain; charset="us-ascii" Content-ID: <7C8AF35377E370438D117AF298DF8512@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5696.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcfcd307-e6e9-4773-c247-08d89f78fa94 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2020 15:08:42.0640 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LLkos3T/WZK+HCCwpds91veXoED6OVg4MneCuanBVbZmzROpiPpVrgzlzGzqgslpe9NDnWKLZicN6dUehgcwAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5695 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ido, On Sun, Dec 13, 2020 at 04:55:43PM +0200, Ido Schimmel wrote: > > As far as the switchdev driver is concerned, all that it needs to ensur= e > > is that traffic between Station A and Station B is not forever broken. > > If it does nothing, then the stale rule to send frames for Station B > > towards the control interface remains in place. But Station B is no > > longer reachable via the control interface, but via a port that can > > offload the bridge port learning attribute. It's just that the port is > > prevented from learning this address, since the rule overrides FDB > > updates. So the rule needs to go. The question is via what mechanism. >=20 > Can you please clarify why the FDB replacement notification is not > enough? I didn't say it is not enough. I said it is a whole lot harder to track from the listener side. > Is it because the hardware you are working with manages MACs to > CPU in a separate table from its FDB table? I assume that's why you > refer to it as a "rule" instead of FDB entry? How common is this with > DSA switches? With DSA switches it's just more generic to use a static FDB entry as the address trapping rule. But since FDB entries are global across the switch and not really per source port, understandably other mechanisms such as an ACL entry could be used just as well. And an ACL is what other drivers (like drivers/staging/fsl-dpaa2/ethsw/) would use for this purpose (of course, the code is not there yet; it's still in staging, there are other issues to resolve first). The mechanism does really not matter though, as long as it's "strong" and not "weak" (i.e. the entry cannot be overridden by hardware address learning on the front panel ports). So when the bridge gets any clue that the L2 routing information is no longer up to date, the very least we must do is we must delete this trapping rule to give the hardware a chance to learn again. Where the address is migrated to is really not as important as the fact that it migrated in the first place. [ ok, then there's the case where it migrates from a foreign interface to another foreign interface. For that scenario, we would delete the trapping rule and then reinstall it, which is not ideal but also not incorrect. ] > Reviewed-by: Ido Schimmel Thanks.=