130 Commits

Author SHA1 Message Date
Rong Qian
7dc59912ef add xsc PMD
(cherry picked from commit 56bf053e0ae8c5b90defec1bf06a9ded3f8525d7)
2025-03-14 20:08:43 +08:00
Hailiang
1e2836cb53 add sw_64 support
(cherry picked from commit f6fc24cd8a835873bd4df42f34519a1c0f2f42c4)
2025-03-13 21:02:16 +08:00
jiangheng
47e785a6d0 config: arm adapt RTE_MAX_LCORE to 640
(cherry picked from commit ea2b36f4ec5b39467bfb0f3b61cebd27182c21e1)
2025-03-13 17:26:47 +08:00
jiangheng
a1f2bd7794 fix CVE-2024-11614
(cherry picked from commit fb083cb389efd504c49cbd9b1a4529775425db1c)
2024-12-25 14:41:30 +08:00
chendexi
6a15e1cf24 Change %post script to %posttrans
(cherry picked from commit 6dedbbd8153e9d3f594cb3d6d58d8833bb521d45)
2024-12-18 09:36:12 +08:00
Dengdui Huang
b27def5172 sync some patchs from upstreaming
Sync some patchs from upstreaming, includind some bugfixes, hns3 pmd
flow rule priority feature, hns3 pmd outer VLAN flow match feature,
and support dump reigser names and filter.
This patch set is modified as follows:
- net/hns3: fix cannot fully use hardware flow director table
- net/hns3: fix error code for repeatedly create counter
- net/hns3: support flow rule priority
- common/nfp: use new kvargs process API
- net/tap: use new kvargs process API
- net/sfc: use new kvargs process API
- kvargs: rework process API
- net/hns3: fix variable type
- net/hns3: fix pointer offset
- net/hns3: fix error log
- net/hns3: support filtering registers by module names
- net/hns3: support reporting names of registers
- net/hns3: refactor register dump
- net/hns3: remove separators between register module
- net/hns3: fix dump counter of registers
- net/hns3: remove some basic address dump
- telemetry: register command with private argument
- ethdev: fix race on ports in telemetry endpoints
- ethdev: add telemetry command for registers
- ethdev: add report of register names and filter
- net/hns3: support outer VLAN flow match
- net/hns3: register VLAN flow match mode parameter
- net/hns3: support general tunnel flow match
- net/hns3: restrict tunnel flow rule to one header
- net/hns3: remove ROH devices
- net/hns3: dump queue head and tail pointer info
- dmadev: fix potential null pointer access
- net/hns3: verify reset type from firmware
- ethdev: verify queue ID in Tx done cleanup

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit a1c828e1eb9cf716187d2a7656023e95bdce9b55)
2024-11-22 10:06:01 +08:00
Dengdui Huang
c0a187635f fix UIO resource mapping in secondary process
Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit 995630c7cd13b2dd46372cc3ebe094c662723660)
2024-10-12 09:17:56 +08:00
lifeifei
17347be3eb create weak dependency for ko files
(cherry picked from commit 44f23cf1af8ffbae9b171cde2273ff16edae0636)
2024-10-10 10:10:54 +08:00
jiangheng
8463baa6d3 disable _lto_cflags to fix build failed
(cherry picked from commit f4e9cdea415ec1cfbb614e692e54668801c9c0e6)
2024-10-09 20:26:38 +08:00
yinbin
8336404325 add static library & remove unused requires/buildrequires
(cherry picked from commit 41be5e3080ab09316cb1f13193c2391f83cd3fbc)
2024-08-20 19:23:23 +08:00
Dengdui Huang
e06a17955f sync some patch from upstreaming
Support more VLAN fields matching for hns3 and sync a bugfix,
modifications are as follow:
 - net/hns3: add Rx DMA address align check
 - net/hns3: support more VLAN fields matching

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit 9d553ba53d06d2f78efeac5a4b2b71f368a0696d)
2024-07-26 11:22:44 +08:00
yinbin6
6ef8413989 change dpdk-* in dpdk-tools from dynamic build to static build
(cherry picked from commit e9485986a97b66670666ff44fa3bfdf6f006919e)
2024-05-17 11:04:35 +08:00
Dengdui Huang
dd30deb610 sync some patch from upstreaming
Sync some patchs from upstreaming for hns3 pmd and modifications
are as follow:
 - dma/hisilicon: remove support for HIP09 platform
 - net/hns3: disable SCTP verification tag for RSS hash input
 - net/hns3: fix variable overflow
 - net/hns3: fix double free for Rx/Tx queue
 - net/hns3: fix read Rx timestamp handle
 - net/hns3: fix offload flag of IEEE 1588
