Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32 lines
819 B
C
32 lines
819 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Shared Memory Communications over RDMA (SMC-R) and RoCE
|
|
*
|
|
* Generic hook for SMC handshake flow.
|
|
*
|
|
* Copyright IBM Corp. 2016
|
|
* Copyright (c) 2025, Alibaba Inc.
|
|
*
|
|
* Author: D. Wythe <alibuda@linux.alibaba.com>
|
|
*/
|
|
|
|
#ifndef __SMC_HS_CTRL
|
|
#define __SMC_HS_CTRL
|
|
|
|
#include <net/smc.h>
|
|
|
|
/* Find hs_ctrl by the target name, which required to be a c-string.
|
|
* Return NULL if no such ctrl was found,otherwise, return a valid ctrl.
|
|
*
|
|
* Note: Caller MUST ensure it's was invoked under rcu_read_lock.
|
|
*/
|
|
struct smc_hs_ctrl *smc_hs_ctrl_find_by_name(const char *name);
|
|
|
|
#if IS_ENABLED(CONFIG_SMC_HS_CTRL_BPF)
|
|
int bpf_smc_hs_ctrl_init(void);
|
|
#else
|
|
static inline int bpf_smc_hs_ctrl_init(void) { return 0; }
|
|
#endif /* CONFIG_SMC_HS_CTRL_BPF */
|
|
|
|
#endif /* __SMC_HS_CTRL */
|