190 Commits

Author SHA1 Message Date
chenyi
7573bb9b6f sync some patches from upstream about bugfix
Sync some patches from upstream about bugfix, modifies
are as follow:
 - app/testpmd: fix crash in multi-process forwarding
 - net/hns3: fix offload flag of IEEE 1588
 - net/hns3: fix read Rx timestamp handle
 - net/hns3: fix double free for Rx/Tx queue
 - net/hns3: fix variable overflow
 - net/hns3: enable PFC for all user priorities
 - ring: add telemetry command for ring info
 - ring: add telemetry command to list rings
 - net/hns3: support power monitor
 - net/hns3: disable SCTP verification tag for RSS hash input
 - app/testpmd: fix RSS algorithm choice
2024-05-30 09:39:48 +08:00
openeuler-ci-bot
e4f8bbb3d5
!543 add rte_eth_bond_link_monitoring_get in map
From: @yinbin6 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2024-04-10 06:21:03 +00:00
zhangmengxuan
d8fbc2d080 add rte_eth_bond_link_monitoring_get in map 2024-04-10 11:55:57 +08:00
openeuler-ci-bot
0ae67e2b88
!534 Add support for ppc64le
From: @peng_zou 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2024-03-12 07:07:48 +00:00
peng.zou
9580d07038 Add support for ppc64le 2024-02-02 14:12:43 +08:00
openeuler-ci-bot
6c6636702b
!524 [sync] PR-522: hns3 don't support QinQ insert for VF
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2024-01-01 11:20:59 +00:00
Dengdui Huang
f55ad35986 net/hns3: don't support QinQ insert for VF
This patch declare that the VF driver don't support QinQ insert.

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit 0183d0ca4a670691f11acc28259cfa29a0e63b00)
2023-12-29 17:36:08 +08:00
openeuler-ci-bot
b8977f0e29
!518 [sync] PR-516: Sync some patches for hns3 about mbx refactor and some reste bugfix
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-12-18 07:05:19 +00:00
Dengdui Huang
6d07a1f8c8 Sync some patches for hns3 about refactor and bugfix
Sync some patches for hns3 about refactor mailbox and bugfix, modifies
are as follow:
net/hns3: fix reset level comparison
net/hns3: fix disable command with firmware
net/hns3: fix VF multiple count on one reset
net/hns3: refactor handle mailbox function
net/hns3: refactor send mailbox function
net/hns3: refactor PF mailbox message struct
net/hns3: refactor VF mailbox message struct

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit de38802427dd9f95f5ad5505969f582598e366b4)
2023-12-15 15:58:11 +08:00
openeuler-ci-bot
258e6d9baf
!508 [sync] PR-501: sync some bugfix from upstreaming about testpmd and doc
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-12-09 08:28:39 +00:00
Dengdui Huang
ab5939fabf sync some bugfix from upstreaming about testpmd and doc
Sync some bugfix from upstreaming about testpmd and doc, modifies
are as follow:
- support set RSS hash algorithm
- ethdev: add new API to get RSS hash algorithm by name
- doc: fix description of RSS features
- doc: fix RSS flow description in hns3 guide
- doc: update features in hns3 guide
- doc: fix hns3 build option about max queue number
- app/testpmd: check port and queue Rx/Tx offloads
- app/testpmd: fix Tx offload command
- app/testpmd: allow offload config for all ports
- app/testpmd: fix tunnel TSO configuration
- app/testpmd: add explicit check for tunnel TSO
- app/testpmd: fix tunnel TSO capability check
- app/testpmd: remove useless check in TSO command

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit 7868d4e3ae469277d4b47241e84c77f53e09423b)
2023-12-09 10:35:25 +08:00
openeuler-ci-bot
f9b027e81a
!503 [sync] PR-500: sync some bugfix for hns3 reset
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-12-08 11:55:34 +00:00
Dengdui Huang
e156be98f7 sync some bugfix for hns3 reset
Sync some bugfix from upstreaming about hns3 reset and modifies
are as follow:
- net/hns3: fix VF reset handler interruption
- net/hns3: fix reset event status
- net/hns3: fix ignored reset event

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit 2199d0077da75744fc56a92a534607f5583205ee)
2023-12-08 18:51:17 +08:00
openeuler-ci-bot
ddab303f2f
!489 [sync] sync master branch
From: @huangdengdui 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-11-23 10:21:58 +00:00
Dengdui Huang
bc76778e92 sync some patchs from upstreaming
Sync some patchs from upstreaming and modifies are as follow:
- net/hns3: fix mailbox sync
- net/hns3: report maximum buffer size
- ethdev: add maximum Rx buffer size
- app/procinfo: show RSS hash algorithm
- ethdev: get RSS algorithm names
- app/procinfo: adjust format of RSS info
- app/procinfo: fix RSS info
- net/hns3: support setting and querying RSS hash function
- net/hns3: report RSS hash algorithms capability
- ethdev: set and query RSS hash algorithm
- ethdev: clarify RSS related fields usage
- net/hns3: fix uninitialized hash algo value
- net/hns3: keep set/get algo key functions local
- net/hns3: fix some error logs
- net/hns3: fix some return values
- net/hns3: fix LRO offload to report
- net/hns3: fix setting DCB capability
- app/testpmd: ease configuring all offloads
- net/hns3: refactor interrupt state query
- net/hns3: fix IMP or global reset
- net/hns3: fix multiple reset detected log
- net/hns3: remove reset log in secondary
- net/hns3: fix double stats for IMP and global reset
- net/hns3: fix crash for NEON and SVE
- net/hns3: fix unchecked Rx free threshold
- net/hns3: fix typo in function name
- net/hns3: fix build warning
- telemetry: fix repeat display when callback don't init dict

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
2023-11-21 21:38:03 +08:00
Dengdui Huang
b0dbcead43 sync some patchs from upstreaming
Sync some patchs from upstreaming and modifies are as follow:
- maintainers: update for hns3 driver
- app/testpmd: add command to flush multicast MAC addresses
- app/testpmd: fix help string
- app/testpmd: fix multicast address pool leak
- net/hns3: optimize SVE Rx performance
- net/hns3: optimize rearm mbuf for SVE Rx
- net/hns3: optimize free mbuf for SVE Tx
- net/hns3: fix order in NEON Rx
- net/hns3: fix traffic management dump text alignment
- net/hns3: fix traffic management thread safety
- net/hns3: fix flushing multicast MAC address
- net/hns3: fix error code for multicast resource
- net/hns3: fix VF default MAC modified when set failed
- net/hns3: fix index to look up table in NEON Rx
- net/hns3: fix non-zero weight for disabled TC
- config/arm: add HiSilicon HIP10

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
2023-11-21 21:32:35 +08:00
openeuler-ci-bot
02e26a6cf6
!475 [sync] PR-474: 添加申威架构支持
From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2023-10-19 13:35:17 +00:00
herengui
288d7da0a0 添加申威架构支持
Signed-off-by: herengui <herengui@kylinsec.com.cn>
(cherry picked from commit 27cddfd3069a2fbbdc0d091de8cf21944b650afa)
2023-09-08 16:01:49 +08:00
openeuler-ci-bot
84ccdd6970
!470 [sync] PR-466: fix setting default MAC address duplicately
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-08-25 10:40:37 +00:00
Dengdui Huang
8aa4ae2b40 fix patch-287 duplicate address setting
This patch fix patch-287 duplicate address setting.

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit c46b089b736f2573391d7c02b1a8b518b217a12c)
2023-08-24 20:39:33 +08:00
openeuler-ci-bot
c11a48ecd8
!459 [sync] PR-440: net/hns3: add FDIR VLAN match mode runtime config and fix doc format
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-07-19 01:34:32 +00:00
chenjiji09
57abe28191 net/hns3: add FDIR VLAN match mode runtime config and fix doc format
Sync some patchs from upstreaming about add FDIR VLAN match
mode runtime config and fix doc format for hns3 pmd. Patchs
are as follow:
- doc: unify sections of networking drivers guide
- net/hns3: delete duplicate macro definition
- net/hns3: add FDIR VLAN match mode runtime config
- doc: fix kernel patch link in hns3 guide
- doc: fix syntax in hns3 guide
- doc: fix number of leading spaces in hns3 guide

