[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BL3PR11MB57488DF9B08EACD88D938E2FC1F82@BL3PR11MB5748.namprd11.prod.outlook.com>
Date: Tue, 4 Jun 2024 06:05:35 +0000
From: "Ng, Boon Khai" <boon.khai.ng@...el.com>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
CC: Andrew Lunn <andrew@...n.ch>, Alexandre Torgue
<alexandre.torgue@...s.st.com>, Jose Abreu <joabreu@...opsys.com>, "David S .
Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, "Jakub
Kicinski" <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Maxime Coquelin
<mcoquelin.stm32@...il.com>, "netdev@...r.kernel.org"
<netdev@...r.kernel.org>, "linux-stm32@...md-mailman.stormreply.com"
<linux-stm32@...md-mailman.stormreply.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "Ang, Tien Sung" <tien.sung.ang@...el.com>,
"G Thomas, Rohan" <rohan.g.thomas@...el.com>, "Looi, Hong Aun"
<hong.aun.looi@...el.com>, Andy Shevchenko
<andriy.shevchenko@...ux.intel.com>, "Tham, Mun Yew" <mun.yew.tham@...el.com>
Subject: RE: [Enable Designware XGMAC VLAN Stripping Feature v2 1/1] net:
stmmac: dwxgmac2: Add support for HW-accelerated VLAN Stripping
> You should generalize the existing functions into some other file within
> stmmac/ folder and call those functions from both dwmac4_core and
> dwxgmac2_core.
> Do the rework of existing function & callers first and add the new bits in
> another patch in the patch series.
>
Hi Ilpo, do you mean I should create a new file for example,
stammc_vlan.c, and move the common vlan function inside?
so that it can be called either from dwmac4_core, dwxgmac2_core
or stmmac_main.c? or maybe I should just consolidate them into
stmmac_main.c?
> Unfortunately, it's hard to catch copy-paste like this from other files when not
> very familiar with the driver.
>
I totally understand that, while I think Andrew has already call them out
In the previous thread.
Powered by blists - more mailing lists