Thomas Richter | 6812baa | 2017-01-09 16:55:15 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 14 | struct smc_ib_device; |
| 15 | |
| 16 | int smc_pnet_init(void) __init; |
| 17 | void smc_pnet_exit(void); |
| 18 | int smc_pnet_remove_by_ibdev(struct smc_ib_device *ibdev); |
| 19 | struct smc_ib_device *smc_pnet_find_ib(char *ib_name); |
| 20 | void smc_pnet_find_roce_resource(struct sock *sk, |
| 21 | struct smc_ib_device **smcibdev, u8 *ibport); |
| 22 | |
| 23 | #endif |