[PATCH] maintainers: update for intel PMD

2024-01-18 Thread Qi Zhang
Remove my name for next-net-intel, fm10k, ice and af_xdp. Signed-off-by: Qi Zhang --- MAINTAINERS | 4 1 file changed, 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0d1c8126e3..7d74486d1a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -37,7 +37,6 @@ M: Ajit Khaparde T: git

[PATCH v4 3/3] doc: update ice document for qos

2024-01-08 Thread Qi Zhang
Add description for ice PMD's rte_tm capabilities. Signed-off-by: Qi Zhang Acked-by: Wenjun Wu --- doc/guides/nics/ice.rst | 19 +++ 1 file changed, 19 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index bafb3ba022..163d6b8bb6 100644 ---

[PATCH v4 2/3] net/ice: refactor tm config data structure

2024-01-08 Thread Qi Zhang
Simplified struct ice_tm_conf by removing per level node list. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 5 +- drivers/net/ice/ice_tm.c | 248 --- 2 files changed, 113 insertions(+), 140 deletions(-) diff --git a/drivers/net/ice

[PATCH v4 1/3] net/ice: hide port and TC layer in Tx sched tree

2024-01-08 Thread Qi Zhang
Port -> Queue Group -> Queue. Signed-off-by: Qi Zhang Acked-by: Wenjun Wu --- drivers/net/ice/ice_ethdev.h | 7 drivers/net/ice/ice_tm.c | 79 2 files changed, 7 insertions(+), 79 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b/driv

[PATCH v4 0/3] simplified to 3 layer Tx scheduler

2024-01-08 Thread Qi Zhang
Remove dummy layers, code refactor, complete document v4: - rebase. v3: - fix tm_node memory free. - fix corrupt when slibling node deletion is not in a reversed order. v2: - fix typos. Qi Zhang (3): net/ice: hide port and TC layer in Tx sched tree net/ice: refactor tm config data

[PATCH] net/ice: fix memory leak

2024-01-07 Thread Qi Zhang
Free memory for AQ buffer at icd_move_recfg_lan_txq Free memory for profile list at ice_tm_conf_uninit Fixes: 8c481c3bb65b ("net/ice: support queue and queue group bandwidth limit") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ice/ice_tm.c | 12 1 file c

[PATCH v3 3/3] doc: update ice document for qos

2024-01-05 Thread Qi Zhang
Add description for ice PMD's rte_tm capabilities. Signed-off-by: Qi Zhang Acked-by: Wenjun Wu --- doc/guides/nics/ice.rst | 19 +++ 1 file changed, 19 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index bafb3ba022..3d381a266b 100644 ---

[PATCH v3 2/3] net/ice: refactor tm config data structure

2024-01-05 Thread Qi Zhang
Simplified struct ice_tm_conf by removing per level node list. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 5 +- drivers/net/ice/ice_tm.c | 244 --- 2 files changed, 111 insertions(+), 138 deletions(-) diff --git a/drivers/net/ice

[PATCH v3 1/3] net/ice: hide port and TC layer in Tx sched tree

2024-01-05 Thread Qi Zhang
Port -> Queue Group -> Queue. Signed-off-by: Qi Zhang Acked-by: Wenjun Wu --- drivers/net/ice/ice_ethdev.h | 7 drivers/net/ice/ice_tm.c | 79 2 files changed, 7 insertions(+), 79 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b/driv

[PATCH v3 0/3] net/ice: simplified to 3 layer Tx scheduler

2024-01-05 Thread Qi Zhang
Remove dummy layers, code refactor, complete document v3: - fix tm_node memory free. - fix corrupt when slibling node deletion is not in a reversed order. v2: - fix typos. Qi Zhang (3): net/ice: hide port and TC layer in Tx sched tree net/ice: refactor tm config data structure doc: update

[PATCH v2 3/3] doc: update ice document for qos

2024-01-04 Thread Qi Zhang
Add description for ice PMD's rte_tm capabilities. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 19 +++ 1 file changed, 19 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index bafb3ba022..3d381a266b 100644 --- a/doc/guides/nics/ic

[PATCH v2 2/3] net/ice: refactor tm config data structure

2024-01-04 Thread Qi Zhang
Simplified struct ice_tm_conf by removing per level node list. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 5 +- drivers/net/ice/ice_tm.c | 210 +++ 2 files changed, 88 insertions(+), 127 deletions(-) diff --git a/drivers/net/ice

