blob: 8381d163fefad5b2dd299d5bbc1fd67900bd40e4 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Ursula Braunf16a7dd2017-01-09 16:55:26 +01002/*
3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
4 *
5 * Definitions for the SMC module (socket related)
6 *
7 * Copyright IBM Corp. 2016
8 *
9 * Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com>
10 */
11#ifndef _SMC_H
12#define _SMC_H
13
14struct smc_hashinfo {
15 rwlock_t lock;
16 struct hlist_head ht;
17};
18
19int smc_hash_sk(struct sock *sk);
20void smc_unhash_sk(struct sock *sk);
21#endif /* _SMC_H */