(cherry picked from commit 4f1d694e3c761058a337ccd95f6c91f113710cab)
2023-07-18 10:53:21 +08:00
openeuler-ci-bot
951fc89168
!455 [sync] PR-454: kni:fix build with Linux 6.3/6.5
From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2023-07-18 02:27:26 +00:00
jiangheng12
6aa9087b57 kni:fix build with Linux 6.3/6.5
remove unused patch intruduced by"fix build with GCC 12"

(cherry picked from commit ed3c390d8025d3d75813e30be22b26bf0fb6861c)
2023-07-17 16:07:20 +08:00
openeuler-ci-bot
d01d8c6a0d
!448 [sync] PR-447: fix build with GCC 12
From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2023-07-14 03:03:53 +00:00
jiangheng12
7b9cc4c5a2 fix build with GCC 12
(cherry picked from commit d1c19aae07fc1940cea32a797e9bc9b23377f317)
2023-07-12 19:51:01 +08:00
openeuler-ci-bot
695deba9d9
!442 [sync] PR-439: 添加对 LoongArch 架构的支持
From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2023-07-10 02:03:24 +00:00
Min Zhou
3a63a918ed eal/loongarch: support LoongArch architecture
This patch adds the support for LoongArch architecture. Meanwhile,
backports bugfixes for ixgbe driver needed by LoongArch, and removes
linking to i40e driver for LoongArch because it was not supported in
this version.