[PATCH v2 1/3] net/ice: hide port and TC layer in Tx sched tree

2024-01-04 Thread Qi Zhang
Port -> Queue Group -> Queue. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 7 drivers/net/ice/ice_tm.c | 79 2 files changed, 7 insertions(+), 79 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice/ice_eth

[PATCH v2 0/3] net/ice: simplified to 3 layer Tx scheduler

2024-01-04 Thread Qi Zhang
Remove dummy layers, code refactor, complete document Qi Zhang (3): net/ice: hide port and TC layer in Tx sched tree net/ice: refactor tm config data structure doc: update ice document for qos v2: - fix typos. doc/guides/nics/ice.rst | 19 +++ drivers/net/ice/ice_ethdev.h | 12

[PATCH 3/3] doc: update ice document for qos

2024-01-04 Thread Qi Zhang
Add description for ice PMD's rte_tm capabilities. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 19 +++ 1 file changed, 19 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index bafb3ba022..1f737a009c 100644 --- a/doc/guides/nics/ic

[PATCH 2/3] net/ice: refactor tm config data struture

2024-01-04 Thread Qi Zhang
Simplified struct ice_tm_conf by removing per level node list. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 5 +- drivers/net/ice/ice_tm.c | 210 +++ 2 files changed, 88 insertions(+), 127 deletions(-) diff --git a/drivers/net/ice

[PATCH 1/3] net/ice: hide port and TC layer in Tx sched tree

2024-01-04 Thread Qi Zhang
Port -> Queue Group -> Queue. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 7 drivers/net/ice/ice_tm.c | 79 2 files changed, 7 insertions(+), 79 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice/ice_eth

[PATCH 0/3] net/ice: simplified to 3 layer Tx scheduler.

2024-01-04 Thread Qi Zhang
Remove dummy layers, code refactor, complete document. Qi Zhang (3): net/ice: hide port and TC layer in Tx sched tree net/ice: refactor tm config data struture doc: update ice document for qos doc/guides/nics/ice.rst | 19 +++ drivers/net/ice/ice_ethdev.h | 12 +- drivers/net/ice

[PATCH] net/ice: refine queue start stop

2024-01-04 Thread Qi Zhang
Not necessary to return fail when starting or stopping a queue if the queue was already at required state. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_rxtx.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index

[PATCH 6/6] net/ice: support Tx sched commit before device start

2024-01-02 Thread Qi Zhang
started yet and all the commit actions will be deferred to dev_start. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.c | 9 + drivers/net/ice/ice_ethdev.h | 4 drivers/net/ice/ice_tm.c | 25 ++--- 3 files changed, 35 insertions(+), 3 deletions(-) diff

[PATCH 5/6] net/ice: reset Tx sched node during commit

2024-01-02 Thread Qi Zhang
node back to default topo. For noleaf node, simply reset to default parameters. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 1 + drivers/net/ice/ice_tm.c | 130 --- 2 files changed, 107 insertions(+), 24 deletions(-) diff --git a/drivers/net/ice

[PATCH 3/6] net/ice: support queue group weight configure

2024-01-02 Thread Qi Zhang
Enable the configuration of weight for Tx scheduler node at the queue group level. This patch also consolidate weight configuration across various levels by exposing the base code API 'ice_sched_cfg_node_bw_alloc'. Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_sched.c | 2 +

[PATCH 4/6] net/ice: refactor hardware Tx sched node config

2024-01-02 Thread Qi Zhang
Consolidate Tx scheduler node configuration into a function: 'ice_cfg_hw_node", where rate limit, weight, priority will be configured for queue group level and queue level. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_tm.c | 97 1 file c

[PATCH 2/6] net/ice: support VSI level bandwidth config

2024-01-02 Thread Qi Zhang
Enable the configuration of peak and committed rates for a Tx scheduler node at the VSI level. This patch also consolidate rate configuration across various levels into a single function 'ice_set_node_rate.' Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_sched.c | 2 +- drive

[PATCH 1/6] net/ice: remove redundent code

2024-01-02 Thread Qi Zhang
The committed flag for tx schedular configuration is not used in PF only mode, remove the redundent code. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_tm.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/net/ice/ice_tm.c b/drivers/net/ice/ice_tm.c index f5ea47ae83

