Re: [PATCH net-next v2 09/14] net: macb: change caps helpers signatures

Jakub Kicinski
2026-04-14T00:47:23Z

On Fri, 10 Apr 2026 21:51:57 +0200 Théo Lebrun wrote:
> For parallel MACB context to start become a reality, many functions will
> soon not have access to `struct macb *bp`. Those will still have access
> to caps through ctx->info->caps.
>
> Change all caps helpers signatures, from taking `struct macb *bp` to
> taking `u32 caps`.

Subjectively I feel like this is a slight loss of type safety.
Someone may pass the wrong u32 and compiler will not help?