smc_pnet.h 533 B

1234567891011121314151617181920212223
  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. struct smc_ib_device *smc_pnet_find_ib(char *ib_name);
  17. void smc_pnet_find_roce_resource(struct sock *sk,
  18. struct smc_ib_device **smcibdev, u8 *ibport);
  19. #endif