[PATCH 0/6] net/ice improve qos

2024-01-02 Thread Qi Zhang
The patchset enhanced ice rte_tm implemenations Qi Zhang (6): net/ice: remove redundent code net/ice: support VSI level bandwidth config net/ice: support queue group weight configure net/ice: refactor hardware Tx sched node config net/ice: reset Tx sched node during commit net/ice

[PATCH v7 2/2] doc: add document for ice diagnostic utilities

2024-01-01 Thread Qi Zhang
Document ice specific testpmd CLI for diagnose purpose. Signed-off-by: Qi Zhang --- v6: - fix title doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d

[PATCH v7 1/2] net/ice: add Tx scheduling tree dump support

2024-01-01 Thread Qi Zhang
; mode, each node's configuration parameters are also displayed. Renamed `ice_ddp_package.c` to `ice_diagnose.c`, which now contains all CLI support for diagnostic purposes. Signed-off-by: Qi Zhang --- v7: - fix ci warning. v5: - ignore the error when query node failed at queue level,

[PATCH v6 2/2] doc: add document for ice diagnostic utilities

2024-01-01 Thread Qi Zhang
Document CLI for diagnose purpose. Signed-off-by: Qi Zhang --- v6: - fix title doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d 100644 --- a/doc

[PATCH v6 1/2] net/ice: add Tx scheduling tree dump support

2024-01-01 Thread Qi Zhang
; mode, each node's configuration parameters are also displayed. Renamed `ice_ddp_package.c` to `ice_diagnose.c`, which now contains all CLI support for diagnostic purposes. Signed-off-by: Qi Zhang --- v5: - ignore the error when query node failed at queue level, as queue may be stopp

[PATCH v5 2/2] doc: add document for diagnostic utilities

2024-01-01 Thread Qi Zhang
Document CLI for diagnose purpose. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d 100644 --- a/doc/guides/nics/ice.rst

[PATCH v5 1/2] net/ice: add Tx scheduling tree dump support

2024-01-01 Thread Qi Zhang
; mode, each node's configuration parameters are also displayed. Renamed `ice_ddp_package.c` to `ice_diagnose.c`, which now contains all CLI support for diagnostic purposes. Signed-off-by: Qi Zhang --- v5: - ignore the error when query node failed at queue level, as queue may be stopp

[PATCH v4 2/2] doc: add document for diagnostic utilities

2024-01-01 Thread Qi Zhang
Document CLI for diagnose purpose. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d 100644 --- a/doc/guides/nics/ice.rst

[PATCH v4 1/2] net/ice: add Tx scheduling tree dump support

2024-01-01 Thread Qi Zhang
; mode, each node's configuration parameters are also displayed. Renamed `ice_ddp_package.c` to `ice_diagnose.c`, which now contains all CLI support for diagnostic purposes. Signed-off-by: Qi Zhang --- v4: - show node type in brief mode v3: - fix incorrect parameter when query rl profi

[PATCH 2/2] doc: add document for diagnostic utilities

2024-01-01 Thread Qi Zhang
Document CLI for diagnose purpose. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d 100644 --- a/doc/guides/nics/ice.rst

[PATCH 1/2] net/ice: add Tx scheduling tree dump support

2024-01-01 Thread Qi Zhang
; mode, each node's configuration parameters are also displayed. Renamed `ice_ddp_package.c` to `ice_diagnose.c`, which now contains all CLI support for diagnostic purposes. Signed-off-by: Qi Zhang --- v4: - show node type in brief mode. v3: - fix incorrect parameter when query rl prof

[PATCH v4 2/2] net/ice: support Tx sched commit before dev_start

2024-01-01 Thread Qi Zhang
started yet and all the commit actions will be deferred to dev_start. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.c | 9 + drivers/net/ice/ice_ethdev.h | 3 +++ drivers/net/ice/ice_tm.c | 23 --- 3 files changed, 32 insertions(+), 3 deletions(-) diff

[PATCH v4 1/2] net/ice: reset Tx sched node during commit

2024-01-01 Thread Qi Zhang
node back to default topo. For noleaf node, simply reset to default parameters. Signed-off-by: Qi Zhang --- v4: - show node type in brief mode. v3: - fix incorrect parameter when query rl profile v2: - fix CI build issue drivers/net/ice/ice_ethdev.h | 1 + drivers/net/ice/ice_tm.c | 134

