From patchwork Mon Dec 4 16:35:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 13478765 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="oijplLuh" Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2087.outbound.protection.outlook.com [40.107.7.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88B7DCA for ; Mon, 4 Dec 2023 08:36:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O9KB2S0ZX6H9gup4wknP1XQ6tIuYFBTC7aCY4OlEM8965zhAeR2AvQ5W+cyVrQ+nJyL0hIo2Xcx5w1ITvELT82GEU22CmGLkSIhfthxQ/Y8of8pf6aHWkiJcih++Xmt9V8bYrqSVYH0K2hvchBrn/qJLe6UsAtHnIN/u43cPXXLcZv1ameRh8akXhrEII1bNghL6WWSTy3FWZX5uXiOxEJGVOfG0aYoGU1hm31G4S5I1lOPpQuNG8G955iVCUK6JHJfu9+Mjn/TuId/+S1AOelYBclX7VcypxhLzW/hnrGDR5n/+lZy3omdf9vCnjyy+a3RcLR14P9IUa8JXLHY6Lw== 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=rUE8GZ68xTTOVoU/v90/Cl6JJvcrftiS15qiYb3QFj0=; b=KL+/7jflE9WJzuDuod/5s+DZSmPO9ZGsfM0tkBlObj6lt5THnyovjDDDW0QGVj0yF/zk2WNZwF9vgvxnR7+05S4NVx4OpB9KaEqvPL7dbskrrRNeFkSaHT9gVx8/o+HSKqkbOkvyfHOdv0HJkLZ/dbpX9+KpAgWCN11f1C93FVYq8COTK6zw1rAh6VCYpzsXagaMz1bXKeEglE/ypqoaTVujKMPBndRGccXOBa5DgZBTSpjP2txuhTLwdeQKa+AxYVxaR8FKMIDDF2lYq/1gpYxeJPJ3YKQhargDtHKXeW1L0UrYXFUkzuB06YTHU0oYba5DqkTi0I7fShQbz0RYPA== 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=rUE8GZ68xTTOVoU/v90/Cl6JJvcrftiS15qiYb3QFj0=; b=oijplLuhy2lM/vZD5/+sR1onxCCtNTjZV+JdrajVp5R2vTdUYwxx51rkVcYvHSDbBTkymgZMpipiHLQzhn+HvuYVbMsUdeSjd3uSbfV65PnDqcUvMEsX3nTTCLNIFOmUJhQpVZmJJZez1i3iHt3EQCtD1Gut5DwmSCpENKNl9iI= 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 AM9PR04MB8356.eurprd04.prod.outlook.com (2603:10a6:20b:3b4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.22; Mon, 4 Dec 2023 16:35:58 +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.7068.022; Mon, 4 Dec 2023 16:35:58 +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 2/8] dpaa2-switch: declare the netdev as IFF_LIVE_ADDR_CHANGE capable Date: Mon, 4 Dec 2023 18:35:22 +0200 Message-Id: <20231204163528.1797565-3-ioana.ciornei@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231204163528.1797565-1-ioana.ciornei@nxp.com> References: <20231204163528.1797565-1-ioana.ciornei@nxp.com> X-ClientProxiedBy: FR2P281CA0060.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:93::16) 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_|AM9PR04MB8356:EE_ X-MS-Office365-Filtering-Correlation-Id: ce96b9a5-8948-462d-926a-08dbf4e71862 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eh2XNjrDJaK5g65Q20ATT6buZYKcVXEERxLA9QnBpg2y6YJYZWcFHE61yfdib0UrfBZURlKIX/B7n68CCo6sf30MGnUuEdkDrzWG6n8nhnR7S0eDT/4a7Zgzx2CiXUqwxJWm23YTinbIx3Ed2W/DITY9mqy+xp+lpOMh8tW/vHYEsDgut7w23sYl3sX1cg1lKwsI/xs++olBv8PCcXgMGk1LurbWCSZQMHrlc/O06UjgdQncWcxU+/qZ76YLWIot3LEmYYmp/QckU0AGHswcuyRYNNcc9ikSepg0h7JgtcKterqb3wpcJDMOiby5vtp6fJCawnwy3PnGnBMbGnKFJD1diUJBnEN9bTpxvSGQxFbdZZWZ0N9ngTjS1q04VvNvuoJTnPXlLQnYZ6vDCE3wRFBi9+qFGTo/T0NyDv6k0BBsUaUzn1+uB4bhNSmeTkLwAVclLlSRSf/RKeIgQ20zVNTpoDrq5HmSS7SXRojQq53yUzUD/8PMVg7+rDwa9uz4SKipTF34w92HvwjqdcxEZQTGh66s/sNXFqPtKaBrAT5NGju9tojpaf9sAl7k6Y1x 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)(346002)(39860400002)(136003)(366004)(396003)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(66556008)(66476007)(44832011)(316002)(66946007)(5660300002)(4326008)(8936002)(8676002)(6486002)(38100700002)(86362001)(478600001)(2906002)(6666004)(26005)(2616005)(4744005)(6506007)(6512007)(36756003)(1076003)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DtN2xxFxyLuNiwnadSzflnIqiplVS9as3wKiNDmIJZTVPqTp6wp3SCd0UzW3Pf8/rD1MDpnVyCI3yUheMzbSMkl5ypZlqWgg1hgva1rqkpF1ussrolYmKpdFjkribKJ9REhiVUeyElZvD/qpPGjcJgcHyk6TWOAlZimWukluOEQG/6hJxyksycVh1pb2MpY2wZN3v1PUfQgPEkQdkP4em7S8KUbNOPVAqP3V0L6nIhCqiMNllNKfgsZdR/ZZXQ7+ZKqZ3XOuDYlzpkwKVwZ/CEMhGIbnNHSRqwN5HUlbVV1eCnmLXOC8VVQDP4MRtTeFw8C2PsDeg/5U8yCgTFEs51Fa5nOeyngWf+OZXFfgmODIfAgJvIQz9XYPA8mtteP7wlTIS27RSlWIRUR0Z6iHLWg3g8dmWMpBOIh5/kL+vehtTv3WYoC3meTzZyNmgysrMZqe9244TjBKku57hQiUDQ83uACKCJUq56hL6tg075sQzDPnBihMagZQmAEDLmPJ3805fji7/u134wAF0e85J4jGCf4Uxl1UVUlfR3J/5HwIai3VBt6FnFP1JF8yXDYuvWKTiG2DiC4xMT0sAG/OJfaZ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71862 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9070.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 16:35:58.7818 (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: kS2YqbHQE3jDrnJXq0K60AaMD6VY5tkYmWYT37s2b7PRgxsRqhn7nkwtgEZUduK4QUTZgdQM5AeDEyGCGE7Ldg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8356 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 --- 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)