]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
octeontx2-af: Simplify a size computation in rvu_npc_exact_init()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 25 Nov 2022 12:24:01 +0000 (13:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Dec 2022 04:42:20 +0000 (20:42 -0800)
commit450f065053967f446afafc39328776b473305378
treeec1d942d845a9e651b919e2468f9b62099a5e51d
parent6d135d9e2b004024b84bd7c308f58300b64d29b6
octeontx2-af: Simplify a size computation in rvu_npc_exact_init()

We know that table_size = table->mem_table.depth * table->mem_table.ways,
so use it instead, it is less verbose.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/5230dabe27f48948a9fd0f50a62e2437b65e6a6e.1669378798.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c