Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp849882ybx; Tue, 5 Nov 2019 06:33:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwDbHu3HOdnG+aigTqpj/2VZTbtKEgK17hiumaTpUTQzPyeJK4j0T+DkzTUJkwo6vmZHfBC X-Received: by 2002:a17:906:6dd3:: with SMTP id j19mr28751658ejt.144.1572964433940; Tue, 05 Nov 2019 06:33:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1572964433; cv=pass; d=google.com; s=arc-20160816; b=C8wVM1CywPyLNOTeGFDlsB64kqKCxruamjee5mjY+Yh68UEPTl0XkcAFHMcqLOv0Cr qXIKm6GxpNJZ0dnfgjYkO7FD7hpot4xK7Z2B8mH9t167G8/kmaXHcYdxRV5oCd+TtkUP B25ZCCeR3BcVIHn+/rcn6IxerBcqq3XDs5ERB6uM26ajAMhXLGBuMoox9nJTD+4fmGgs rb1nGpNY5CTkW1SleyO/AhcA1Ye2KdHcW180dC5mEy9xnya3Gx1qEp9w81Dey9bYfc5w Jmss0uejFHDUtYLXk7pJ4Gy/8LRQN2XnEbqUN0T/C4kMXvQLywwHcS6fL7Q+ADGn8eNo Ak7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=RS8navh9a7ESKiVar6GrSEaMBrTxvUG+nuIBf6SQ7Fc=; b=em9m58HIuSH2yoVLbVjCrZ+Pz9gqCgO5vNTAiBtWYqNV+8aT9BoOs0WBL0ISiFr3/V TDkHygIsIS//KEH01NS8AmOC9Y0+dWrB6RrgHmt1U/eHjQTKvw/8pen70Ue2Y7Gb9i+L DtDVg43p/LpUiGI76fh2SFU8NkEm8QrKrrZcp2IxNb2kCl5WOMO83A3to3AqvuPbUhxG 5Veup5WdnI3yKRlo04mWkl0GfElY87PAQQuIc8E9sWIGmDwfW8KOIWXDP7Boo/TFrLHd SHlc+35Iod44ex4HJat/SmMSZPW2agkiw27JUbV6L19k/hP+iyrNXiIY03ivHbRsqSRK C8IA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=EJ3FeuEj; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i16si4654130ejh.75.2019.11.05.06.33.30; Tue, 05 Nov 2019 06:33:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=EJ3FeuEj; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2389589AbfKEObi (ORCPT + 99 others); Tue, 5 Nov 2019 09:31:38 -0500 Received: from mail-eopbgr130081.outbound.protection.outlook.com ([40.107.13.81]:34626 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389459AbfKEObi (ORCPT ); Tue, 5 Nov 2019 09:31:38 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VRTrPudTMeYJlwTWdA67LS2wb79asijcjxFhJ007BFFjtvC9YwkbZbxDrFLz4svkSCNpWZBXHRQ7vHWib5Sgmw6rFz3uMzoy5wiYa/T702dEvpaHIfpCuvHn0PDChLnqdXkkoyD1K7zde05sJ5gr1c0xURayVht2MOB42wfQB4E0GfmaL2Q++1+dP57WCM5xWDEkqQil3rF352brwsvyX9QC0zSQbMQ6GI06LrV+coBTfRn1mM1hbIxrGx3AKoCv6UaX3JSVdBDbXmfGvsVsr9Vht0u4iv85GbudUxuzQl/JbD6D9TLof3zCtXjBcajn7tS72IRwE+HEQYt0kvAnAA== 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=RS8navh9a7ESKiVar6GrSEaMBrTxvUG+nuIBf6SQ7Fc=; b=B7I8Ilwd8kjYF3y5nBmIE2PXTC2XtKWOK5vaQmzqA9mNMj2+nR6+ybYk2AI9Bu0mKyxido9/BhJO/Je4VP70at4qWi7vWVOC/h+6ovcBRQrWnEo0ucc7nf8axl8EGbLXDL7C1Th2Oct5tEyy+Tw+cj26zWES3ZbxRmaR/hUeHQemmRx5jggRWvao5Uf9UTBOOG/YAwOm8pYAlAScK1xK9dAaoE4znPK7VwVTClUTGPz7nnZfiRb4qi6cX5ifah0lwBjfksDw+e3iqjBzbCiM6p4+b/6r3nAIgwkXsFnl5Z2VhL7IMRuRZxg3qSttRQTM5DIDJ4SehO/2252ro8XoaQ== 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=RS8navh9a7ESKiVar6GrSEaMBrTxvUG+nuIBf6SQ7Fc=; b=EJ3FeuEjddaPs4sv7qwkqTn1hw3fKsOKdD8D5ORUlWj3BM7xya52Qu7nT+sNzJjcM3O1fnpPUKBBEgRmpzv4qlnT3tW9BTxCyNB8/USXZp+74arL5P5tICr2dC1+tdxtFWnJlQQ5sbE6UE6Zf7vVLKDIjNaohO/zIDz52orMHfk= Received: from VI1PR0402MB2800.eurprd04.prod.outlook.com (10.175.24.138) by VI1PR0402MB3790.eurprd04.prod.outlook.com (52.134.18.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Tue, 5 Nov 2019 14:31:35 +0000 Received: from VI1PR0402MB2800.eurprd04.prod.outlook.com ([fe80::749b:178a:b8c5:5aaa]) by VI1PR0402MB2800.eurprd04.prod.outlook.com ([fe80::749b:178a:b8c5:5aaa%11]) with mapi id 15.20.2408.024; Tue, 5 Nov 2019 14:31:35 +0000 From: Ioana Ciornei To: Andrew Lunn CC: "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "f.fainelli@gmail.com" Subject: RE: [PATCH 06/12] staging: dpaa2-ethsw: add ACL entry to redirect STP to CPU Thread-Topic: [PATCH 06/12] staging: dpaa2-ethsw: add ACL entry to redirect STP to CPU Thread-Index: AQHVk9VwUttQp4rnGEyeNWyFfbjmDKd8oR0AgAAAhWA= Date: Tue, 5 Nov 2019 14:31:35 +0000 Message-ID: References: <1572957275-23383-1-git-send-email-ioana.ciornei@nxp.com> <1572957275-23383-7-git-send-email-ioana.ciornei@nxp.com> <20191105142202.GC7189@lunn.ch> In-Reply-To: <20191105142202.GC7189@lunn.ch> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=ioana.ciornei@nxp.com; x-originating-ip: [212.146.100.6] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 9ddf62c0-005a-46bd-047e-08d761fcdc57 x-ms-traffictypediagnostic: VI1PR0402MB3790: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0212BDE3BE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(376002)(396003)(366004)(136003)(39860400002)(189003)(199004)(6506007)(11346002)(7696005)(478600001)(71190400001)(6436002)(71200400001)(316002)(99286004)(54906003)(26005)(81166006)(81156014)(305945005)(6116002)(6916009)(66556008)(3846002)(7736002)(2906002)(76116006)(66946007)(66066001)(9686003)(55016002)(229853002)(476003)(446003)(44832011)(186003)(74316002)(8676002)(64756008)(66446008)(8936002)(66476007)(486006)(6246003)(86362001)(256004)(5660300002)(102836004)(4744005)(14454004)(76176011)(33656002)(52536014)(25786009)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB3790;H:VI1PR0402MB2800.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9NbqPceIndCx/pAh48tdOUt9Mg3XzECOdxDr4w31LZCOUhL03z0FBH/tZJAg8uRnw68iF5RHqxHHfX6Zu3JjVxe7IsglZB0CoR11s+bNsHKqE4JH80Tb39rJ6bKBCUfXyhL4wYvmQ9boVKoVzE8EaGyAlHQH33q5fGJjkTVZ0mShPTlSjTAz+gJmk7613VfM0bX5UKy+JRZeltQRuBe3MpaWPuPpM7xSMUG5pdgGSCgCzDPzCgSeudSMigzSFc186KjrX9TRXTVBf0Kpxm5Pid35jtnQiw/8jllUeBP7pcKmS0Zg9mTjcA25b/6Cg4XXw4XG4k41J1V+2tJF74KjYJ0vMib1fSGW2XKryQcjrCjagwCUN/RFdZj5mY7YLeMelGChhmq8/0wRUPVesegc/p13ugMgdMIXhNFs3SBwEyc5CEvvqjr6ZIhIsVxWxu2Y x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ddf62c0-005a-46bd-047e-08d761fcdc57 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2019 14:31:35.1628 (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: iiYjoMwwBebl+3ZmowflXYxer5+R5RiIPubJMAxLl+xHP4zKtV1PKb1lKuvES+IEbwHJIEjq8mn7VsAKG1MSZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3790 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [PATCH 06/12] staging: dpaa2-ethsw: add ACL entry to redirec= t > STP to CPU >=20 > > +static int ethsw_port_set_ctrl_if_acl(struct ethsw_port_priv > > +*port_priv) { > > + const char stp_mac[ETH_ALEN] =3D {0x01, 0x80, 0xC2, 0x00, 0x00, 0x00}= ; >=20 > I think there is a standard define for that somewhere in include/linux or > maybe include/net. >=20 > But thinking about the big picture, i wonder why this is needed, at least= in a > minimal implementation. Bit 0 is set in this MAC address, so it is a L2 m= ulticast > frame. By default, all L2 multicast frames should be delivered to the CPU= . So > it should work without this. >=20 > Andrew Now I see that I should have been more clear about what our switch can do. The control queues do not form an actual interface in the sense that the CP= U does not receive unknown unicast, broadcast and multicast frames by defau= lt. For each frame that we want to direct to the CPU we must add an ACL entry. Ioana