Signed-off-by: Min Zhou <zhoumin@loongson.cn>
(cherry picked from commit 53eeb4c6d07277ff13cd526606d63b08e02b8d38)
2023-07-07 11:33:11 +08:00
openeuler-ci-bot
deb33fc7a5
!433 [sync] PR-431: remove gazelle-proc-info, it function the same as gazellectl -x
From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2023-07-05 03:38:23 +00:00
jiangheng
530cc952ae remove gazelle-proc-info, it function the same as gazellectl -x
(cherry picked from commit 21f5e2a2ff67b4a1a388f6c7bec5537c9b4ba8e2)
2023-07-04 20:02:04 +08:00
openeuler-ci-bot
4bbdca09e7
!422 [sync] PR-416: gro:fix gro with tcp push flag
From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2023-06-20 03:07:14 +00:00
jiangheng
a1845e7985 gro:fix gro with tcp push flag
(cherry picked from commit ecfff64811c179cb4205184dd1f7bf9d35baf699)
2023-06-20 08:59:16 +08:00
openeuler-ci-bot
c4258271f0
!419 [sync] PR-409: pdump: fix pcap_dump coredump caused by incorrect pkt_len
From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2023-06-20 00:57:00 +00:00
jiangheng12
ab0b07958b pdump: fix pcap_dump coredump caused by incorrect pkt_len
(cherry picked from commit 0c8e235e9551e8d2323b264f2f2d4628189f1173)
2023-06-19 22:12:21 +08:00
openeuler-ci-bot
55cfaca2a7
!414 [sync] PR-412: distinguish self and upstream patches number
From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2023-06-19 12:31:50 +00:00
jiangheng12
d4055b132d distinguish self and upstream patches number
(cherry picked from commit 0ab339a4091e230de22358f217d28e0e89a274ac)
2023-06-19 15:35:59 +08:00
openeuler-ci-bot
2dfba4c232
!403 [sync] PR-398: fix testpmd segment fault and hns3 IMP reset trigger
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-06-09 06:18:55 +00:00
chenjiji09
8f6a9dec60 fix testpmd segment fault and hns3 IMP reset trigger
Sync some patchs from upstreaming about a segment fault for
testpmd app and a IMP reset trigger for hns3 pmd. Patchs are
as follow:
- ethdev: add API to check if queue is valid
- app/testpmd: fix segment fault with invalid queue ID
- net/hns3: fix IMP reset trigger

