]> git.ipfire.org Git - thirdparty/linux.git/commit
net: mana: Allow variable size indirection table
authorShradha Gupta <shradhagupta@linux.microsoft.com>
Mon, 10 Jun 2024 10:28:39 +0000 (03:28 -0700)
committerLeon Romanovsky <leon@kernel.org>
Wed, 12 Jun 2024 18:08:42 +0000 (21:08 +0300)
commit7fc45cb68696c7213c484ec81892bc8a986fde52
treea1775d935b301fb8cf5a9fb8931224fecbc22445
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
net: mana: Allow variable size indirection table

Allow variable size indirection table allocation in MANA instead
of using a constant value MANA_INDIRECT_TABLE_SIZE.
The size is now derived from the MANA_QUERY_VPORT_CONFIG and the
indirection table is allocated dynamically.

Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Link: https://lore.kernel.org/r/1718015319-9609-1-git-send-email-shradhagupta@linux.microsoft.com
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mana/qp.c
drivers/net/ethernet/microsoft/mana/mana_en.c
drivers/net/ethernet/microsoft/mana/mana_ethtool.c
include/net/mana/gdma.h
include/net/mana/mana.h