Huisong Li
fc18d1b4b8
net/hns3: fix traffic management
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") Cc: stable@dpdk.org Signed-off-by: Huisong Li <lihuisong@huawei.com> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD-3-Clause license for the core libraries and drivers. The kernel components are GPL-2.0 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org
Description
Languages
C
99.1%
Meson
0.5%
Python
0.2%
Shell
0.1%