[PATCH v3 2/2] doc: add document for diagnostic utilities

2023-12-27 Thread Qi Zhang
Document CLI for diagnose purpose. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d 100644 --- a/doc/guides/nics/ice.rst

[PATCH v3 1/2] net/ice: add Tx scheduling tree dump support

2023-12-27 Thread Qi Zhang
; mode, each node's configuration parameters are also displayed. Renamed `ice_ddp_package.c` to `ice_diagnose.c`, which now contains all CLI support for diagnostic purposes. Signed-off-by: Qi Zhang --- v3: - fix incorrect parameter when query rl profile v2: - fix CI build issue .../ic

[PATCH v2 2/2] doc: add document for diagnostic utilities

2023-12-26 Thread Qi Zhang
Document CLI for diagnose purpose. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d 100644 --- a/doc/guides/nics/ice.rst

[PATCH v2 1/2] net/ice: add Tx scheduling tree dump support

2023-12-26 Thread Qi Zhang
; mode, each node's configuration parameters are also displayed. Renamed `ice_ddp_package.c` to `ice_diagnose.c`, which now contains all CLI support for diagnostic purposes. Signed-off-by: Qi Zhang --- v2: - fix patchwork build issue. .../ice/{ice_ddp_package.c => ice_diagnose.c}

[PATCH 2/2] doc: add document for diagnostic utilities

2023-12-26 Thread Qi Zhang
Document CLI for diagnose purpose. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d 100644 --- a/doc/guides/nics/ice.rst

[PATCH 1/2] net/ice: add Tx scheduling tree dump support

2023-12-26 Thread Qi Zhang
; mode, each node's configuration parameters are also displayed. Renamed `ice_ddp_package.c` to `ice_diagnose.c`, which now contains all CLI support for diagnostic purposes. Signed-off-by: Qi Zhang --- .../ice/{ice_ddp_package.c => ice_diagnose.c} | 361 ++ drivers/ne

[PATCH v2] net/ice: fix link update

2023-12-13 Thread Qi Zhang
spinlock. Fixes: cf911d90e366 ("net/ice: support link update") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- v2: - fix coding style warning. drivers/net/ice/ice_ethdev.c | 26 -- drivers/net/ice/ice_ethdev.h | 4 2 files changed, 24 insertions(+), 6

[PATCH] net/ice: fix link update

2023-11-28 Thread Qi Zhang
spinlock. Fixes: cf911d90e366 ("net/ice: support link update") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.c | 26 -- drivers/net/ice/ice_ethdev.h | 3 +++ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH] doc: add prog action into default ini

2023-11-05 Thread Qi Zhang
Added prog action into nic feature default.ini. Fixes: 8f1953f1914d ("ethdev: add flow API for P4-programmable devices") Signed-off-by: Qi Zhang --- doc/guides/nics/features/default.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/default.ini b/doc/g

[PATCH] doc: add prog action into default ini

2023-11-05 Thread Qi Zhang
Added prog action into nic feature default.ini. Fixes: 8f1953f1914d ("ethdev: add flow API for P4-programmable devices") Signed-off-by: Qi Zhang --- doc/guides/nics/features/default.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/default.ini b/doc/g

[PATCH] doc: add prog action into default ini

2023-11-05 Thread Qi Zhang
Added prog action into nic feature default.ini. Fixes: 8f1953f1914d ("ethdev: add flow API for P4-programmable devices") Signed-off-by: Qi Zhang --- doc/guides/nics/features/default.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/default.ini b/doc/g

[PATCH v2] net/ice: fix Tx preparation

2023-11-01 Thread Qi Zhang
1. Check nb_segs > 8 for NO TSO case 2. Check nb_segs > Tx ring size for TSO case 3. report nb_mtu_seg_max and nb_seg_max in dev_info. Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.c | 2 ++

[PATCH] net/iavf: fix Tx preparation

2023-11-01 Thread Qi Zhang
1. check nb_segs > Tx ring size for TSO case. 2. report nb_mtu_seg_max and nb_seg_max in dev_info. Fixes: a2b29a7733ef ("net/avf: enable basic Rx Tx") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/iavf/iavf_ethdev.c | 2 ++ drivers/net/iavf/iavf_rxtx.c | 3 ++- 2