In addition, the following patch synchronizes the latest version
 - ethdev: fix strict aliasing lead to link cannot be up

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit 60fad33c2a49d948d5816889cb40f0184f826149)
2024-05-11 15:10:07 +08:00
jiangheng
039ea609ce mem: require at least two segs per memseg lists in map-perfect mode
(cherry picked from commit 54ce0b901c694c7fc3753c776935ebcd4d5bdd3b)
2024-05-10 16:15:06 +08:00
laokz
9162fedb33
riscv64: Remove unsupported rte_net_i40e for gazelle-pdump
Driver i40e was not supported for RISC-V by this version. Remove it.

Signed-off-by: laokz <zhangkai@iscas.ac.cn>
2024-05-05 06:30:21 +00:00
Dengdui Huang
6bf0a08439 package some examples to dpdk-tools
Package the following example to dpdk-tools:
dpdk-l3fwd, dpdk-l3fwd-power, dpdk-ethtool, dpdk-dma, dpdk-ptpclient

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit 3b932c4fea9ae5dfba1d9105b4b602c50e12c671)
2024-04-29 11:17:01 +08:00
Huang Yang
0fbcf094eb Modify the writing of loongarch64 judgments
(cherry picked from commit 93c3edbe00cb6b26895b284499e6f737eb23f5a4)
2024-04-24 15:23:50 +08:00
yinbin6
ce890946a4 add gazelle-pdump
(cherry picked from commit 3d1793ba0dc7dec730a8f15cefc6c6948ed7afd0)
2024-04-22 21:43:05 +08:00
yinbin6
e05fa649fc remove dpdk-pmds directory to prevent unnecessary pmd so files load
(cherry picked from commit b080d97559839a18021b1f8db0b27f489a9df5a6)
2024-04-22 15:14:57 +08:00
Dengdui Huang
7e5197e80d sync some patch from upstreaming
Sync some patches for hns3 about PFC and RSS
 - net/hns3: support new device
 - app/testpmd: fix RSS algorithm choice
 - net/hns3: enable PFC for all user priorities

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit d4966134474f40a98ddbdab4c281ef20bcc1e691)
2024-04-12 22:44:01 +08:00
Dengdui Huang
b83616ad92 ethdev: fix strict aliasing lead to link cannot be up
Fix a problem introduced by a compiler upgrade (from gcc10 to gcc12.3),
which will lead the hns3 NIC can't link up. The root cause is strict
aliasing violation in rte_eth_linkstatus_set() with hns3 driver, see
[1] for more details.

This commit use union to avoid such aliasing violation.

