93 Commits

Author SHA1 Message Date
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
chenjiji09
dfaed15bf9 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.
2023-04-27 15:25:46 +08:00
chenjiji09
9e45664c52 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.
2023-04-25 16:00:44 +08:00
yuelg
6512723969 Create a softlink to dpdk default driver path
Signed-off-by: yuelg <yuelg@chinaunicom.cn>
2023-04-11 17:55:07 +08:00
chenjiji09
cf2e60ea25 add private dump for bonding, virtio and vhost
Sync some patchs from upstreaming branch and modifies
are as follow:
1. Add private dump for bonding, virtio and vhost.
2. Support LACP info dump for bonding.
3. Display RSS hash key of flow rule in testpmd.
2023-04-04 10:19:35 +08:00
jiangheng12
b8e46952e0 build as shared libraries to reduce the size of debug packet 2023-04-01 22:34:34 +08:00
jiangheng12
5ab3035fb1 hinic: free tx mbuf use rte_pktmbuf_free_seg 2023-04-01 21:58:00 +08:00
chenjiji09
cf6fe7cb51 Fix a m_buf pool was not freed bug for test and support CPPC cpufreq for l3fwd-power.
Patchs are as follow:
 - test/mbuf: fix mbuf reset test
 - examples/l3fwd-power: support CPPC cpufreq
2023-03-23 16:49:24 +08:00
chenjiji09
651fc55df0 Fix some RSS bugs and reimplement hash flow function for hns3.
1. fix some RSS bugs and optimize RSS codes for hns3
2. reimplement hash flow function for hns3 to satisfy the mainstream usage of rte flow hash in the community
2023-03-23 10:30:51 +08:00
chenjiji09
f8c9d4f3cb Support flow rule keeping capability for hns3 PMD and testpmd.
Patchs are as follow:
 - net/hns3: declare flow rule keeping capability
 - app/testpmd: add --disable-flow-flush option
2023-03-03 17:34:31 +08:00
chenjiji09
571fd96353 refactor Rx/Tx function of hns3 PMD
And patchs are as follows:
 - net/hns3: fix burst mode query with dummy function
 - net/hns3: add debug info for Rx/Tx dummy function
 - net/hns3: remove debug condition for Tx prepare
 - net/hns3: separate Tx prepare from getting Tx function
 - net/hns3: make getting Tx function static
 - net/hns3: extract common functions to set Rx/Tx
2023-02-23 19:10:04 +08:00
chenjiji09
d1d2e1e3f1 Sync some RSS bugfix for hns3 PMD. And patchs are as follows:
- net/hns3: fix log about indirection table size
 - net/hns3: extract common function to query device
 - net/hns3: refactor set RSS hash algorithm and key interface
 - net/hns3: fix RSS key size compatibility
 - net/hns3: fix clearing RSS configuration
 - net/hns3: use RSS filter list to check duplicated rule
 - net/hns3: remove useless code when destroy valid RSS rule
 - net/hns3: fix warning on flush or destroy rule
 - net/hns3: fix config struct used for conversion
 - net/hns3: fix duplicate RSS rule check
2023-02-16 11:03:53 +08:00
jiangheng
87a23c168f fix build with kernel 5.18+ 2023-02-06 10:06:30 +08:00
chenjiji09
546a1a2337 net/hns3: fix inaccurate RTC time to read
The sequence of reading current RTC time register doesn't meet
the hardware requirements, which causes this time obtained is
the one before modifying RTC time.
2023-02-03 16:37:01 +08:00
jiangheng
23e0b6926a remove unused patch 2023-01-31 19:43:46 +08:00
jiangheng
691c139fe8 fix build failed due to kernel to upgrade 6.1 2023-01-30 14:16:25 +08:00
chenjiji09
24c8f50508 dma/hisilicon: support vchan status query
This patch adds support for vchan-status ops.
2022-12-14 16:58:38 +08:00
chenjiji09
b5fa0e5ece proc-info adds dumping the following features:
- dpdk version
 - firmware version
 - RSS RETA
 - module eeprom information
 - Rx/Tx burst mode
 - Rx/Tx descriptor