[PATCH] net/ice: fix Tx Prepareation

2023-11-01 Thread Qi Zhang
1. Check nb_segs > 8 for NO TSO case 2. Check nb_segs > Tx ring size for TSO case 3. report nb_mtu_seg_max and nb_seg_max in dev_info. Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.c | 2 ++

[PATCH v6] app/testpmd: enable cli for programmable action

2023-10-10 Thread Qi Zhang
rguments field0 03FF field1 55AA end" Action without argument: "prog name action1" Signed-off-by: Qi Zhang --- v6: - fix typo. v5: - complete testpmd document. v4: - be more generous on the max size of name and value. v3: - refine struct action_prog_data - enlarge the max size

[PATCH v5] app/testpmd: enable cli for programmable action

2023-10-10 Thread Qi Zhang
rguments field0 03FF field1 55AA end" Action without argument: "prog name action1" Signed-off-by: Qi Zhang --- v5: - complete testpmd document. v4: - be more generous on the max size of name and value. v3: - refine struct action_prog_data - enlarge the max size v2: - fix tit

[PATCH v4] app/testpmd: enable cli for programmable action

2023-10-06 Thread Qi Zhang
rguments field0 03FF field1 55AA end" Action without argument: "prog name action1" Signed-off-by: Qi Zhang --- v4: - be more generous on the max size of name and value. v3: - refine struct action_prog_data - enlarge the max size v2: - fix title - minor coding style refine. app

[PATCH v3] app/testpmd: enable cli for programmable action

2023-10-05 Thread Qi Zhang
rguments field0 03FF field1 55AA end" Action without argument: "prog name action1" Signed-off-by: Qi Zhang --- v3: - refine struct action_prog_data - enlarge the max size v2: - fix title - minor coding style refine. app/test-pmd/cmdline_flow.c | 232 +++

[PATCH v2] app/testpmd: enable cli for programmable action

2023-10-04 Thread Qi Zhang
rguments field0 03FF field1 55AA end" Action without argument: "prog name action1" Signed-off-by: Qi Zhang --- v2: - fix title - minor coding style refine. app/test-pmd/cmdline_flow.c | 230 1 file changed, 230 insertions(+) diff --git a/app

[PATCH 1/2] app/testpmd: enable cli for programmable action

2023-10-04 Thread Qi Zhang
rguments field0 03FF field1 55AA end" Action without argument: "prog name action1" Signed-off-by: Qi Zhang --- app/test-pmd/cmdline_flow.c | 223 1 file changed, 223 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/c

[PATCH v5 5/5] doc: add generic flow doc for ice PMD

2023-09-25 Thread Qi Zhang
Add some document about how to use rte_flow on ice PMD. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 45 + 1 file changed, 45 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 5a47109c3f..b36a4c260a 100644 --- a

[PATCH v5 4/5] net/ice: refine supported flow pattern name

2023-09-25 Thread Qi Zhang
Unified the supported pattern array name as ice__supported_pattern. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter.c| 6 +++--- drivers/net/ice/ice_fdir_filter.c | 6 +++--- drivers/net/ice/ice_switch_filter.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff

[PATCH v5 3/5] net/ice: map group to pipeline stage

2023-09-25 Thread Qi Zhang
ored. Since each flow parser will be selected based on the group, there is no need to maintain a separate 'parser list' or related APIs for registering/unregistering parsers. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter.c| 13 +- drivers/net/ice/ice_ethdev.h|

[PATCH v5 2/5] net/ice: refine flow engine disabling

2023-09-25 Thread Qi Zhang
Only "disable_engine_mask" for flow engine disabling In PF mode, only ACL engine will be disabled. In DCF mode, FDIR and HASH engine will be disabled. In DCF mode with "acl=off", ACL engine will also be disabled. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter

[PATCH v5 1/5] net/ice: remove pipeline mode

2023-09-25 Thread Qi Zhang
capabilities. To address this, we have made the decision to assign each stage to a separate rte_flow group. This will allow users to clearly specify their intentions when creating a rule. Consequently, the need for a pipeline mode can be removed. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst

[PATCH v5 0/5] net/ice: refactor rte_flow

