From patchwork Wed Dec 13 12:14:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 13490813 X-Patchwork-Delegate: kuba@kernel.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="jVOyBCto" Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2063.outbound.protection.outlook.com [40.107.20.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01D64E4 for ; Wed, 13 Dec 2023 04:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nadpm9S46+7BknenRHHvfIzN/VAONoiHPyKBK54ZT8G+ERP8iTDVGlXqVdDYBNDrIuoElsHoxif7cHh34zupYAJJ7iUCPRygr+o5k1KDgiPR1u6OG4wZxbow/rlQ+EdKV2wEOSmxcBZFWcOSIXxSN2d/nExhPYT9UY94UkfT1iRpdA8XqYll6Dlb+FMJkoArBNsnmk+eZDVnfSVFQZmTIw5lY3MCaPMHAufpnXxNTPQR9ulWScMJXCn1inF5a5Q7BavZyYUB93M08HmzFkPpC/36b4H1JPXko/Bj7DYsPbf+Lra4yhRBubM3gl7qTorAzSkbs7/aNMNnH0qan/ZosA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dXFL2vD03rJQ6YlgqSdPcE9cZu50QTyLqhNqXfEgCaE=; b=DDTWtviUodr0YH7dGbWj8gkr27B2I45aF4rzjABCpCj4HKRMV0hGSaQqx8GbcPGDI7s01mylZEOsDmxVdJrqTzaHS8KP4aqU8vw4iDVbavKHcB6h0iz7Nc22HIRa/uPp86RtRX0Og3SfUs5jQ194tmhKPE+/COZFqtBXx+o/s7TfD6gzRgeLzbcGBCSBGMTzQ42kwU74Ss/Y/7+WThzyYVqCnCIrbOjmMaasctPnugyqUUjeUuJzQEHc4+Pbs5V/opTDoBxIV6i8WnyirOX+k6itsp090EMM0o/kl75rekFjciMJl6gWSJXDTX9N0DrfOVJ86w0/59yvF8xg8CjqUA== 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=dXFL2vD03rJQ6YlgqSdPcE9cZu50QTyLqhNqXfEgCaE=; b=jVOyBCtoaU1gwtMYySK1lMJQ+frqU4QIo3aXMPFnhP080z66W/aAORuyiyjjNSYhSSS9AEkz2k8MDNyMrH+a1An/xbkARhnXjX5kn7Lcg3X23giRDNkdnoMUcRQqUN0OBHJrDnoMfIxVWV3E+EkITvuHcbLNBExNrlxCxdzWxWc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9070.eurprd04.prod.outlook.com (2603:10a6:150:21::14) by AS8PR04MB7894.eurprd04.prod.outlook.com (2603:10a6:20b:2aa::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26; Wed, 13 Dec 2023 12:15:42 +0000 Received: from GV1PR04MB9070.eurprd04.prod.outlook.com ([fe80::1290:90d4:98c1:3d35]) by GV1PR04MB9070.eurprd04.prod.outlook.com ([fe80::1290:90d4:98c1:3d35%7]) with mapi id 15.20.7091.022; Wed, 13 Dec 2023 12:15:42 +0000 From: Ioana Ciornei To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org Cc: Ioana Ciornei Subject: [PATCH net-next v2 2/8] dpaa2-switch: declare the netdev as IFF_LIVE_ADDR_CHANGE capable Date: Wed, 13 Dec 2023 14:14:05 +0200 Message-Id: <20231213121411.3091597-3-ioana.ciornei@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231213121411.3091597-1-ioana.ciornei@nxp.com> References: <20231213121411.3091597-1-ioana.ciornei@nxp.com> X-ClientProxiedBy: AM0PR06CA0089.eurprd06.prod.outlook.com (2603:10a6:208:fa::30) To GV1PR04MB9070.eurprd04.prod.outlook.com (2603:10a6:150:21::14) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9070:EE_|AS8PR04MB7894:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f60671b-7030-4822-f490-08dbfbd53a11 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dNXpD7MOav+dK2A7p+uGJ1WPQZGqpKhWl0EkmyDmOxztSEsdxG3ygW8kIbuKeX7lk7e/9gBh/g8Yt2QFccZn3cretahLLgh73/7a2YK4gNj8Rv/+D/UPUMTJGyTTWB26c3ZGy6XXEmKrbMKomW8nDs5ltiIftmd345TZPU8QuNO4tUMVIb0OqhlMn8+CtX+RjGJHnu60sRZJVpoND8/yvwDQ9Y5rxEL+jXAZrEMVaycaGdEd32pg6eJoxN2B8+s819nU6vYEGj8Giv7gX1+gn6RA3zepexrerfbHehwTf0uMo4aejU9cEYsaANfq+NaUF/de2TAcq0cTnSqFBy5Orytw6SGSXL8cuW/f2v3Toeqam3dpZnB2UC4R2Bb8vYaaOE7uiORQdisnPXVrRORBEDQAdPHNHVYipLk+ahTdStzdSlAuzWpti4Etjap/HGfphSgvb9bq/LkT3slxWjdNafaCPpApQBDx5rPCpZm2yQ9iEx/n0RJTmQ3xJ7Q6mgKJCNvSa33aD1wJZQzwgOKrjaC9K+ThWzToKmk/G5JEh6X8/3trv4T1ti3Xs9j20WE/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9070.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(136003)(396003)(39860400002)(346002)(366004)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(26005)(2616005)(1076003)(86362001)(6666004)(6506007)(6512007)(66946007)(6486002)(44832011)(478600001)(4326008)(8936002)(8676002)(36756003)(5660300002)(41300700001)(4744005)(2906002)(38100700002)(66476007)(66556008)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CtX/EMVVC8tP8FQxThAEO2gazU7IrmPiaq6t/HKb0TqiCrVPwWF5sPqdhcIYc/Pt9R/s2g+j1GVUYHr2PnLYKxqrWz4Nx1sSHB9IVWI1rcJM3XiAHj9Rlpc0zP6/IG6kQ6wa3fPTHS4uy6GDeUt2IrdOy8fFCXPeYm23WIlmdjRhPQAvXxzBk9UpvuCZ50P+p28mgKauOh0fsX0Wi28k+RjLLn4rpKmhMS8r8q2gHUs5qcd/qaM8T1mP4Smoi7PCF6jI6UejBJQiOorFjZhlrh77cazVxijK0uilLJKKm20w9GLOf8p3AUX4DhxQIsGwnaCPB9xuoINZjzY+YuEscXuqufB1muagRRjaxO71ev0fiNpwIOM2ytSZkzdlFm11P+X9mP3zp0YJQ2NZHprYSQJdkF3YLcjrk2ukGhl4D0Xcck9tMgd/3iin9X2RC5kqVcJHZ5+bJ9pzod2gZF/SvttK0PaOVnIVwKdjDIEj7KTTtUhZna6rmtOr/4m3vE99gYcALcoCUdeTCl2V2PAYZM5EC4971FM79qGWPoH+a9HeHnmhYLTBifYxS6Un2d5NxgwRvB1MNGCcqJX8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a11 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9070.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2023 12:15:42.5842 (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: CFoybuLEIpfdNuQW3JVBZvU86CYBOwGcXgVSH0ccKZ6fiHdWd3z0cCBBDPl9Uyh7t7jGHdCLQwWfsm9OMH5ZXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7894 X-Patchwork-Delegate: kuba@kernel.org There is no restriction around the change of the MAC address on the switch ports, thus declare the interface netdevs IFF_LIVE_ADDR_CHANGE capable. Signed-off-by: Ioana Ciornei Reviewed-by: Simon Horman --- Changes in v2: - none drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c index 08a4d64c1c7d..5b0ab06b40a7 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c @@ -3300,6 +3300,7 @@ static int dpaa2_switch_probe_port(struct ethsw_core *ethsw, port_netdev->features = NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_HW_VLAN_STAG_FILTER | NETIF_F_HW_TC; + port_netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE; err = dpaa2_switch_port_init(port_priv, port_idx); if (err)