91 Commits

Author SHA1 Message Date
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
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
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
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
herengui
288d7da0a0 添加申威架构支持
Signed-off-by: herengui <herengui@kylinsec.com.cn>
(cherry picked from commit 27cddfd3069a2fbbdc0d091de8cf21944b650afa)
2023-09-08 16:01:49 +08: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
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
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
jiangheng12
7b9cc4c5a2 fix build with GCC 12
(cherry picked from commit d1c19aae07fc1940cea32a797e9bc9b23377f317)
2023-07-12 19:51:01 +08: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
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
jiangheng
a1845e7985 gro:fix gro with tcp push flag
(cherry picked from commit ecfff64811c179cb4205184dd1f7bf9d35baf699)
2023-06-20 08:59:16 +08: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
jiangheng12
d4055b132d distinguish self and upstream patches number
(cherry picked from commit 0ab339a4091e230de22358f217d28e0e89a274ac)
2023-06-19 15:35:59 +08: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
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
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
jiangheng12
feff8f4efa examples use static libraries to avoid unlinked dynamic libraries
(cherry picked from commit 9b0839cefd74c0919dbf5c192966afe69e307627)
2023-05-27 19:03:33 +08: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
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
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
yuelg
02b8bfb52d Create a softlink to dpdk default driver path
Signed-off-by: yuelg <yuelg@chinaunicom.cn>
(cherry picked from commit 6512723969d6d9d74d77916d7306f2347c224e9c)
2023-04-26 18:03:34 +08:00
chenjiji09
ca33ddf86e 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.

(cherry picked from commit cf2e60ea2545fa9c52a6778ad230e3d8dca703e3)
2023-04-23 17:24:14 +08:00
jiangheng12
bb46f5886e build as shared libraries to reduce the size of debug packet
(cherry picked from commit b8e46952e0405c1c02124d027cf55b67d3396794)
2023-04-23 09:39:44 +08:00
jiangheng12
bc3e364327 hinic: free tx mbuf use rte_pktmbuf_free_seg
(cherry picked from commit 5ab3035fb19abaace494a7e0948c05ee043545e2)
2023-04-21 10:47:57 +08:00
chenjiji09
bc6610b548 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

(cherry picked from commit cf6fe7cb51e23e99db070af56b4a75bc041b9751)
2023-03-30 09:08:38 +08:00
chenjiji09
dc9da0240d 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

(cherry picked from commit 651fc55df087a9855b899eea5e5fda45a1316893)
2023-03-27 11:47:02 +08:00
chenjiji09
9f0195e26d 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

(cherry picked from commit f8c9d4f3cb51c95bef01fa1737110eabd99c7c60)
2023-03-06 10:43:53 +08:00
chenjiji09
c9550b9870 refactor Rc/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-03-02 18:43:53 +08:00
jiangheng
5fc8a2786c fix build with kernel 5.18+ 2023-02-28 20:37:25 +08:00
wu-changsheng
0d4454845a remove unused patch 2023-02-28 19:37:00 +08:00
jiangheng
d7e2cc9f49 fix build failed due to kernel to upgrade 6.1 2023-02-27 16:21:28 +08:00
chenjiji09
3380c3cba1 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:18:00 +08:00
chenjiji09
3df1a1e306 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-01-31 17:36:08 +08:00
chenjiji09
9468ecd5b8 dma/hisilicon: support vchan status query
This patch adds support for vchan-status ops.

(cherry picked from commit 24c8f505088c104657eb923a47c60eff3b846402)
2022-12-14 17:43:59 +08:00
chenjiji09
978e3abd3b proc-info adds dumping the following features:
- dpdk version
 - firmware version
 - RSS RETA
 - module eeprom information
 - Rx/Tx burst mode
 - Rx/Tx descriptor

(cherry picked from commit b5fa0e5ece15d8a550ad9d4da199180477d28e6b)
2022-11-17 14:22:27 +08:00
chenjiji09
9a66244233 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

(cherry picked from commit e33f71a88757d130f19712e0efd64ab7623510fb)
2022-11-16 14:56:36 +08:00
jiangheng
cd1dcb8515 add gazelle-proc-info support in dpdk
(cherry picked from commit 278a92c3c9bf8e1ae4a0138edd076561fbf48fe4)
2022-11-15 20:42:55 +08:00
kircher
c09f4586c4 dpdk: build gazelle-pdump for pmd_pcap
(cherry picked from commit c10915e05b07c31d80889db2fad63087a9361fb8)
2022-11-14 20:22:47 +08:00
jiangheng
944fcd088f set platform to generic for compatibility
(cherry picked from commit fe8837319c75f490c63c62a2d7310b0f16734707)
2022-11-07 19:16:42 +08:00
chenjiji09
6773fbb43a 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

(cherry picked from commit 4b9b49876b4ace72c09cc28416aa5e5d851c3ad5)
2022-11-01 11:36:12 +08:00
jiangheng
11754299eb backport some patches for gro bugfix
(cherry picked from commit 690d3b7a0359fdfa2906dcec0019ccd0cfc7f922)
2022-10-31 17:13:55 +08:00
Huisong Li
7d8194517a 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>
(cherry picked from commit 4f06d27eff9aa99c2e2073ac74328893990ed8ed)
2022-10-24 16:11:45 +08:00
wuchangsheng
f21a02357e reinit support return ok
(cherry picked from commit 5400179cfedfb34ee5e5f295502d38f68211e5b9)
2022-10-06 17:42:55 +08:00
jiangheng
9b9b3ff181 remove secure compilation options rpath
(cherry picked from commit 1f60f738cd972c85b9766750c240eb3d85a83c71)
2022-09-14 10:44:27 +08:00
jiangheng
1a5685b0f1 fix CVE-2022-28199
(cherry picked from commit 43d0ce1edf44dbfdf760cdcdc2db428c8a118927)
2022-09-09 19:31:17 +08:00
jiangheng
d07b9ae0dc fix CVE-2022-2132
(cherry picked from commit 5645dcaa570c7d64cf617a15d7a6795270ce999d)
2022-09-08 22:33:45 +08:00
Honggang LI
474481cdd2 Remove duplicated BuildRequires python-pyelftools
python-pyelftools also provided by package python3-pyelftools.

Signed-off-by: Honggang LI <honggangli@163.com>
(cherry picked from commit 889f601f5e726a7c98fda91705f5514e2406b0cb)
2022-07-11 19:05:35 +08:00
Honggang LI
35d480abbf 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>
(cherry picked from commit 62e43640f51cbe9d90a8311bdcfe5ba9c3afcfba)
2022-07-11 17:16:06 +08:00