OSDN Git Service

RDMA/hns: Add CM of vlan device support
authorLijun Ou <oulijun@huawei.com>
Sat, 22 Sep 2018 08:21:07 +0000 (16:21 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 26 Sep 2018 20:59:13 +0000 (14:59 -0600)
commit944e64093a63bfab0a4f7ecebcd434630dff9107
treea1d5febd46e6333c573683cb9e55417eed8576fa
parent384f881851127dd834a2733f91999b859a5ffddb
RDMA/hns: Add CM of vlan device support

This patch mainly sets the vlan_id field in the WC for rdma_listen() to
work over vlan. This is required by ib_init_ah_attr_from_wc() which is
called by the CM REQ handler.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h