]> git.ipfire.org Git - thirdparty/linux.git/commit
smc: Use flexible array for SMCD connections
authorRosen Penev <rosenp@gmail.com>
Tue, 19 May 2026 00:52:06 +0000 (17:52 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 May 2026 00:13:18 +0000 (17:13 -0700)
commit5026c42d7f147fb6bc4e063abfa5b52bfd52ca35
tree7a7fd0dde81e91eb777b61e265ebcdc4bbb22527
parenta2b5e31b668fbd59b3d5bff634d923fe9d1ac8b4
smc: Use flexible array for SMCD connections

Store the per-DMB connection pointers in the SMCD device allocation
instead of allocating a separate connection array.

This keeps the connection table tied to the SMCD device lifetime and
simplifies the allocation and cleanup paths.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Sidraya Jayagond <sidraya@linux.ibm.com>
Link: https://patch.msgid.link/20260519005206.628071-1-rosenp@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/smc.h
net/smc/smc_ism.c