smc.h (a6a6fe27bab48f0d09a64b051e7bde432fcae081) smc.h (f9496b7c1b48ce02cd17a3ee88b1e049c689a222)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
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
14#include <linux/socket.h>
15#include <linux/types.h>
16#include <linux/compiler.h> /* __aligned */
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
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
14#include <linux/socket.h>
15#include <linux/types.h>
16#include <linux/compiler.h> /* __aligned */
17#include <net/genetlink.h>
17#include <net/sock.h>
18
19#include "smc_ib.h"
20
21#define SMC_V1 1 /* SMC version V1 */
22#define SMC_V2 2 /* SMC version V2 */
23#define SMC_RELEASE 0
24

--- 306 unchanged lines hidden (view full) ---

331struct smc_gidlist;
332
333struct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);
334void smc_close_non_accepted(struct sock *sk);
335void smc_fill_gid_list(struct smc_link_group *lgr,
336 struct smc_gidlist *gidlist,
337 struct smc_ib_device *known_dev, u8 *known_gid);
338
18#include <net/sock.h>
19
20#include "smc_ib.h"
21
22#define SMC_V1 1 /* SMC version V1 */
23#define SMC_V2 2 /* SMC version V2 */
24#define SMC_RELEASE 0
25

--- 306 unchanged lines hidden (view full) ---

332struct smc_gidlist;
333
334struct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);
335void smc_close_non_accepted(struct sock *sk);
336void smc_fill_gid_list(struct smc_link_group *lgr,
337 struct smc_gidlist *gidlist,
338 struct smc_ib_device *known_dev, u8 *known_gid);
339
340/* smc handshake limitation interface for netlink */
341int smc_nl_dump_hs_limitation(struct sk_buff *skb, struct netlink_callback *cb);
342int smc_nl_enable_hs_limitation(struct sk_buff *skb, struct genl_info *info);
343int smc_nl_disable_hs_limitation(struct sk_buff *skb, struct genl_info *info);
344
339#endif /* __SMC_H */
345#endif /* __SMC_H */