numam-dpdk/drivers/net/hns3
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: c09c7847d8 ("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>
2021-07-02 19:03:03 +02:00
..
hns3_cmd.c net/hns3: fix traffic management 2021-07-02 19:03:03 +02:00
hns3_cmd.h net/hns3: fix traffic management 2021-07-02 19:03:03 +02:00
hns3_dcb.c net/hns3: fix traffic management 2021-07-02 19:03:03 +02:00
hns3_dcb.h net/hns3: fix traffic management 2021-07-02 19:03:03 +02:00
hns3_ethdev_vf.c net/hns3: support Tx push quick doorbell for performance 2021-07-02 19:03:03 +02:00
hns3_ethdev.c net/hns3: support Tx push quick doorbell for performance 2021-07-02 19:03:03 +02:00
hns3_ethdev.h net/hns3: fix traffic management 2021-07-02 19:03:03 +02:00
hns3_fdir.c net/hns3: clear hash map on flow director clear 2021-05-11 18:27:25 +02:00
hns3_fdir.h net/hns3: fix flow director lock 2021-04-20 02:40:43 +02:00
hns3_flow.c net/hns3: fix querying flow director counter for out param 2021-05-11 18:29:06 +02:00
hns3_intr.c net/hns3: increase VF reset retry maximum 2021-07-02 19:03:03 +02:00
hns3_intr.h net/hns3: fix TM QCN error event report by MSI-X 2021-05-11 19:34:17 +02:00
hns3_logs.h net/hns3: fix copyright date 2021-04-08 17:55:35 +02:00
hns3_mbx.c net/hns3: fix mailbox message ID in log 2021-05-11 20:07:59 +02:00
hns3_mbx.h net/hns3: remove unused mailbox macro and struct 2021-04-26 14:50:33 +02:00
hns3_mp.c net/hns3: fix ordering in secondary process initialization 2021-05-11 20:07:59 +02:00
hns3_mp.h net/hns3: fix copyright date 2021-04-08 17:55:35 +02:00
hns3_ptp.c net/hns3: support IEEE 1588 PTP 2021-04-01 18:39:55 +02:00
hns3_regs.c net/hns3: support get device version when dump register 2021-04-08 18:57:09 +02:00
hns3_regs.h net/hns3: fix copyright date 2021-04-08 17:55:35 +02:00
hns3_rss.c net/hns3: fix copyright date 2021-04-08 17:55:35 +02:00
hns3_rss.h net/hns3: fix copyright date 2021-04-08 17:55:35 +02:00
hns3_rxtx_vec_neon.h net/hns3: support Tx push quick doorbell for performance 2021-07-02 19:03:03 +02:00
hns3_rxtx_vec_sve.c net/hns3: support Tx push quick doorbell for performance 2021-07-02 19:03:03 +02:00
hns3_rxtx_vec.c net/hns3: fix vector Rx burst limitation 2021-05-04 18:02:14 +02:00
hns3_rxtx_vec.h net/hns3: fix vector Rx burst limitation 2021-05-04 18:02:14 +02:00
hns3_rxtx.c net/hns3: support Tx push quick doorbell for performance 2021-07-02 19:03:03 +02:00
hns3_rxtx.h net/hns3: support Tx push quick doorbell for performance 2021-07-02 19:03:03 +02:00
hns3_stats.c net/hns3: increase readability in logs 2021-05-04 18:12:45 +02:00
hns3_stats.h net/hns3: fix copyright date 2021-04-08 17:55:35 +02:00
hns3_tm.c net/hns3: fix traffic management 2021-07-02 19:03:03 +02:00
hns3_tm.h net/hns3: fix traffic management 2021-07-02 19:03:03 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00