2022-11-17 12:05:11 +08:00
chenjiji09
e33f71a887 Sync some patches for bonding PMD and testpmd. And patchs
are as follows:
 - app/testpmd: revert MAC update in checksum forwarding
 - net/bonding: fix bond4 drop valid MAC packets
 - net/bonding: fix slave device Rx/Tx offload configuration
 - app/testpmd: fix MAC header in csum forward engine
 - app/testpmd: update bond port configurations when add slave
 - app/testpmd: fix GENEVE parsing in checksum mode
 - net: add UDP/TCP checksum in mbuf segments
 - app/testpmd: add SW L4 checksum in multi-segments
 - app/testpmd: fix L4 checksum in multi-segments
 - net/bonding: fix mbuf fast free handling
2022-11-16 11:09:39 +08:00
jiangheng
278a92c3c9 add gazelle-proc-info support in dpdk 2022-11-15 17:44:29 +08:00
kircher
404073f16f dpdk: build gazelle-pdump for pmd_pcap
(cherry picked from commit c10915e05b07c31d80889db2fad63087a9361fb8)
2022-11-14 20:22:41 +08:00
jiangheng
fe8837319c set platform to generic for compatibility 2022-11-07 17:31:58 +08:00
chenjiji09
4b9b49876b Sync some patches for bonding PMD and testpmd. And patchs
are as follows:
 - net/bonding: fix Tx hash for TCP
 - net/bonding: add link speeds configuration
 - net/bonding: call Tx prepare before Tx burst
 - net/bonding: fix MTU set for slaves
 - app/testpmd: remove jumbo offload related code
2022-10-31 14:49:04 +08:00
jiangheng
5a26657489 fix compile err 2022-10-29 15:33:15 +08:00
jiangheng
5d43ce4f18 backport some patches for gro bugfix 2022-10-29 10:03:48 +08:00
Huisong Li
4f06d27eff sig-dpdk: sync some patches for PMD/LIB/APP
Sync some patches for hns3 PMD, telemetry and testpmd. And main
modifications are as follows:
 - backport some bugfixes for hns3
 - revert Tx performance optimization for hns3
 - add Rx/Tx descriptor dump feature for hns3
 - refactor some RSS commands for testpmd
 - add ethdev telemetry private dump
 - add dmadev telemetry
 - sync telemetry lib

Signed-off-by: Huisong Li <lihuisong@huawei.com>
2022-10-24 14:35:15 +08:00
wuchangsheng
5400179cfe reinit support return ok 2022-10-06 17:03:22 +08:00
jiangheng
a60160c0fc remove secure compilation options rpath
(cherry picked from commit 1f60f738cd972c85b9766750c240eb3d85a83c71)
2022-09-14 10:44:22 +08:00
jiangheng
43d0ce1edf fix CVE-2022-28199 2022-09-09 17:45:17 +08:00
jiangheng
5645dcaa57 fix CVE-2022-2132 2022-09-08 20:44:52 +08:00
Honggang LI
889f601f5e Remove duplicated BuildRequires python-pyelftools
python-pyelftools also provided by package python3-pyelftools.

Signed-off-by: Honggang LI <honggangli@163.com>
2022-07-07 12:06:30 +08:00
Honggang LI
62e43640f5 Build mlx5 and mlx4 PMD
We need mlx5 PMD to run gazelle over Mellanox connectx-6 device.

Signed-off-by: Honggang LI <honggangli@163.com>
2022-07-05 15:09:55 +08:00
Honggang LI
b03a26615c package up libdpdk-libs.pc and libdpdk.pc
Those files are required to build pktgen.

Signed-off-by: Honggang LI <honggangli@163.com>
2022-06-29 11:23:14 +08:00
openeuler-ci-bot
9236cb8690
!193 sync patches from 22.07
From: @liudongdong3 
Reviewed-by: @li-yangyang20 
Signed-off-by: @li-yangyang20
2022-06-23 11:22:25 +00:00
Dongdong Liu
7beb6a72ff sync patches from 22.07
sync patches from 22.07 for hns3, dma and testpmd etc.

Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
2022-06-18 09:37:55 +08:00
loong-C
517adc1e42
【轻量级PR】 fix bogus date in %changelog 2022-06-13 06:47:06 +00:00
shirely
c9999095cf fix CVE-2021-3839 CVE-2022-0669
(cherry picked from commit 0613aa55c208d165b89303d58b1eab1f67ea2f62)
2022-06-10 20:03:25 +08:00
speech_white
39c2c51541 sync patches for 22.03
Signed-off-by: speech_white <humin29@huawei.com>
2022-05-17 19:55:36 +08:00