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] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABAhCORV_s9m-EJ8914zUXCXt6O_e1wsaOVdSKUtm0Rbvc4orQ@mail.gmail.com>
Date: Wed, 8 Jan 2025 16:36:26 +0800
From: Xiao Liang <shaw.leon@...il.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, linux-kselftest@...r.kernel.org, 
	Kuniyuki Iwashima <kuniyu@...zon.com>, Donald Hunter <donald.hunter@...il.com>, 
	"David S. Miller" <davem@...emloft.net>, David Ahern <dsahern@...nel.org>, 
	Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, 
	Ido Schimmel <idosch@...dia.com>, Andrew Lunn <andrew+netdev@...n.ch>, 
	Simon Horman <horms@...nel.org>, Shuah Khan <shuah@...nel.org>, Jiri Pirko <jiri@...nulli.us>, 
	Hangbin Liu <liuhangbin@...il.com>, linux-rdma@...r.kernel.org, 
	linux-can@...r.kernel.org, osmocom-net-gprs@...ts.osmocom.org, 
	bpf@...r.kernel.org, linux-ppp@...r.kernel.org, wireguard@...ts.zx2c4.com, 
	linux-wireless@...r.kernel.org, b.a.t.m.a.n@...ts.open-mesh.org, 
	bridge@...ts.linux.dev, linux-wpan@...r.kernel.org, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v7 02/11] rtnetlink: Pack newlink() params into struct

On Wed, Jan 8, 2025 at 4:38 AM Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Sat,  4 Jan 2025 20:57:23 +0800 Xiao Liang wrote:
> > -static int amt_newlink(struct net *net, struct net_device *dev,
> > -                    struct nlattr *tb[], struct nlattr *data[],
> > -                    struct netlink_ext_ack *extack)
> > +static int amt_newlink(struct rtnl_newlink_params *params)
> >  {
> > -     struct amt_dev *amt = netdev_priv(dev);
> > +     struct netlink_ext_ack *extack = params->extack;
> > +     struct net_device *dev = params->dev;
> > +     struct nlattr **data = params->data;
> > +     struct nlattr **tb = params->tb;
> > +     struct net *net = params->net;
> > +     struct amt_dev *amt;
>
> IMHO you packed a little too much into the struct.
> Could you take the dev and the extack back out?

Sure. I thought you were suggesting packing them all
in review of v3...

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