RDMA/hns: Disable alw_lcl_lpbk of SSU
authorWeihang Li <liweihang@hisilicon.com>
Thu, 8 Aug 2019 14:53:53 +0000 (22:53 +0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Aug 2019 14:45:09 +0000 (10:45 -0400)
commitd967e2625faa43da9e3be3228b8c57d3cf404953
treede14dabb7bef8dd005977cbad7bcfaab68f49d6e
parent249f2f921f24db878b0cc5da80cb15d531587d79
RDMA/hns: Disable alw_lcl_lpbk of SSU

If we enabled alw_lcl_lpbk in promiscuous mode, packet whose source
and destination mac address is equal will be handled in both inner
loopback and outer loopback. This will halve performance of roce in
promiscuous mode.

Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Link: https://lore.kernel.org/r/1565276034-97329-14-git-send-email-oulijun@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c