Enables hip08 to support Unreliable Datagram. PR: https://github.com/linux-rdma/rdma-core/pull/587 Changelog: v4->v5: Fix comments from Leon Romanovsky, including some code optimizations and remove printf in library. v3->v4: Remove codes rely on kernel-headers changes about vlan and mac. v2->v3: Remove patch "libhns: Support configuring loopback mode by user" from this patchset, it needs to be further considered. v1->v2: Fix comments from Leon Romanovsky and do some fixes in patch(3/4). Lijun Ou (2): libhns: Add support of handling AH for hip08 libhns: Add UD support for hip08 in user mode Yixian Liu (2): libhns: Simplify the calculation and usage of wqe idx for post verbs libhns: Refactor for post send providers/hns/hns_roce_u.c | 2 + providers/hns/hns_roce_u.h | 39 +++ providers/hns/hns_roce_u_hw_v1.c | 27 +- providers/hns/hns_roce_u_hw_v2.c | 568 +++++++++++++++++++++------------------ providers/hns/hns_roce_u_hw_v2.h | 91 +++++++ providers/hns/hns_roce_u_verbs.c | 47 ++++ 6 files changed, 489 insertions(+), 285 deletions(-) -- 2.8.1