Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4E36C433EF for ; Sat, 4 Dec 2021 13:08:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385002AbhLDNLy (ORCPT ); Sat, 4 Dec 2021 08:11:54 -0500 Received: from mail-eopbgr00054.outbound.protection.outlook.com ([40.107.0.54]:28486 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1355001AbhLDNLx (ORCPT ); Sat, 4 Dec 2021 08:11:53 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TkSLAZjCIoCk0sa6FwMMMNhsF6O/FeTEfSr5wZodDnNaYT+5RKunobjQmy/PgGhI4uVet6wA+CfFEaT1QbONlspR3h75+Mv6/W1CvGGmZePJLDnkHQfRJA0rR8kr3tfzSQ59UVQGnkYIOOJ9gwjY04Yp7WQJGNb9Sh1Iv3jpIfBwhLrkt6gzxiTjRS6UuWLs83NNfCoACSQlVw+gvtjffQ1ru7XWnzBglf4axzcl4bVhjHwh5+7pjluP/f2WRksJm7M9kySXNTzQc8jMpiG/a6mynWioHmOR+v/INSAmqAKL5H6MTgkBDf8Lb8hL5SMM3I8AU8wVPPESZ00Gbd3vXg== 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=IzLo5uQkueAt34RubRqe1eMpmhjwPT1Rs4pJ9CtpjBo=; b=UdHEAozscbicQ9qxGoyZI2tzeJm37u5Fjpht56zFO66v8GfNm1HwXhwPAIySoQuTGwyAjzlRP8R0nenywpFBEMiYVn0S/iAylpz9gCgoBd0NBQmQSeZA+1+eWZoO311cc1AAUtK0ou+CDTCBIz78kcFLvpHU+SXiNK4b7bvnViCINGORTV3RUjMDekQIeWZymgJHClWoajHKLr3m6vJHE1xWdUbESdfqgQR7zV7KctX0qUbP39/CKxq+C+vNHJZs4W3D9igVanS0+a7f2qTZGA/L4Lh7PRYQyQfuY1+UxW6h5ZUBVOXVwVgGEPtr+llv0GaDQQZzYb7JBTfd65eqjw== 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=IzLo5uQkueAt34RubRqe1eMpmhjwPT1Rs4pJ9CtpjBo=; b=W6JtAXGgH/IP7jRu+QH8GX+uHXzjRyKV/I5Q5IHD/0NI49Ncw6a6PChfu5pzAfIJ4oqMSW7DXEZel9CPBfj54mlF1q6NQHDBc8sTRDUDJndnA7mCqwH51IlKzuC9XQdQ7imNnuI332Qq4p1BaA+hW980CnMzYX4+hanRw8tZsU0= Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by VI1PR04MB4685.eurprd04.prod.outlook.com (2603:10a6:803:70::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Sat, 4 Dec 2021 13:08:20 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::796e:38c:5706:b802]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::796e:38c:5706:b802%3]) with mapi id 15.20.4755.020; Sat, 4 Dec 2021 13:08:20 +0000 From: Vladimir Oltean To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= CC: "David S. Miller" , Jakub Kicinski , Rob Herring , Claudiu Manoil , Alexandre Belloni , "UNGLinuxDriver@microchip.com" , Andrew Lunn , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Thomas Petazzoni , Denis Kirjanov , Julian Wiedmann Subject: Re: [PATCH net-next v4 1/4] net: ocelot: export ocelot_ifh_port_set() to setup IFH Thread-Topic: [PATCH net-next v4 1/4] net: ocelot: export ocelot_ifh_port_set() to setup IFH Thread-Index: AQHX6Gn/FbL7frqUIkGKruPq0taeVqwiTy+A Date: Sat, 4 Dec 2021 13:08:20 +0000 Message-ID: <20211204130819.3sclg4jnnqlyjqfw@skbuf> References: <20211203171916.378735-1-clement.leger@bootlin.com> <20211203171916.378735-2-clement.leger@bootlin.com> In-Reply-To: <20211203171916.378735-2-clement.leger@bootlin.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fbf069be-b9c9-48ec-75f7-08d9b72724f5 x-ms-traffictypediagnostic: VI1PR04MB4685: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BT9TeBdg+0b1eP//1eN3bGvN7NCoo07eXmaYgga2+ZPXYCqvRIQeEStLpNNVQ7Mj3/VFU10oN7iK5eCcM0HY0/SXwaoDLc9S05+kl+AeFiJkSpq5I1TakgPi6tE8Jyk3h+f/dxzi7DGZ7pH1/q0H32EJSeWaMEhzrF9575+qo8EAGA0mSv8SCs0EyaL7qS+C+d9rtQSJ6gq0Yyk78sqQpCSTd0eObBtAKIbVSpFiAK0kvoLl56F/XGHI9wacf6EWjrCt0m4nvm73qLxIpmJd95Nn+lKnui7ammP99XvxO4M80Ba6Jpm7Tr+Z63ewbzk1BfA+4nGzfspzUTeq1IkYel7xApRuZsPs6r0hV5dkutH94U2srb+MZw8DpLuaxRQZtgufr8JVjXqtgFhcGnpTvJYVfQj4UUTcy4x1O8pgy+L6BF9CSN9JmdsSlyg9cAbLoMfrIkXiS75LDpSy84pEW5HkgaKnSTpD8NzXblATtEYYCU8NUCkX74Vcr0kX2QjrYrEb4Ps5ti6yw+8aVvieZx6wUlxGcezbHbtyW4efA0IoeOCSY884eM4IAsq8PYWv2LNl5wvnt4Qd+GW6ID1bTQTB4hUsoa/Znd9RWU/8PdqQNug7+cmNgJh5rptvC3EWxpnE5TV+XPrfNUmVsq7ccUzJmkmdQx8+09qAXurADHswrygKUhlQxlCn1MCP+tMUrXmafo54qiXHJU9rfUYNfA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(7916004)(4636009)(366004)(4744005)(33716001)(44832011)(8676002)(64756008)(186003)(8936002)(6506007)(91956017)(2906002)(66446008)(38070700005)(1076003)(26005)(4326008)(6512007)(6916009)(86362001)(316002)(508600001)(122000001)(66946007)(7416002)(5660300002)(71200400001)(66556008)(54906003)(66476007)(9686003)(76116006)(6486002)(38100700002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?G8Ml417ktaVMh8aPTc4qAzdqGQmdkJDFe61y6rIXoKIrt6chhsBE25MaKb?= =?iso-8859-1?Q?h1DFoCXRwPiKWxDI5U3INtKQ3GpmL0QkMpxxv8lD4uoKRMVsgFp6HP4rU8?= =?iso-8859-1?Q?cShn4zOjqJeca7o9tlzuv4sR+a0CB4eOXwyavkU//gFcCzRHxzA6YbZs4c?= =?iso-8859-1?Q?vm2AoTjjGboSjwX7+yjYup0UQTcimZ3FZYhqNSHKNsf9HyNfpy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+aeMrs45H6pJS9cbB04ibN+B87KZ0I8?= =?iso-8859-1?Q?/NyvMvsXwy5oUdUI2q3I/vFxBEvxiKCHK7KJWcAy2M5G7SP9q+yp0PoPhw?= =?iso-8859-1?Q?Chn8nTk10PhPKpdRx0XpBvbAVyWhNEyN5R0ngJAmoKDYBC0ghRtbj4mZoU?= =?iso-8859-1?Q?3fHoyiHtoNMvnCzHGKXRn6Ksl2ukvIKNVV8zHQb+3U3XP6RUSon6LVOmMl?= =?iso-8859-1?Q?xLgF4klYcT4TbH7Iyz+CqZjQSnYElkBKypAJOyGZJsFz1jl23TlMyZuAGt?= =?iso-8859-1?Q?ryoxsWT9IFChESbKoOugolVACSvl6VeCnPKPIhPRx+LR4YDJyjY6kfZ2g8?= =?iso-8859-1?Q?Axz9sxeayZYhLyEPo2D+jRmcjTE76iK0CZWVITE5QQ9Mat/LT0jQdafcym?= =?iso-8859-1?Q?5tqUa1BY29Uf8eiKx/p47R51FzlcSv4mYcVLlL8MpOkNeZ/aWHilrc1dbI?= =?iso-8859-1?Q?3hMtQdK6JoMdzsw2tVGXw9l+rD9nE4058HxWInlhZEOKsBvxXmbugQeYbc?= =?iso-8859-1?Q?V/pEagdQWOqGVs6sO27dj8FW/o9xSo9v2CqH/oocarARYrguaLgH8G4nUM?= =?iso-8859-1?Q?8LbPUJQ9UOCQz7thvTI=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-ID: <595C55A8C0855E4BB494D455D4A5A861@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: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbf069be-b9c9-48ec-75f7-08d9b72724f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2021 13:08:20.0840 (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: eReNu4zeWnQ8on2VpcaKCuih4ax5ztW1oNHghpE7vXSDby9PVmyWJwWYIgV1vAUkr56cOxYSQGjm1PmeYQ350g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4685 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 03, 2021 at 06:19:13PM +0100, Cl=E9ment L=E9ger wrote: > FDMA will need this code to prepare the injection frame header when > sending SKBs. Move this code into ocelot_ifh_port_set() and add > conditional IFH setting for vlan and rew op if they are not set. >=20 > Signed-off-by: Cl=E9ment L=E9ger > --- Reviewed-by: Vladimir Oltean =