RDMA/hns: Configure ecn field of ip header
authorLijun Ou <oulijun@huawei.com>
Sun, 30 Sep 2018 09:00:32 +0000 (17:00 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Oct 2018 22:21:17 +0000 (16:21 -0600)
commit157b52a08da68b650a6b5bcaf427d39a5d016a36
tree7917410455a2fad31b45774ce80238251202feb7
parent05ad5482a5904c416bcfd74afd7193e206e563ce
RDMA/hns: Configure ecn field of ip header

In order to compatible with the third party RoCE device, The hardware
modify the set method for the ecn field of ip header in new hip08
version. The high 6bit of tclass be assigned for dscp field of packet.

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