This patch configures the consolidated repo to build userspace library of hns(libhns). Signed-off-by: Lijun Ou <oulijun@xxxxxxxxxx> Signed-off-by: Wei Hu <xavier.huwei@xxxxxxxxxx> --- CMakeLists.txt | 1 + MAINTAINERS | 6 ++++++ README.md | 1 + providers/hns/CMakeLists.txt | 15 +++++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 providers/hns/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 230aab5..5ce8e15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -328,6 +328,7 @@ add_subdirectory(libibcm) add_subdirectory(providers/cxgb3) add_subdirectory(providers/cxgb4) add_subdirectory(providers/hfi1verbs) +add_subdirectory(providers/hns) add_subdirectory(providers/i40iw) add_subdirectory(providers/ipathverbs) add_subdirectory(providers/mlx4) diff --git a/MAINTAINERS b/MAINTAINERS index d83de10..bc6eb50 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -57,6 +57,12 @@ S: Supported L: intel-opa@xxxxxxxxxxxx (moderated for non-subscribers) F: providers/hfi1verbs/ +HNS USERSPACE PROVIDER (for hns-roce.ko) +M: Lijun Ou <oulijun@xxxxxxxxxx> +M: Wei Hu(Xavier) <xavier.huwei@xxxxxxxxxx> +S: Supported +F: providers/hns/ + I40IW USERSPACE PROVIDER (for i40iw.ko) M: Tatyana Nikolova <Tatyana.E.Nikolova@xxxxxxxxx> S: Supported diff --git a/README.md b/README.md index 3a13042..e3bc33f 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ is included: - iw_cxgb3.ko - iw_cxgb4.ko - hfi1.ko + - hns-roce.ko - i40iw.ko - ib_qib.ko - mlx4_ib.ko diff --git a/providers/hns/CMakeLists.txt b/providers/hns/CMakeLists.txt new file mode 100644 index 0000000..3a47f3d --- /dev/null +++ b/providers/hns/CMakeLists.txt @@ -0,0 +1,15 @@ +CHECK_C_SOURCE_COMPILES(" +#ifndef __ARM64__ +#error Failed +#endif + int main(int argc,const char *argv[]) { return 1; }" + HAVE_ARCH_ARM64) + +if (HAVE_ARCH_ARM64) +rdma_provider(hns + hns_roce_u_buf.c + hns_roce_u.c + hns_roce_u_hw_v1.c + hns_roce_u_verbs.c +) +endif() -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html