RDMA/hns: Reduce PFC frames in congestion scenarios
authorJihua Tao <taojihua4@huawei.com>
Thu, 26 Mar 2020 03:40:16 +0000 (11:40 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Sun, 29 Mar 2020 14:04:21 +0000 (11:04 -0300)
commit9d04d56c47b11962391b96202e181042941e30b3
treee102d9cc9880651fcbc15ac9af4be2e186c44155
parentdbdf8909d03d8ab23dc7a6d6edce0791d6a9055c
RDMA/hns: Reduce PFC frames in congestion scenarios

The original value means sending 16 packets at a time, and it should be
configured to 0 which means sending 1 packet instead. It is modified to
reduce the number of PFC frames to make sure the performance meets
expectations when flow control is enabled on hip08.

Link: https://lore.kernel.org/r/1585194018-4381-2-git-send-email-liweihang@huawei.com
Signed-off-by: Jihua Tao <taojihua4@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