smc_pnet.h 478 B

12345678910111213141516171819202122
  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. #ifndef _SMC_PNET_H
  11. #define _SMC_PNET_H
  12. struct smc_ib_device;
  13. int smc_pnet_init(void) __init;
  14. void smc_pnet_exit(void);
  15. int smc_pnet_remove_by_ibdev(struct smc_ib_device *ibdev);
  16. void smc_pnet_find_roce_resource(struct sock *sk,
  17. struct smc_ib_device **smcibdev, u8 *ibport);
  18. #endif