RDMA/hns: Remove redundant assignment of wc->smac when polling cq
authorWeihang Li <liweihang@huawei.com>
Fri, 20 Mar 2020 03:23:41 +0000 (11:23 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Mar 2020 19:52:29 +0000 (16:52 -0300)
commitcd4a70bb7d19063f63c8189bef08e2149f116ef0
tree26748fbcba58109c4bba0228242fe2dbed8acfd2
parentf4c5d869c8270703c3f3267242e4cc968c723370
RDMA/hns: Remove redundant assignment of wc->smac when polling cq

The field smac in ib_wc was used for create AH and then it will be treated
as destination mac address in UD sqwqe, but related code about filling smac
into AH has been removed in core. Actually, the dmac in UD sqwqe is parsed
from the dgid in grh which is passed in by ULP now, so this assignment
should be removed.

Link: https://lore.kernel.org/r/1584674622-52773-10-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c