On 6/21/21 10:38 AM, Min Hu (Connor) wrote: > From: Huisong Li <lihuis...@huawei.com> > > In a multi-TC scenario, if the length of packets destined for different > TCs is different, for example, 64B and 1500B packets destined for TC0 and > TC1 respectively. There is a problem that the bandwidth of the TC to which > large packets are sent is preempted by the TC to which small packets are > sent on the Kunpeng 920 network engine. As a result, the TC bandwidth > accuracy is inaccurate. > > To solve this problem, this patch made the following adjustments: > 1/ During initialization, firmware reports the capability bit indicating > whether the TM function is supported. > 2/ The command word for configuring TC and port rate limiting is added, > instead of reusing the existing command word. And firmware configured > to the correct module. > 3/ When the PF driver is loaded, firmware completes the default > initialization of the TC and port. > > Fixes: c09c7847d892 ("net/hns3: support traffic management") > > Signed-off-by: Huisong Li <lihuis...@huawei.com> > Signed-off-by: Min Hu (Connor) <humi...@huawei.com>
Applied, thanks.