2023-09-25 Thread Qi Zhang
disabled engine handling - unified the supported pattern variable name - add document v2: - fix segment fault when an uninitialized engine has been selected. Qi Zhang (5): net/ice: remove pipeline mode net/ice: refine flow engine disabling net/ice: map group to pipeline stage net/ice: refine

[PATCH v4 4/5] net/ice: refine supported flow pattern name

2023-09-24 Thread Qi Zhang
Unified the supported pattern array name as ice__supported_pattern. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter.c| 6 +++--- drivers/net/ice/ice_fdir_filter.c | 6 +++--- drivers/net/ice/ice_switch_filter.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff

[PATCH v4 5/5] doc: add generic flow doc for ice PMD

2023-09-24 Thread Qi Zhang
Add some document about how to use rte_flow on ice PMD. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 45 + 1 file changed, 45 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 5a47109c3f..b36a4c260a 100644 --- a

[PATCH v4 3/5] net/ice: map group to pipeline stage

2023-09-24 Thread Qi Zhang
ored. Since each flow parser will be selected based on the group, there is no need to maintain a separate 'parser list' or related APIs for registering/unregistering parsers. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter.c| 13 +- drivers/net/ice/ice_ethdev.h|

[PATCH v4 2/5] net/ice: refine flow engine disabling

2023-09-24 Thread Qi Zhang
Only "disable_engine_mask" for flow engine disabling In PF mode, only ACL engine will be disabled. In DCF mode, FDIR and HASH engine will be disabled. In DCF mode with "acl=off", ACL engine will also be disabled. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter

[PATCH v4 1/5] net/ice: remove pipeline mode

2023-09-24 Thread Qi Zhang
capabilities. To address this, we have made the decision to assign each stage to a separate rte_flow group. This will allow users to clearly specify their intentions when creating a rule. Consequently, the need for a pipeline mode can be removed. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst

[PATCH v4 0/5] net/ice: refactor rte_flow

2023-09-24 Thread Qi Zhang
- add document v2: - fix segment fault when an unintialized engine has been selected. Qi Zhang (5): net/ice: remove pipeline mode net/ice: refine flow engine disabling net/ice: map group to pipeline stage net/ice: refine supported flow pattern name doc: add generic flow doc for ice PMD

[PATCH v3 5/5] doc: add generic flow doc for ice PMD

2023-09-11 Thread Qi Zhang
Add some about document about the how to use rte_flow on ice PMD. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 45 + 1 file changed, 45 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 5a47109c3f..b36a4c260a

[PATCH v3 4/5] net/ice: refine supported flow pattern name

2023-09-11 Thread Qi Zhang
Unified the supported patten array name to flow ice__supported_pattern. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter.c| 6 +++--- drivers/net/ice/ice_fdir_filter.c | 6 +++--- drivers/net/ice/ice_switch_filter.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions

[PATCH v3 3/5] net/ice: map group to pipeline stage

2023-09-11 Thread Qi Zhang
ored. Since each flow parser will be selected based on the group, there is no need to maintain a separate 'parser list' or related APIs for registering/unregistering parsers. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter.c| 13 +- drivers/net/ice/ice_ethdev.h|

[PATCH v3 2/5] net/ice: refine flow engine disabling

2023-09-11 Thread Qi Zhang
Only use "disable_engine_mask" for flow engine disabling In PF mode, only ACL engine will be disabled. In DCF mode, FDIR and HASH engine will be disabled. In DCF mode with "acl=off", ACL engine will also be disabled. Signed-off-by: Qi Zhang --- drivers/net/ice/i

[PATCH v3 1/5] net/ice: remove pipeline mode

2023-09-11 Thread Qi Zhang
capabilities. To address this, we have made the decision to assign each stage to a separate rte_flow group. This will allow users to clearly specify their intentions when creating a rule. Consequently, the need for a pipeline mode can be removed. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst

[PATCH v3 0/5] refactor rte_flow

2023-09-11 Thread Qi Zhang
unintialized engine has been selected. Qi Zhang (5): net/ice: remove pipeline mode net/ice: refine flow engine disabling net/ice: map group to pipeline stage net/ice: refine supported flow pattern name doc: add generic flow doc for ice PMD doc/guides/nics/ice.rst | 64

[PATCH v2 2/2] net/ice: map group to pipeline stage

