RDMA/core: Use kzalloc_flex for GID table

Simplifies allocations by using a flexible array member in struct ib_gid_table.

Add __counted_by to get extra runtime analysis.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260327030124.8385-1-rosenp@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
Rosen Penev 2026-03-26 20:01:24 -07:00 • committed by Leon Romanovsky
commit cef2842c92