/* SPDX-License-Identifier: GPL-2.0 */ /* * Shared Memory Communications Direct over loopback-ism device. * * SMC-D loopback-ism device structure definitions. * * Copyright (c) 2024, Alibaba Inc. * * Author: Wen Gu <[email protected]> * Tony Lu <[email protected]> * */ #ifndef _SMC_LOOPBACK_H #define _SMC_LOOPBACK_H #include <linux/device.h> #include <linux/err.h> #include <net/smc.h> #if IS_ENABLED(CONFIG_SMC_LO) #define SMC_LO_MAX_DMBS … #define SMC_LO_DMBS_HASH_BITS … #define SMC_LO_RESERVED_CHID … struct smc_lo_dmb_node { … }; struct smc_lo_dev { … }; int smc_loopback_init(void); void smc_loopback_exit(void); #else static inline int smc_loopback_init(void) { return 0; } static inline void smc_loopback_exit(void) { } #endif #endif /* _SMC_LOOPBACK_H */