2023-09-11 Thread Qi Zhang
be selected based on the group, there is no need to maintain a separate 'parser list' or related APIs for registering/unregistering parsers. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter.c| 13 +- drivers/net/ice/ice_ethdev.h| 2 - drivers/net/ice/ice

[PATCH v2 1/2] net/ice: remove pipeline mode

2023-09-11 Thread Qi Zhang
capabilities. To address this, we have made the decision to assign each stage to a separate rte_flow group. This will allow users to clearly specify their intentions when creating a rule. Consequently, the need for a pipeline mode can be removed. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst

[PATCH v2 0/2] refactor rte_flow

2023-09-11 Thread Qi Zhang
1. remove pipeline mode 2. apply group to hardware pipeline stage static mapping v2: - fix segment fault when an unintialized engine has been selected. Qi Zhang (2): net/ice: remove pipeline mode net/ice: map group to pipeline stage doc/guides/nics/ice.rst | 19 --- drivers

[PATCH 2/2] net/ice: map group to pipeline stage

2023-08-14 Thread Qi Zhang
be selected based on the group, there is no need to maintain a separate 'parser list' or related APIs for registering/unregistering parsers. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter.c| 13 +- drivers/net/ice/ice_ethdev.h| 2 - drivers/net/ice/ice

[PATCH 1/2] net/ice: remove pipeline mode

2023-08-14 Thread Qi Zhang
capabilities. To address this, we have made the decision to assign each stage to a separate rte_flow group. This will allow users to clearly specify their intentions when creating a rule. Consequently, the need for a pipeline mode can be removed. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst

[PATCH 0/2] refactor rte_flow

2023-08-14 Thread Qi Zhang
1. apply group to hardware pipeline stage static mapping 2. remove pipeline mode Qi Zhang (2): net/ice: remove pipeline mode net/ice: map group to pipeline stage doc/guides/nics/ice.rst | 19 --- drivers/net/ice/ice_acl_filter.c| 13 +- drivers/net/ice/ice_ethdev.c

[PATCH] ethdev: introduce generic flow item and action

2023-08-02 Thread Qi Zhang
igned-off-by: Cristian Dumitrescu Signed-off-by: Qi Zhang --- lib/ethdev/rte_flow.h | 82 +++ 1 file changed, 82 insertions(+) diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index 3fe57140f9..f7889d7dd0 100644 --- a/lib/ethdev/rte_flow.h +++

[PATCH] net/ice: init dvm mode for parser

2023-05-26 Thread Qi Zhang
Double Vlan mode need to be configured for parser Otherwise parser result will not be consistent with hardware. Fixes: 531d2555c8a6 ("net/ice: refactor parser usage") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ice/ice_generic_flow.c | 5 + 1 file changed, 5

[PATCH v2] net/ice: fix data length check

2023-05-22 Thread Qi Zhang
In TSO, It is possible mbuf->data_len exceed mtu. Fixed the incorrect data length check in ice_prep_pkts. Fixes: ccf33dccf7aa ("net/ice: check illegal packet sizes") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- v2: - fix build warning drivers/net/ice/ice_rxtx.c | 5 + 1 fi

[PATCH] net/ice: fix data length check

2023-05-22 Thread Qi Zhang
In TSO, It is possible mbuf->data_len exceed mtu. Fixed the incorrect data length check in ice_prep_pkts. Fixes: ccf33dccf7aa ("net/ice: check illegal packet sizes") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ice/ice_rxtx.c | 3 +-- 1 file changed, 1 insertion(+)

[PATCH v2] common/idpf: remove unnecessary compile option

2023-04-26 Thread Qi Zhang
Remove compile option "__KERNEL" which should not be considered in DPDK. Also only #include in idpf_osdep.h. Signed-off-by: Qi Zhang --- v2: - add fallthrough comment back drivers/common/idpf/base/idpf_controlq.c | 4 drivers/common/idpf/base/idpf_controlq.h | 8 ---

[PATCH] common/idpf: remove unnecessary compile option

2023-04-24 Thread Qi Zhang
Remove compile option "__KERNEL" which should not be considered in DPDK. Also only #include in idpf_osdep.h. Signed-off-by: Qi Zhang --- drivers/common/idpf/base/idpf_controlq.c | 5 - drivers/common/idpf/base/idpf_controlq.h | 8 drivers/common

[PATCH] common/idpf: refine header file include

