]> www.infradead.org Git - users/dwmw2/linux.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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Oct 2024 15:14:50 +0000 (08:14 -0700)
commit49717ef01ce1b6dbe4cd12bee0fc25e086c555df
tree425763077116c129244ebc12105217d6cb2dc772
parent489cee4caeba4f70a29b7215cfd18152dcadab7f
idpf: Don't hard code napi_struct size

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>
drivers/net/ethernet/intel/idpf/idpf_txrx.h