net/hns3: set max scheduling rate based on actual board
authorHuisong Li <lihuisong@huawei.com>
Tue, 29 Sep 2020 12:01:14 +0000 (20:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 8 Oct 2020 17:58:10 +0000 (19:58 +0200)
commit040bb0f7253ee835e7fb34ff0e513c2c2f41b94e
tree2acaae5cc64a3832fae3e2477231005a3b0158c3
parent5d78d42b31203594c6140a4bf0409f854bafe517
net/hns3: set max scheduling rate based on actual board

Currently, max scheduling rates configuration of pg, pri and port are
set to 100000Mbps, which is the maximum bandwidth of hns3 network engine
with revision_id equals 0x21. However, max scheduling rate configuration
should be set to hardware based on the actual hardware board
environment.

The max_tm_rate in struct hns3_hw, meaning the rate, is obtained from
firmware. So we should use the variable to configure the max scheduling
rate.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_dcb.c