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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:23 +0000 (11:53 +0100)
commitaf7ae245945a3eac45db5ac51aa1ae855ccf6d98
tree1537a544de6c0b217e6475ca62e77aa708ec4d74
parent6b8a015eda204c985ba643ae1e0a428b4ea5f574
RDMA/hns: Avoid setting loopback indicator when smac is same as dmac

[ Upstream commit 3631dadfb118821236098a215e59fb5d3e1c30a8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c