On Fri, Aug 21, 2020 at 05:31:29PM +0800, Weihang Li wrote: > The UDP source port number in RoCE v2 is used to create entropy for network > routers (ECMP), load balancers and 802.3ad link aggregation switching that > are not aware of RoCE IB headers. Considering that the IB core has achieved > a new interface to get a hashed value of it,the fixed value of it in QPC > and UD WQE in hns driver could be fixed and the port number is to be set > dynamically now. > > For QPC of RC, the value could be hashed from flow_lable if the user pass > it in or from remote qpn and local qpn. For WQE of UD, it is set according > to fl or as a random value. > > Signed-off-by: Weihang Li <liweihang@xxxxxxxxxx> > --- > drivers/infiniband/hw/hns/hns_roce_ah.c | 18 ++++++++++++++++++ > drivers/infiniband/hw/hns/hns_roce_device.h | 23 ++++++++++++----------- > drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 13 +++++++++++-- > include/rdma/ib_verbs.h | 1 + > 4 files changed, 42 insertions(+), 13 deletions(-) Applied to for-next, thanks Jason