RDMA/hns: Logic optimization of wc_flags
authorWeihang Li <liweihang@hisilicon.com>
Fri, 9 Aug 2019 09:40:58 +0000 (17:40 +0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Aug 2019 16:32:36 +0000 (12:32 -0400)
commit0e1aa6f0959e053651102c69cde9d6c42fea2a91
treea99634cce0d2d86fce4eab58cb5ac1c5a53c36ee
parent9dc4cfff115f03e999e5d50a593c83cd0ef4125c
RDMA/hns: Logic optimization of wc_flags

We should set IB_WC_WITH_VLAN only when VLAN is enabled.
In addition, move setting of IB_WC_WITH_SMAC below
setting of wc->smac.

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