(cherry picked from commit 06e0b2741afcd87d686d24608ecb3c974ea83f6d)
2023-06-09 09:30:50 +08:00
openeuler-ci-bot
538b98e1d7
!395 [sync] PR-392: net/hns3: fix Rx ring mbuf leakage
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-06-09 01:12:41 +00:00
chenjiji09
6112eef767 net/hns3: fix Rx ring mbuf leakage
Sync some patchs from upstreaming for hns3 pmd and modifies
are as follow:
1. fix RTC time after reset
2. fix Rx ring mbuf leakage at reset process
3. fix uninitialized variable
4. modify the code that violates the coding standards

(cherry picked from commit f98940e02a12dc752a60e786009ee44cb6b32132)
2023-06-06 21:42:16 +08:00
openeuler-ci-bot
b2475af37f
!389 [sync] PR-386: net/hns3: add LLRS FEC mode support for 200G ports
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-06-06 06:25:01 +00:00
chenjiji09
3c37f75e18 net/hns3: add LLRS FEC mode support for 200G ports
Sync some patchs from upstreaming about FEC feature. Patchs
are as follow:
- net/hns3: fix FEC mode for 200G ports
- net/hns3: fix FEC mode check error
- net/hns3: fix missing FEC capability
- ethdev: introduce low latency RS FEC
- app/testpmd: add setting and querying of LLRS FEC mode
- net/hns3: add LLRS FEC mode support for 200G ports
- net/hns3: get current FEC capability from firmware

(cherry picked from commit 9266c3e618cf38cde9cd630c88a1a571064f825f)
2023-06-05 10:39:55 +08:00
openeuler-ci-bot
28c3f01148
!383 [sync] PR-380: examples use static libraries to avoid unlinked dynamic libraries
From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2023-05-29 00:59:43 +00:00
jiangheng12
feff8f4efa examples use static libraries to avoid unlinked dynamic libraries
(cherry picked from commit 9b0839cefd74c0919dbf5c192966afe69e307627)
2023-05-27 19:03:33 +08:00
openeuler-ci-bot
3fc7a9e6b1
!375 [sync] PR-373: support flow control autoneg for fiber port
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-05-25 12:17:48 +00:00
chenjiji09
3d43155151 support flow control autoneg for fiber port
Sync some patchs from upstreaming for hns3 pmd and modifies
are as follow:
1. support flow control autoneg for fiber port
2. support simplify hardware checksum offloading
3. support dump media type
4. add Tx Rx descriptor logs
5. fix Rx multiple firmware reset interrupts
6. ethdev: fix one address occupies two entries in MAC addrs

(cherry picked from commit 2af7e093f8ec2ca13cf5b3f372c484b500e07aea)
2023-05-25 15:48:25 +08:00
openeuler-ci-bot
163bd598fb
!367 [sync] PR-365: fix empty devargs parsing
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-05-09 01:32:13 +00:00
chenjiji09
28f243f30b fix empty devargs parsing
Sync some patchs from upstreaming and modifies are as
follow:
1. The rte_kvargs_process() was used to parse KV pairs, it
also supports to parse 'only keys' type. And the callback
function parameter 'value' is NULL when parsed 'only keys'.
This patch fixes segment fault when parse input args with
'only keys'.
2. The MAP_FAILED should be used to determine whether the
mapping is successful but not NULL. This patch fix it.

(cherry picked from commit dfaed15bf9253e6b71dda7639806c0b265164a9e)
2023-04-29 07:48:24 +08:00
openeuler-ci-bot
0f5fe4ceb6
!362 [sync] PR-347: telemetry: support display as hexadecimal
From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
2023-04-28 09:40:10 +00:00
chenjiji09
b2f818b02e telemetry: support display as hexadecimal
Sync some patchs from upstreaming for telemetry and modifies
are as follow:
1. Support dispaly integer as hexadecimal.
2. Fix data truncation for some u64 accept as int.
3. Add JSON pretty print.

(cherry picked from commit 9e45664c52b35caa057da6a442599e03f4527817)
2023-04-27 11:52:07 +08:00