[1] Strict aliasing problem with rte_eth_linkstatus_set()
    https://marc.info/?l=dpdk-dev&m=171274148514777&w=3

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit 776b3090fb193bc8abe55d7a0ea19e44601b7607)
2024-04-12 17:09:20 +08:00
yinbin6
b2a4fae375 move patch0031 to self developed patch
(cherry picked from commit 18b0886aace1ce2a6781c3f710831836ceddd313)
2024-04-12 17:06:27 +08:00
zhangmengxuan
ff0d77d821 add rte_eth_bond_link_monitoring_get in map
(cherry picked from commit 78109146395283d72976c9c0c5c98371ea6676d7)
2024-04-12 16:26:10 +08:00
Dengdui Huang
1f34bd76e4 sync some patchs from upstreaming
Sync some patches for hns3 about refactor mailbox, add new API for RSS,
support power monitor and some bugfix, modifies are as follow:
 - app/testpmd: fix crash in multi -process forwarding
 - net/hns3: support power monitor
 - net/hns3: remove QinQ insert support for VF
 - 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
 - app/testpmd: set RSS hash algorithm
 - ethdev: get RSS hash algorithm by name
 - ring: add telemetry command for ring info
 - ring: add telemetry command to list rings
 - eal: introduce more macros for bit definition
 - dmadev: add tracepoints in data path API
 - dmadev: add telemetry capability for m2d auto free
 - maintainers: update for DMA device performance tool

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
2024-03-05 16:15:56 +08:00
shafeipaozi
61d05628cf support riscv64 2024-01-25 21:58:25 +08:00
yinbin6
98b0b0e24a add supprot for loongarch64 2024-01-23 10:22:28 +08:00
peng.zou
f0f6b53eae Add support for ppc64le 2024-01-16 17:37:48 +08:00
jinag12
ea65d9df08 add self-developed patches 2024-01-13 14:55:02 +08:00
jiangheng
5826f05bad upgrade to dpdk-23.11 2024-01-11 15:28:18 +08:00
Dengdui Huang
0183d0ca4a 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>
2023-12-29 16:55:30 +08:00
Dengdui Huang
de38802427 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>
2023-12-15 11:45:40 +08:00
Dengdui Huang
7868d4e3ae 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>
2023-12-08 18:05:52 +08:00
Dengdui Huang
2199d0077d 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>
2023-12-08 17:18:31 +08:00
herengui
204f624819 添加申威架构支持
Signed-off-by: herengui <herengui@kylinsec.com.cn>
(cherry picked from commit 27cddfd3069a2fbbdc0d091de8cf21944b650afa)
2023-12-07 20:46:05 +08:00
Dengdui Huang
7730be2444 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 11:45:25 +08:00
Dengdui Huang
b898ee646a 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-10-30 09:20:31 +08:00
Dengdui Huang
c46b089b73 fix patch-287 duplicate address setting
This patch fix patch-287 duplicate address setting.

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
2023-08-23 17:37:42 +08:00
chenjiji09
4f1d694e3c 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
2023-07-17 16:42:18 +08:00
jiangheng12
ed3c390d80 kni:fix build with Linux 6.3/6.5
remove unused patch intruduced by"fix build with GCC 12"
2023-07-17 10:49:12 +08:00
jiangheng12
d1c19aae07 fix build with GCC 12 2023-07-12 17:05:57 +08:00
Min Zhou
53eeb4c6d0 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>
2023-07-06 17:16:31 +08:00
jiangheng
21f5e2a2ff remove gazelle-proc-info, it function the same as gazellectl -x 2023-06-28 05:40:48 +08:00
jiangheng
ecfff64811 gro:fix gro with tcp push flag 2023-06-19 01:02:11 +08:00
jiangheng12
0c8e235e95 pdump: fix pcap_dump coredump caused by incorrect pkt_len 2023-06-19 10:25:20 +08:00
jiangheng12
6361acf3c4 distinguish self and upstream patches number 2023-06-09 14:25:43 +08:00
chenjiji09
e94c1efdc4 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:38 +08:00
chenjiji09
27a6500a3d 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:09 +08:00
chenjiji09
2ea9a774ef 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:46 +08:00
jiangheng12
9b0839cefd examples use static libraries to avoid unlinked dynamic libraries 2023-05-27 17:59:16 +08:00
chenjiji09
41555f32b9 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:49:50 +08:00