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
| ||
|
Message-ID: <20230315223715.702f0900@kernel.org> Date: Wed, 15 Mar 2023 22:37:15 -0700 From: Jakub Kicinski <kuba@...nel.org> To: Saeed Mahameed <saeed@...nel.org> Cc: Lorenzo Bianconi <lorenzo@...nel.org>, netdev@...r.kernel.org, bpf@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com, ast@...nel.org, daniel@...earbox.net, hawk@...nel.org, john.fastabend@...il.com, saeedm@...dia.com, leon@...nel.org, shayagr@...zon.com, akiyano@...zon.com, darinzon@...zon.com, sgoutham@...vell.com, lorenzo.bianconi@...hat.com, toke@...hat.com, teknoraver@...a.com, ttoukan.linux@...il.com Subject: Re: [PATCH net v2 7/8] net/mlx5e: take into account device reconfiguration for xdp_features flag On Wed, 15 Mar 2023 22:03:27 -0700 Saeed Mahameed wrote: > Yes, completely different, Tariq's fix is in mlx5 only. > He splits the xdp feature setting into two functions, > one to initialize the netdev's xdp before registration, > and another one to update xpd features and call the notifier in the > "after" registration set_features flows. > > I like our solution more, since it's more explicit and doesn't require > patching xdp stack because mlx5 abused xdp_set_features_flag, unless other > drivers have the same issue. I reckon there's nothing wrong with calling xdp_set_features_flag() before registration, I didn't do much research, but netif_set_real_num_*x_queues() come to mind, and they can be called at any time. The stack should act accordingly. Many drivers may need to work around an issue which can be handled centrally. Let's see if Lorenzo disagrees. > >https://patchwork.kernel.org/project/netdevbpf/patch/20230316002903.492497-1-kuba@kernel.org/ > > > > I don't see anything wrong with your patch though.. it also looks more > elegant, i dunno, I will let you decide, here's our patch: > https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git/commit/?h=testing/xdp-features-fix&id=72e2266525948ba1498e6a3f2d63ea10d5ee86f5
Powered by blists - more mailing lists