blob: 5a29519db976f2b1b542e7aacacaed4f3f8ea812 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Thomas Richter6812baa2017-01-09 16:55:15 +01002/*
3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
4 *
5 * PNET table queries
6 *
7 * Copyright IBM Corp. 2016
8 *
9 * Author(s): Thomas Richter <tmricht@linux.vnet.ibm.com>
10 */
11
12#ifndef _SMC_PNET_H
13#define _SMC_PNET_H
14
15struct smc_ib_device;
16
17int smc_pnet_init(void) __init;
18void smc_pnet_exit(void);
19int smc_pnet_remove_by_ibdev(struct smc_ib_device *ibdev);
Thomas Richter6812baa2017-01-09 16:55:15 +010020void smc_pnet_find_roce_resource(struct sock *sk,
21 struct smc_ib_device **smcibdev, u8 *ibport);
22
23#endif