This series does cleanups on UD related code at first, including removing dead code, adding necessary check and some refactors. Then the UD feature is enabled on HIP09. Changes since v1: - Don't allow HIP08's user to create AH and UD QP from userspace and add .create_user_ah in #6. - Drop #4 from the v1 series which needs more discussion about the reserved sl. link: https://patchwork.kernel.org/project/linux-rdma/cover/1604057975-23388-1-git-send-email-liweihang@xxxxxxxxxx/ Weihang Li (7): RDMA/hns: Only record vlan info for HIP08 RDMA/hns: Fix missing fields in address vector RDMA/hns: Avoid setting loopback indicator when smac is same as dmac RDMA/hns: Remove the portn field in UD SQ WQE RDMA/hns: Simplify process of filling UD SQ WQE RDMA/hns: Add UD support for HIP09 RDMA/hns: Add support for UD inline drivers/infiniband/hw/hns/hns_roce_ah.c | 62 ++++----- drivers/infiniband/hw/hns/hns_roce_device.h | 4 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 196 ++++++++++++++++++++-------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 44 +++---- drivers/infiniband/hw/hns/hns_roce_main.c | 1 + drivers/infiniband/hw/hns/hns_roce_qp.c | 45 +++++-- 6 files changed, 229 insertions(+), 123 deletions(-) -- 2.8.1