net/smc: mark optional smcd_ops and check for support when called
authorWen Gu <guwen@linux.alibaba.com>
Sun, 28 Apr 2024 06:07:32 +0000 (14:07 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Apr 2024 11:24:48 +0000 (13:24 +0200)
commitd1d8d0b6c7c68b0665456831fa779174ebd78f90
treeee568441aed8f698c2ba000676668cc1d798aa4c
parentf7a22071dbf316c982fb44308874bd7ad9ac2091
net/smc: mark optional smcd_ops and check for support when called

Some operations are not supported by new introduced Emulated-ISM, so
mark them as optional and check if the device supports them when called.

Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Reviewed-and-tested-by: Jan Karcher <jaka@linux.ibm.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/smc.h
net/smc/smc_ism.c