]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
idpf: Don't hard code napi_struct size
authorJoe Damato <jdamato@fastly.com>
Fri, 4 Oct 2024 10:54:07 +0000 (10:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:37 +0000 (14:39 +0200)
commite8bba7ced03ef9a8de546ba2f79945aa13a0e9e6
treed19f69b3554a650d80ce168c6e316f3601da4b48
parentc35771342e47d58ab9433f3be1c3c30f2c5fa4f3
idpf: Don't hard code napi_struct size

commit 49717ef01ce1b6dbe4cd12bee0fc25e086c555df upstream.

The sizeof(struct napi_struct) can change. Don't hardcode the size to
400 bytes and instead use "sizeof(struct napi_struct)".

Suggested-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Joe Damato <jdamato@fastly.com>
Acked-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://patch.msgid.link/20241004105407.73585-1-jdamato@fastly.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
[Yifei: In Linux-6.12.y, it still hard code the size of napi_struct,
adding a member will lead the entire build failed]
Signed-off-by: Yifei Liu <yifei.l.liu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/idpf/idpf_txrx.h