lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 8 May 2024 09:40:30 +0100
From: Simon Horman <horms@...nel.org>
To: Justin Lai <justinlai0215@...ltek.com>
Cc: "kuba@...nel.org" <kuba@...nel.org>,
	"davem@...emloft.net" <davem@...emloft.net>,
	"edumazet@...gle.com" <edumazet@...gle.com>,
	"pabeni@...hat.com" <pabeni@...hat.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"andrew@...n.ch" <andrew@...n.ch>,
	"jiri@...nulli.us" <jiri@...nulli.us>,
	Ping-Ke Shih <pkshih@...ltek.com>,
	Larry Chiu <larry.chiu@...ltek.com>
Subject: Re: [PATCH net-next v17 12/13] realtek: Update the Makefile and
 Kconfig in the realtek folder

On Tue, May 07, 2024 at 09:44:14AM +0000, Justin Lai wrote:
> > On Thu, May 02, 2024 at 05:18:46PM +0800, Justin Lai wrote:
> > > 1. Add the RTASE entry in the Kconfig.
> > > 2. Add the CONFIG_RTASE entry in the Makefile.
> > >
> > > Signed-off-by: Justin Lai <justinlai0215@...ltek.com>
> > > ---
> > >  drivers/net/ethernet/realtek/Kconfig  | 17 +++++++++++++++++
> > > drivers/net/ethernet/realtek/Makefile |  1 +
> > >  2 files changed, 18 insertions(+)
> > >
> > > diff --git a/drivers/net/ethernet/realtek/Kconfig
> > > b/drivers/net/ethernet/realtek/Kconfig
> > > index 93d9df55b361..57ef924deebd 100644
> > > --- a/drivers/net/ethernet/realtek/Kconfig
> > > +++ b/drivers/net/ethernet/realtek/Kconfig
> > > @@ -113,4 +113,21 @@ config R8169
> > >         To compile this driver as a module, choose M here: the module
> > >         will be called r8169.  This is recommended.
> > >
> > > +config RTASE
> > > +     tristate "Realtek Automotive Switch
> > 9054/9068/9072/9075/9068/9071 PCIe Interface support"
> > > +     depends on PCI
> > > +     select CRC32
> > 
> > Hi Justin,
> > 
> > I believe that you also need:
> > 
> >         select PAGE_POOL
> > 
> > As the driver uses page_pool_alloc_pages()
> > 
> > FWIIW, I observed this when using a config based on make tinyconfig with PCI
> > and NET enabled, all WiFi drivers disabled, and only and only this Ethernet
> > driver enabled.
> > 
> > > +     help
> > > +       Say Y here if you have a Realtek Ethernet adapter belonging to
> > > +       the following families:
> > > +       RTL9054 5GBit Ethernet
> > > +       RTL9068 5GBit Ethernet
> > > +       RTL9072 5GBit Ethernet
> > > +       RTL9075 5GBit Ethernet
> > > +       RTL9068 5GBit Ethernet
> > > +       RTL9071 5GBit Ethernet
> > > +
> > > +       To compile this driver as a module, choose M here: the module
> > > +       will be called rtase. This is recommended.
> > 
> > The advice above to chose Y and M seem to conflict.
> > Perhaps this can be edited somehow.
> > 
> 
> Hi Simon,
> I would like to ask if it would be clearer if I changed it to the following?
> 
> config RTASE
> 	tristate "Realtek Automotive Switch 9054/9068/9072/9075/9068/9071 PCIe Interface support"
> 	depends on PCI
> 	select CRC32
> 	select PAGE_POOL
> 	help
> 	  Say Y here and it will be compiled and linked with the kernel
> 	  if you have a Realtek Ethernet adapter belonging to the
> 	  following families:
> 	  RTL9054 5GBit Ethernet
> 	  RTL9068 5GBit Ethernet
> 	  RTL9072 5GBit Ethernet
> 	  RTL9075 5GBit Ethernet
> 	  RTL9068 5GBit Ethernet
> 	  RTL9071 5GBit Ethernet
>  
> 	  To compile this driver as a module, choose M here: the module
> 	  will be called rtase. This is recommended.

Thanks Justin,

Yes, I think that addresses my concern.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