[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3c32c9b9-be77-41c8-97f7-371bd6f8fa16@lunn.ch>
Date: Mon, 10 Jun 2024 14:30:38 +0200
From: Andrew Lunn <andrew@...n.ch>
To: "Ng, Boon Khai" <boon.khai.ng@...el.com>
Cc: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
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
On Fri, Jun 07, 2024 at 04:09:37AM +0000, Ng, Boon Khai wrote:
> >
> > Do you have access to all the reference documentation for the IP driven in
> > dwmac4_core.c, dwxgmac2_core.c and stmmac_main.c? Is it just VLAN which
> > is the same, and everything else is different? Or are other blocks of the
> > hardware also identical and the code should be shared?
> > If VLAN is all that is identical, then stammc_vlan.c would make sense.
>
> Hi Andrew, I only have access to the document for
> dwmac4_core.c and dwxgmac2_core.c
O.K. So please do look at the VLAN code in other places and see if any
can be shared.
, I notice that in the linux mainline
> https://github.com/torvalds/linux/tree/master/drivers/net/ethernet/stmicro/
> stmmac
>
> it does have stmmac_est.c and stmmac_ptp.c to that support for both
> dwmac4 and dwxgmac2, with that I think it is suitable for introducing
> another file called stmmac_vlan?
Yes, stmmac_vlan.c is O.K.
Andrew
Powered by blists - more mailing lists