]> www.infradead.org Git - users/willy/xarray.git/commit
eth: bnxt: bump the entry size in indir tables to u32
authorJakub Kicinski <kuba@kernel.org>
Thu, 11 Jul 2024 22:07:12 +0000 (15:07 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jul 2024 05:16:23 +0000 (22:16 -0700)
commit73afb518af4af2364793849b069716425a665c6c
tree2f3a75b5ceac5da33f558b2f5a3a29639f64aa58
parent9c34c6c28c704fb2f6124d7b6a6837bdbc8e72fc
eth: bnxt: bump the entry size in indir tables to u32

Ethtool core stores indirection table with u32 entries, "just to be safe".
Switch the type in the driver, so that it's easier to swap local tables
for the core ones. Memory allocations already use sizeof(*entry), switch
the memset()s as well.

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20240711220713.283778-11-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c