| ec169149 | 06-Apr-2022 |
Huisong Li <[email protected]> |
net/hns3: remove unnecessary RSS switch
Whether the RSS is enabled depends on RTE_ETH_MQ_RX_RSS_FLAG and packet tuple are enabled. So the RSS switch is unnecessary.
Fixes: 5e782bc2570c ("net/hns3:
net/hns3: remove unnecessary RSS switch
Whether the RSS is enabled depends on RTE_ETH_MQ_RX_RSS_FLAG and packet tuple are enabled. So the RSS switch is unnecessary.
Fixes: 5e782bc2570c ("net/hns3: fix configuring RSS hash when rules are flushed") Fixes: fd8196838763 ("net/hns3: fix configuring device with RSS enabled") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| bfd0b54d | 05-May-2022 |
Huisong Li <[email protected]> |
net/hns3: remove redundant RSS tuple field
The 'rss_tuple_fields' in struct struct hns3_rss_conf::rss_tuple_sets is redundant. Because the enabled RSS tuple in PMD is already managed by the 'types'
net/hns3: remove redundant RSS tuple field
The 'rss_tuple_fields' in struct struct hns3_rss_conf::rss_tuple_sets is redundant. Because the enabled RSS tuple in PMD is already managed by the 'types' in struct hns3_rss_conf::conf. This patch removes this redundant variable.
Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| 07f64b5f | 05-May-2022 |
Huisong Li <[email protected]> |
net/hns3: fix rollback on RSS hash update
The RSS tuple isn't restored when RSS key length is invalid or setting algo key failed. This patch fixes it.
Fixes: c37ca66f2b27 ("net/hns3: support RSS")
net/hns3: fix rollback on RSS hash update
The RSS tuple isn't restored when RSS key length is invalid or setting algo key failed. This patch fixes it.
Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| 75ccc3f3 | 05-May-2022 |
Huisong Li <[email protected]> |
net/hns3: fix RSS disable
Currently, hns3 PMD disable RSS by resetting redirection table when user set rss_hf to 0 so as to all packets go to queue 0. The implementation may cause following problems
net/hns3: fix RSS disable
Currently, hns3 PMD disable RSS by resetting redirection table when user set rss_hf to 0 so as to all packets go to queue 0. The implementation may cause following problems: 1) the same type packet may go to different queue on the case of disabling all tuples and partial tuples. The problem is determined by hardware design. 2) affect the configuration of redirection table and user experience.
For hns3 hardware, the packets with RSS disabled are always go to the queue corresponding to first entry of the redirection table. Generally, disable RSS should be implemented by disabling all tuples, This patch fix the implementation.
Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| 2d287ea3 | 05-May-2022 |
Chengwen Feng <[email protected]> |
net/hns3: fix mbuf free on Tx done cleanup
Currently, the hns3 PMD may free more mbufs than free_cnt parameter, this is an incorrect implementation. This patch fixes it.
Fixes: 0b77e8f3d364 ("net/h
net/hns3: fix mbuf free on Tx done cleanup
Currently, the hns3 PMD may free more mbufs than free_cnt parameter, this is an incorrect implementation. This patch fixes it.
Fixes: 0b77e8f3d364 ("net/hns3: optimize Tx performance") Cc: [email protected]
Signed-off-by: Chengwen Feng <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| ec0147b5 | 05-May-2022 |
Huisong Li <[email protected]> |
net/hns3: fix pseudo-sharing between threads
Some fields in the end of 'struct hns3_rx_queue' and 'struct hns3_tx_queue' are not accessed in the I/O path. But these fields may be accessed in other t
net/hns3: fix pseudo-sharing between threads
Some fields in the end of 'struct hns3_rx_queue' and 'struct hns3_tx_queue' are not accessed in the I/O path. But these fields may be accessed in other threads, which may lead to the problem of cache pseudo-sharing of IO threads. This patch add a cacheline alignment to avoid it.
Fixes: 9261fd3caf1f ("net/hns3: improve IO path data cache usage") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| a65342d9 | 05-May-2022 |
Huisong Li <[email protected]> |
net/hns3: fix MAC and queues HW statistics overflow
The MAC and queues statistics are 32-bit registers in hardware. If hardware statistics are not obtained for a long time, these statistics will be
net/hns3: fix MAC and queues HW statistics overflow
The MAC and queues statistics are 32-bit registers in hardware. If hardware statistics are not obtained for a long time, these statistics will be overflow. So PF and VF driver have to periodically obtain and save these statistics. Since the periodical task and the stats API are in different threads, we introduce a statistics lock to protect the statistics.
Fixes: 8839c5e202f3 ("net/hns3: support device stats") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| 1a1de987 | 05-May-2022 |
Huisong Li <[email protected]> |
net/hns3: fix order of clearing imissed register in PF
Clearing imissed registers in PF hardware depends on the 'drop_stats_mode' in struct hns3_hw. The variable is initialized after the "hns3_get_c
net/hns3: fix order of clearing imissed register in PF
Clearing imissed registers in PF hardware depends on the 'drop_stats_mode' in struct hns3_hw. The variable is initialized after the "hns3_get_configuration". But, in current code, the clearing operation runs before the function. So this patch fixes this order. In addition, this patch extracts a public function to initialize and uninitialize statistics to improve the maintainability of these codes.
Fixes: 3e9f3042d7c8 ("net/hns3: add imissed packet stats") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| dfee5606 | 14-Apr-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: fix device info dump
Rx/Tx queue info dump and pvid info dump is both supported in PF and VF. This patch fixed it.
Fixes: 1a03c659cb9d ("net/hns3: dump device basic info") Cc: stable@dpdk
net/hns3: fix device info dump
Rx/Tx queue info dump and pvid info dump is both supported in PF and VF. This patch fixed it.
Fixes: 1a03c659cb9d ("net/hns3: dump device basic info") Cc: [email protected]
Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| c36f555b | 14-Apr-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: fix TM info dump
Shouldn't dump TM info when TM is not supported by the NIC. This patch fixed it.
Fixes: e4cfe6bb9114 ("net/hns3: dump TM configuration info") Cc: [email protected]
Signed-
net/hns3: fix TM info dump
Shouldn't dump TM info when TM is not supported by the NIC. This patch fixed it.
Fixes: e4cfe6bb9114 ("net/hns3: dump TM configuration info") Cc: [email protected]
Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| da2c1aa4 | 14-Apr-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: refactor queue info dump
This patch refactors queue info dump.
Fixes: 6038c8a3f63c ("net/hns3: dump queue info") Cc: [email protected]
Signed-off-by: Min Hu (Connor) <[email protected]> |
| c448cf19 | 14-Apr-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: refactor feature capability dump
This patch refactors feature capability dump.
Fixes: 14ea9f0a62c6 ("net/hns3: dump device feature capability") Cc: [email protected]
Signed-off-by: Min Hu
net/hns3: refactor feature capability dump
This patch refactors feature capability dump.
Fixes: 14ea9f0a62c6 ("net/hns3: dump device feature capability") Cc: [email protected]
Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| aadcd32a | 14-Apr-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: refactor adapter state dump
This patch refactors adapter state dump.
Fixes: 1a03c659cb9d ("net/hns3: dump device basic info") Cc: [email protected]
Signed-off-by: Min Hu (Connor) <humin29@
net/hns3: refactor adapter state dump
This patch refactors adapter state dump.
Fixes: 1a03c659cb9d ("net/hns3: dump device basic info") Cc: [email protected]
Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|
| d6a9f8fb | 02-Mar-2022 |
Huisong Li <[email protected]> |
net/hns3: increase time waiting for PF reset completion
On the case that PF and VF need to be reset, after the hardware reset is complete, VF needs wait for 1 second to restore the configuration so
net/hns3: increase time waiting for PF reset completion
On the case that PF and VF need to be reset, after the hardware reset is complete, VF needs wait for 1 second to restore the configuration so that VF does not fail to recover because PF reset isn't complete. But the estimated time is not sufficient. This patch fixes it to 5 seconds.
Fixes: 2790c6464725 ("net/hns3: support device reset") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Acked-by: Min Hu (Connor) <[email protected]>
show more ...
|
| 87f9628e | 28-Feb-2022 |
Huisong Li <[email protected]> |
net/hns3: fix VF RSS TC mode entry
For packets with VLAN priorities destined for the VF, hardware still assign Rx queue based on the Up-to-TC mapping PF configured. But VF has only one TC. If other
net/hns3: fix VF RSS TC mode entry
For packets with VLAN priorities destined for the VF, hardware still assign Rx queue based on the Up-to-TC mapping PF configured. But VF has only one TC. If other TC don't enable, it causes that the priority packets that aren't destined for TC0 aren't received by RSS hash but is destined for queue 0. So driver has to enable the unused TC by using TC0 queue mapping configuration.
Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Acked-by: Min Hu (Connor) <[email protected]>
show more ...
|
| cdb9a7ae | 28-Feb-2022 |
Huisong Li <[email protected]> |
net/hns3: fix RSS TC mode entry
The driver allocates queues only to valid TCs. But the driver also configure queues for invalid TCs, which is unreasonable.
Fixes: c37ca66f2b27 ("net/hns3: support R
net/hns3: fix RSS TC mode entry
The driver allocates queues only to valid TCs. But the driver also configure queues for invalid TCs, which is unreasonable.
Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: [email protected]
Signed-off-by: Huisong Li <[email protected]> Acked-by: Min Hu (Connor) <[email protected]>
show more ...
|
| 0983cdc1 | 28-Feb-2022 |
Jie Hai <[email protected]> |
net/hns3: remove duplicate macro definition
This patch fixes duplicate macro definition of HNS3_RSS_CFG_TBL_SIZE.
Fixes: 737f30e1c3ab ("net/hns3: support command interface with firmware") Cc: stabl
net/hns3: remove duplicate macro definition
This patch fixes duplicate macro definition of HNS3_RSS_CFG_TBL_SIZE.
Fixes: 737f30e1c3ab ("net/hns3: support command interface with firmware") Cc: [email protected]
Signed-off-by: Jie Hai <[email protected]> Acked-by: Min Hu (Connor) <[email protected]>
show more ...
|
| a41f593f | 11-Feb-2022 |
Ferruh Yigit <[email protected]> |
ethdev: introduce generic dummy packet burst function
Multiple PMDs have dummy/noop Rx/Tx packet burst functions.
These dummy functions are very simple, introduce a common function in the ethdev an
ethdev: introduce generic dummy packet burst function
Multiple PMDs have dummy/noop Rx/Tx packet burst functions.
These dummy functions are very simple, introduce a common function in the ethdev and update drivers to use it instead of each driver having its own functions.
Signed-off-by: Ferruh Yigit <[email protected]> Acked-by: Morten Brørup <[email protected]> Acked-by: Viacheslav Ovsiienko <[email protected]> Acked-by: Thomas Monjalon <[email protected]>
show more ...
|
| f6eee8bc | 11-Feb-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: dump flow control info
This patch dumps flow control info such as flow control mode for debug.
Signed-off-by: Min Hu (Connor) <[email protected]> |
| e4cfe6bb | 11-Feb-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: dump TM configuration info
This patch dumps TM configuration info about shaper, port node, TC node, queue node related info.
Signed-off-by: Min Hu (Connor) <[email protected]> |
| e221a067 | 11-Feb-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: dump flow director basic info
This patch dumps flow director basic info such rule numbers, hit counts for debug.
Signed-off-by: Min Hu (Connor) <[email protected]> |
| 871e5a4f | 11-Feb-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: dump VLAN configuration info
This patch dump VLAN filter, strip related info and Pvid info for debug.
Signed-off-by: Min Hu (Connor) <[email protected]> |
| 6038c8a3 | 11-Feb-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: dump queue info
This patch dumps Rx/Tx queue info, such as queue numbers, queue enable state for debug.
Signed-off-by: Min Hu (Connor) <[email protected]> |
| 17063e44 | 11-Feb-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: dump device MAC info
This patch dumps device MAC info which hns3 PMD private info offers.
Signed-off-by: Min Hu (Connor) <[email protected]> |
| 14ea9f0a | 11-Feb-2022 |
Min Hu (Connor) <[email protected]> |
net/hns3: dump device feature capability
Kunpeng 920 and Kunpeng 930 support different feature capability. This patch dumps feature capability Current device supports.
Signed-off-by: Min Hu (Connor
net/hns3: dump device feature capability
Kunpeng 920 and Kunpeng 930 support different feature capability. This patch dumps feature capability Current device supports.
Signed-off-by: Min Hu (Connor) <[email protected]>
show more ...
|