Re: [RFC net-next 1/1] idpf: Don't hard code napi_struct size
From: Simon Horman
Date: Wed Sep 25 2024 - 16:33:40 EST
On Wed, Sep 25, 2024 at 06:00:17PM +0000, Joe Damato wrote:
> The sizeof(struct napi_struct) can change. Don't hardcode the size to
> 400 bytes and instead use "sizeof(struct napi_struct)".
>
> While fixing this, also move other calculations into compile time
> defines.
>
> Signed-off-by: Joe Damato <jdamato@xxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>