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