Message ID | 1477487048-62256-8-git-send-email-oulijun@huawei.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
On Wed, Oct 26, 2016 at 09:04:08PM +0800, Lijun Ou wrote: > +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) I don't see a compilation problem on x86, so please do not do this. For maintainability we need all providers to compile on x86. For now just drop in a '# FIXME: Kernel driver only builds on ARM64' and maybe we can optimize things someday to always build but not install the .so > +rdma_provider(hns > + hns_roce_u_buf.c > + hns_roce_u.c > + hns_roce_u_hw_v1.c > + hns_roce_u_verbs.c List should be sorted Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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@lists.01.org (moderated for non-subscribers) F: providers/hfi1verbs/ +HNS USERSPACE PROVIDER (for hns-roce.ko) +M: Lijun Ou <oulijun@huawei.com> +M: Wei Hu(Xavier) <xavier.huwei@huawei.com> +S: Supported +F: providers/hns/ + I40IW USERSPACE PROVIDER (for i40iw.ko) M: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com> 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()