Re: [PATCH net v2 7/8] net/mlx5e: take into account device reconfiguration for xdp_features flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15 Mar 19:53, Jakub Kicinski wrote:
On Wed, 15 Mar 2023 19:46:10 -0700 Saeed Mahameed wrote:
>I think so.. let me send a full patch.

We have an  internal version of a fix, Tariq is finalizing some review
comments and we will be posting it ASAP.

Ah, I already posted. Does it look different?


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.

https://patchwork.kernel.org/project/netdevbpf/patch/20230316002903.492497-1-kuba@xxxxxxxxxx/


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


I wanted to make sure that it's ready for tomorrow's PR





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux