RDMA/hns: Avoid setting loopback indicator when smac is same as dmac
authorWeihang Li <liweihang@huawei.com>
Mon, 16 Nov 2020 11:33:24 +0000 (19:33 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Nov 2020 19:24:48 +0000 (15:24 -0400)
commit3631dadfb118821236098a215e59fb5d3e1c30a8
tree2ebf46104ffa83c0b5701d26e42c4f9170a2f9d9
parentfba429fcf9a5e0c4ec2523ecf4cf18bc0507fcbc
RDMA/hns: Avoid setting loopback indicator when smac is same as dmac

The loopback flag will be set to 1 by the hardware when the source mac
address is same as the destination mac address. So the driver don't need
to compare them.

Fixes: d6a3627e311c ("RDMA/hns: Optimize wqe buffer set flow for post send")
Link: https://lore.kernel.org/r/1605526408-6936-4-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c