2023-04-24 Thread Qi Zhang
Replace #include with #include "filename" for local header file. Signed-off-by: Qi Zhang --- drivers/common/idpf/idpf_common_device.c | 4 ++-- drivers/common/idpf/idpf_common_device.h | 6 +++--- drivers/common/idpf/idpf_common_rxtx_avx512.c | 4 ++-- drivers/c

[PATCH] common/idpf: remove unnecessary field in vport

2023-04-20 Thread Qi Zhang
Remove the pointer to rte_eth_dev instance, as 1. there is already a pointer to rte_eth_dev_data. 2. a pointer to rte_eth_dev will break multi-process usage. Signed-off-by: Qi Zhang --- drivers/common/idpf/idpf_common_device.h | 1 - drivers/net/cpfl/cpfl_ethdev.c | 4 ++-- drivers

[PATCH] common/idpf: remove device stop flag

2023-04-20 Thread Qi Zhang
t;common/idpf: add vport structure") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/common/idpf/idpf_common_device.h | 2 -- drivers/net/cpfl/cpfl_ethdev.c | 6 +- drivers/net/idpf/idpf_ethdev.c | 6 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff

[PATCH] doc: fix dcf instructions

2023-03-27 Thread Qi Zhang
Replace the deprecated VF action with the represented_port action. Fixes: 776c119736e7 ("net/ice: remove deprecated VF flow action") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/

[PATCH v2] net/ice: support IOVA as VA mode

2022-12-12 Thread Qi Zhang
Claim pmd_supports_disable_iova_as_pa. Remove buf_iova access when RTE_IOVA_AS_PA is not defined. The patch simply replace buf_iova with buf_addr at IOVA as VA mode. Some SIMD instructions in data path may be over used, further optimization is expected. Signed-off-by: Qi Zhang --- v2: - fix

[PATCH] net/ice: support IOVA as PA mode

2022-12-11 Thread Qi Zhang
Claim pmd_supports_disable_iova_as_pa. Remove buf_iova access when RTE_IOVA_AS_PA is not defined. The patch simply replace buf_iova with buf_addr at no IOVA as PA mode. Some SIMD instructions in data path may be over used, further optimization is expected. Signed-off-by: Qi Zhang --- drivers

[PATCH v2] net: not build PMD AVX library when no IOVA as PA

2022-12-11 Thread Qi Zhang
PA is not defined. Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- v2: - fix build error due to wrong type of meson variable. drivers/net/i40e/meson.build | 5 +++-- drivers/net/iavf/meson.build | 5 +++-- drivers/net/ice/meson.build | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-)

[PATCH v2] net: not build PMD AVX library when no IOVA as PA

2022-12-11 Thread Qi Zhang
PA is not defined. Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/i40e/meson.build | 5 +++-- drivers/net/iavf/meson.build | 5 +++-- drivers/net/ice/meson.build | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/net/i40e/meson.build b/drivers/net

[PATCH] net: not compile PMD AVX library when no IOVA as PA

2022-12-11 Thread Qi Zhang
PA is not defined. Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/i40e/meson.build | 6 -- drivers/net/iavf/meson.build | 6 -- drivers/net/ice/meson.build | 6 -- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/net/i40e/meson.build b/drivers/net

[PATCH 3/3] net/iavf: support no IOVA as PA mode

2022-12-11 Thread Qi Zhang
Remove buf_iova access when RTE_IOVA_AS_PA is not defined. Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 20 ++-- drivers/net/iavf/iavf_rxtx_vec_common.h | 12 2 files changed, 22 insertions(+), 10 deletions(-) diff

[PATCH 2/3] net/i40e: support no IOVA as PA mode

2022-12-11 Thread Qi Zhang
Remove buf_iova access when RTE_IOVA_AS_PA is not defined. Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_rxtx_common_avx.h | 12 drivers/net/i40e/i40e_rxtx_vec_avx512.c | 17 +++-- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a

[PATCH 1/3] net/ice: support no IOVA as PA mode

2022-12-11 Thread Qi Zhang
Remove buf_iova access when RTE_IOVA_AS_PA is not defined. Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ice/ice_rxtx_common_avx.h | 24 drivers/net/ice/ice_rxtx_vec_avx2.c | 11 +-- drivers/net/ice/ice_rxtx_vec_avx512.c | 17

  1   2   3   4   5   6   7   8   9   10   >