[PATCH v3] net/idpf: refine dev_link_update function

2023-07-02 Thread Mingxia Liu
This patch refines dev_link_update() of IDPF PMD, optimizing the code style. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 63 +++--- 1 file changed, 28 insertions(+), 35 deletions(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf

[PATCH v2] net/idpf: refine dev_link_update function

2023-06-30 Thread Mingxia Liu
This patch refines idpf_dev_link_update callback function according to CPFL PMD basic code. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 63 +++--- 1 file changed, 28 insertions(+), 35 deletions(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b

[PATCH v2] net/idpf: fix error path processing

2023-06-30 Thread Mingxia Liu
This patch moves vport info updating lines to the last, in order to fix reverting missing in the error handle. Fixes: 5e0f60527e5b ("net/idpf: remove vport req and recv info from adapter") Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 8 1 file changed, 4

[PATCH v2] net/idpf: refine vport parameter string

2023-06-30 Thread Mingxia Liu
This patch refines 'IDPF_VPORT' param string in 'RTE_PMD_REGISTER_PARAM_STRING'. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf

[PATCH] net/idpf: refine RTE_PMD_REGISTER_PARAM_STRING of IDPF PMD

2023-06-25 Thread Mingxia Liu
This patch refines 'IDPF_VPORT' param string in 'RTE_PMD_REGISTER_PARAM_STRING'. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf

[PATCH] net/idpf: refine idpf_dev_vport_init() function

2023-06-25 Thread Mingxia Liu
This patch adds 'cur_vports' and 'cur_vport_nb' updation in error path. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index 801da57472..3e6

[PATCH] net/idpf: optimize the code of IDPF PMD

2023-06-25 Thread Mingxia Liu
This patch moves 'struct eth_dev_ops idpf_eth_dev_ops = {...}' block just after idpf_dev_close(), to group dev_ops related code together. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 56 +- 1 file changed, 28 insertions(+), 28

[PATCH] net/idpf: refine dev_link_update function

2023-06-25 Thread Mingxia Liu
This patch refines idpf_dev_link_update callback function according to CPFL PMD basic code. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 63 -- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b

[PATCH 1/4] net/idpf: refine dev_link_update function

2023-06-25 Thread Mingxia Liu
This patch refines idpf_dev_link_update callback function according to CPFL PMD basic code. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 63 -- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b

[PATCH 1/4] net/idpf: refine dev_link_update function

2023-06-25 Thread Mingxia Liu
This patch refines idpf_dev_link_update callback function according to CPFL PMD basic code. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 63 -- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b

[PATCH v3] net/idpf: refine devargs parse functions

2023-04-23 Thread Mingxia Liu
This patch refines devargs parsing functions and use valid variable max_vport_nb to replace IDPF_MAX_VPORT_NUM. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 55 +++--- 1 file changed, 24 insertions(+), 31 deletions(-) diff --git a/drivers/net/idpf

[PATCH v2] net/idpf: refine devargs parse functions

2023-04-23 Thread Mingxia Liu
This patch refines devargs parsing functions and use valid variable max_vport_nb to replace IDPF_MAX_VPORT_NUM. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 61 +- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/drivers/net/idpf

[PATCH] net/idpf: refine devargs parse functions

2023-04-21 Thread Mingxia Liu
This patch refines devargs parsing functions and use valid variable max_vport_nb to replace IDPF_MAX_VPORT_NUM. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 61 +- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/drivers/net/idpf

[PATCH] net/cpfl: update the doc of CPFL PMD

2023-04-20 Thread Mingxia Liu
This patch updates cpfl.rst doc, adjusting the order of chapters referring to IDPF PMD doc. Signed-off-by: Mingxia Liu --- doc/guides/nics/cpfl.rst | 44 +--- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/doc/guides/nics/cpfl.rst b/doc

[PATCH] net/idpf: fix a compiler issue about virtchnl opcode

2023-03-08 Thread Mingxia Liu
annel message") Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index db58157ba3..46aec6ae37 100644 --- a/drivers/net/idpf/idpf_ethdev.c +++ b/d

[PATCH v2] net/cpfl: fix a compiler issue about virtchnl opcode

2023-03-08 Thread Mingxia Liu
ation") Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index 0940bf1276..54261d5743 100644 --- a/drivers/net/cpfl/cpfl_ethdev.c +++ b/driver

[PATCH] net/cpfl: fix a compiler issue about virtchnl opcode

2023-03-08 Thread Mingxia Liu
ation") Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 2 +- drivers/net/idpf/idpf_ethdev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index 0940bf1276..54261d5743 100644 --- a/driver

[PATCH v9 21/21] net/cpfl: add xstats ops

2023-03-02 Thread Mingxia Liu
Add support for these device ops: - dev_xstats_get - dev_xstats_get_names - dev_xstats_reset Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 79 ++ 1 file changed, 79 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl

[PATCH v9 20/21] net/cpfl: support scalar scatter Rx datapath for single queue model

2023-03-02 Thread Mingxia Liu
This patch add single q recv scatter Rx function. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 3 ++- drivers/net/cpfl/cpfl_rxtx.c | 27 +++ drivers/net/cpfl/cpfl_rxtx.h | 2 ++ 3 files changed, 31 insertions(+), 1

[PATCH v9 15/21] net/cpfl: add AVX512 data path for single queue model

2023-03-02 Thread Mingxia Liu
Add support of AVX512 vector data path for single queue model. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- doc/guides/nics/cpfl.rst| 24 +- drivers/net/cpfl/cpfl_ethdev.c | 3 +- drivers/net/cpfl/cpfl_rxtx.c| 93

[PATCH v9 19/21] net/cpfl: add RSS set/get ops

2023-03-02 Thread Mingxia Liu
Add support for these device ops: - rss_reta_update - rss_reta_query - rss_hash_update - rss_hash_conf_get Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 271 - 1 file changed, 270 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl

[PATCH v9 18/21] net/cpfl: add HW statistics

2023-03-02 Thread Mingxia Liu
This patch add hardware packets/bytes statistics. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 87 ++ 1 file changed, 87 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index ae716d104c..4970020139

[PATCH v9 17/21] net/cpfl: add AVX512 data path for split queue model

2023-03-02 Thread Mingxia Liu
Add support of AVX512 data path for split queue model. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_rxtx.c| 56 +++-- drivers/net/cpfl/cpfl_rxtx_vec_common.h | 20 - drivers/net/cpfl/meson.build| 6 ++- 3

[PATCH v9 16/21] net/cpfl: support timestamp offload

2023-03-02 Thread Mingxia Liu
Add support for timestamp offload. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 3 ++- drivers/net/cpfl/cpfl_rxtx.c | 7 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index e64cadfd38

[PATCH v9 14/21] net/cpfl: support Tx offloading

2023-03-02 Thread Mingxia Liu
Add Tx offloading support: - support TSO for single queue model and split queue model. Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 1 + drivers/net/cpfl/cpfl_ethdev.c| 8 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/features

[PATCH v9 13/21] net/cpfl: support Rx offloading

2023-03-02 Thread Mingxia Liu
Add Rx offloading support: - support CHKSUM and RSS offload for split queue model - support CHKSUM offload for single queue model Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 2 ++ drivers/net/cpfl/cpfl_ethdev.c| 6 ++ 2 files changed, 8 insertions(+) diff --git

[PATCH v9 12/21] net/cpfl: support RSS

2023-03-02 Thread Mingxia Liu
Add RSS support. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 60 ++ drivers/net/cpfl/cpfl_ethdev.h | 15 + 2 files changed, 75 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index ef40ae08df

[PATCH v9 11/21] net/cpfl: support write back based on ITR expire

2023-03-02 Thread Mingxia Liu
'idpf_vport_irq_map_config()' first. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 45 +- drivers/net/cpfl/cpfl_ethdev.h | 2 ++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpf

[PATCH v9 10/21] net/cpfl: support basic Tx data path

2023-03-02 Thread Mingxia Liu
Add basic Tx support in split queue mode and single queue mode. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 3 +++ drivers/net/cpfl/cpfl_rxtx.c | 20 drivers/net/cpfl/cpfl_rxtx.h | 1 + 3 files changed, 24 insertions(+) diff --git a/drivers/net

[PATCH v9 09/21] net/cpfl: support basic Rx data path

2023-03-02 Thread Mingxia Liu
Add basic Rx support in split queue mode and single queue mode. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 2 ++ drivers/net/cpfl/cpfl_rxtx.c | 18 ++ drivers/net/cpfl/cpfl_rxtx.h | 1 + 3 files changed, 21 insertions(+) diff --git a/drivers/net/cpfl

[PATCH v9 08/21] net/cpfl: support MTU configuration

2023-03-02 Thread Mingxia Liu
Add dev ops mtu_set. Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 1 + drivers/net/cpfl/cpfl_ethdev.c| 27 +++ 2 files changed, 28 insertions(+) diff --git a/doc/guides/nics/features/cpfl.ini b/doc/guides/nics/features/cpfl.ini index

[PATCH v9 07/21] net/cpfl: support queue release

2023-03-02 Thread Mingxia Liu
Add support for queue operations: - rx_queue_release - tx_queue_release Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 2 ++ drivers/net/cpfl/cpfl_rxtx.c | 24 drivers/net/cpfl/cpfl_rxtx.h | 2 ++ 3 files changed, 28 insertions(+) diff --git a

[PATCH v9 06/21] net/cpfl: support queue stop

2023-03-02 Thread Mingxia Liu
Add support for these device ops: - rx_queue_stop - tx_queue_stop Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 10 +++- drivers/net/cpfl/cpfl_rxtx.c | 98 ++ drivers/net/cpfl/cpfl_rxtx.h | 3 ++ 3 files changed, 110 insertions(+), 1

[PATCH v9 05/21] net/cpfl: support queue start

2023-03-02 Thread Mingxia Liu
Add support for these device ops: - rx_queue_start - tx_queue_start Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 41 ++ drivers/net/cpfl/cpfl_rxtx.c | 138 + drivers/net/cpfl/cpfl_rxtx.h | 4 + 3 files changed, 183 insertions

[PATCH v9 04/21] net/cpfl: support device start and stop

2023-03-02 Thread Mingxia Liu
Add dev ops dev_start, dev_stop and link_update. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 35 ++ 1 file changed, 35 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index ae011da76f..6cbc950d84

[PATCH v9 03/21] net/cpfl: add Rx queue setup

2023-03-02 Thread Mingxia Liu
r the split queue model, "RX buffer queues" are used to pass descriptor buffers from SW to HW, while RX queues are used only to pass the descriptor completions from HW to SW. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 11 ++ drivers/net/cpfl/cpfl

[PATCH v9 02/21] net/cpfl: add Tx queue setup

2023-03-02 Thread Mingxia Liu
split queue model, "Tx completion queue" are used to pass descriptor buffers from SW to HW, while TX queues are used only to pass the descriptor completions from HW to SW. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 13 ++ drivers/net/cpfl/cpfl

[PATCH v9 00/21] add support for cpfl PMD in DPDK

2023-03-02 Thread Mingxia Liu
edundant code. This patchset is based on the idpf PMD code for refining Rx/Tx queue model info: http://patches.dpdk.org/project/dpdk/patch/20230302195111.1104185-1-mingxia@intel.com/ Mingxia Liu (21): net/cpfl: support device initialization net/cpfl: add Tx queue setup net/cpfl: add Rx qu

[PATCH v9 01/21] net/cpfl: support device initialization

2023-03-02 Thread Mingxia Liu
Support device init and add the following dev ops: - dev_configure - dev_close - dev_infos_get - link_update - dev_supported_ptypes_get Signed-off-by: Mingxia Liu --- MAINTAINERS| 8 + doc/guides/nics/cpfl.rst | 85 +++ doc/guides/nics/features

[PATCH v3] net/idpf: refine Rx/Tx queue model info

2023-03-02 Thread Mingxia Liu
This patch updates queue mode info in struct idpf_adapter. Using is_rx_singleq_model to diffentiate rx_singq and rx_splitq explicitly, instead of deducing it from pointer values. Signed-off-by: Mingxia Liu --- drivers/common/idpf/idpf_common_device.c | 4 ++-- drivers/common/idpf

[PATCH v8 21/21] net/cpfl: add xstats ops

2023-03-01 Thread Mingxia Liu
Add support for these device ops: - dev_xstats_get - dev_xstats_get_names - dev_xstats_reset Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl

[PATCH v8 20/21] net/cpfl: support scalar scatter Rx datapath for single queue model

2023-03-01 Thread Mingxia Liu
This patch add single q recv scatter Rx function. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 3 ++- drivers/net/cpfl/cpfl_rxtx.c | 27 +++ drivers/net/cpfl/cpfl_rxtx.h | 2 ++ 3 files changed, 31 insertions(+), 1

[PATCH v8 19/21] net/cpfl: add RSS set/get ops

2023-03-01 Thread Mingxia Liu
Add support for these device ops: - rss_reta_update - rss_reta_query - rss_hash_update - rss_hash_conf_get Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 271 - 1 file changed, 270 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl

[PATCH v8 18/21] net/cpfl: add HW statistics

2023-03-01 Thread Mingxia Liu
This patch add hardware packets/bytes statistics. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 87 ++ 1 file changed, 87 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index 8ed6308a36..1f41bb8977

[PATCH v8 17/21] net/cpfl: add AVX512 data path for split queue model

2023-03-01 Thread Mingxia Liu
Add support of AVX512 data path for split queue model. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_rxtx.c| 56 +++-- drivers/net/cpfl/cpfl_rxtx_vec_common.h | 20 - drivers/net/cpfl/meson.build| 6 ++- 3

[PATCH v8 16/21] net/cpfl: support timestamp offload

2023-03-01 Thread Mingxia Liu
Add support for timestamp offload. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 3 ++- drivers/net/cpfl/cpfl_rxtx.c | 7 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index 8685c6e27b

[PATCH v8 15/21] net/cpfl: add AVX512 data path for single queue model

2023-03-01 Thread Mingxia Liu
Add support of AVX512 vector data path for single queue model. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- doc/guides/nics/cpfl.rst| 24 +- drivers/net/cpfl/cpfl_ethdev.c | 3 +- drivers/net/cpfl/cpfl_rxtx.c| 93

[PATCH v8 14/21] net/cpfl: support Tx offloading

2023-03-01 Thread Mingxia Liu
Add Tx offloading support: - support TSO for single queue model and split queue model. Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 1 + drivers/net/cpfl/cpfl_ethdev.c| 8 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/features

[PATCH v8 13/21] net/cpfl: support Rx offloading

2023-03-01 Thread Mingxia Liu
Add Rx offloading support: - support CHKSUM and RSS offload for split queue model - support CHKSUM offload for single queue model Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 2 ++ drivers/net/cpfl/cpfl_ethdev.c| 6 ++ 2 files changed, 8 insertions(+) diff --git

[PATCH v8 12/21] net/cpfl: support RSS

2023-03-01 Thread Mingxia Liu
Add RSS support. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 60 ++ drivers/net/cpfl/cpfl_ethdev.h | 15 + 2 files changed, 75 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index b09c7d4996

[PATCH v8 11/21] net/cpfl: support write back based on ITR expire

2023-03-01 Thread Mingxia Liu
'idpf_vport_irq_map_config()' first. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 45 +- drivers/net/cpfl/cpfl_ethdev.h | 2 ++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpf

[PATCH v8 10/21] net/cpfl: support basic Tx data path

2023-03-01 Thread Mingxia Liu
Add basic Tx support in split queue mode and single queue mode. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 3 +++ drivers/net/cpfl/cpfl_rxtx.c | 20 drivers/net/cpfl/cpfl_rxtx.h | 1 + 3 files changed, 24 insertions(+) diff --git a/drivers/net

[PATCH v8 09/21] net/cpfl: support basic Rx data path

2023-03-01 Thread Mingxia Liu
Add basic Rx support in split queue mode and single queue mode. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 2 ++ drivers/net/cpfl/cpfl_rxtx.c | 18 ++ drivers/net/cpfl/cpfl_rxtx.h | 1 + 3 files changed, 21 insertions(+) diff --git a/drivers/net/cpfl

[PATCH v8 08/21] net/cpfl: support MTU configuration

2023-03-01 Thread Mingxia Liu
Add dev ops mtu_set. Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 1 + drivers/net/cpfl/cpfl_ethdev.c| 27 +++ 2 files changed, 28 insertions(+) diff --git a/doc/guides/nics/features/cpfl.ini b/doc/guides/nics/features/cpfl.ini index

[PATCH v8 07/21] net/cpfl: support queue release

2023-03-01 Thread Mingxia Liu
Add support for queue operations: - rx_queue_release - tx_queue_release Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 2 ++ drivers/net/cpfl/cpfl_rxtx.c | 24 drivers/net/cpfl/cpfl_rxtx.h | 2 ++ 3 files changed, 28 insertions(+) diff --git a

[PATCH v8 06/21] net/cpfl: support queue stop

2023-03-01 Thread Mingxia Liu
Add support for these device ops: - rx_queue_stop - tx_queue_stop Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 10 +++- drivers/net/cpfl/cpfl_rxtx.c | 98 ++ drivers/net/cpfl/cpfl_rxtx.h | 3 ++ 3 files changed, 110 insertions(+), 1

[PATCH v8 05/21] net/cpfl: support queue start

2023-03-01 Thread Mingxia Liu
Add support for these device ops: - rx_queue_start - tx_queue_start Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 41 ++ drivers/net/cpfl/cpfl_rxtx.c | 138 + drivers/net/cpfl/cpfl_rxtx.h | 4 + 3 files changed, 183 insertions

[PATCH v8 04/21] net/cpfl: support device start and stop

2023-03-01 Thread Mingxia Liu
Add dev ops dev_start, dev_stop and link_update. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 35 ++ 1 file changed, 35 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index 99fd86d6d0..dbd3f056e7

[PATCH v8 03/21] net/cpfl: add Rx queue setup

2023-03-01 Thread Mingxia Liu
r the split queue model, "RX buffer queues" are used to pass descriptor buffers from SW to HW, while RX queues are used only to pass the descriptor completions from HW to SW. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 11 ++ drivers/net/cpfl/cpfl

[PATCH v8 02/21] net/cpfl: add Tx queue setup

2023-03-01 Thread Mingxia Liu
split queue model, "Tx completion queue" are used to pass descriptor buffers from SW to HW, while TX queues are used only to pass the descriptor completions from HW to SW. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 13 ++ drivers/net/cpfl/cpfl

[PATCH v8 01/21] net/cpfl: support device initialization

2023-03-01 Thread Mingxia Liu
Support device init and add the following dev ops: - dev_configure - dev_close - dev_infos_get - link_update - dev_supported_ptypes_get Signed-off-by: Mingxia Liu --- MAINTAINERS| 8 + doc/guides/nics/cpfl.rst | 85 +++ doc/guides/nics/features

[PATCH v8 00/21] add support for cpfl PMD in DPDK

2023-03-01 Thread Mingxia Liu
e for refining Rx/Tx queue model info: http://patches.dpdk.org/project/dpdk/patch/20230301192659.601892-1-mingxia@intel.com/ Mingxia Liu (21): net/cpfl: support device initialization net/cpfl: add Tx queue setup net/cpfl: add Rx queue setup net/cpfl: support device start and stop net

[PATCH v2] net/idpf: refine Rx/Tx queue model info

2023-03-01 Thread Mingxia Liu
This patch updates queue mode info in struct idpf_adapter. Using is_rx_singleq_model to diffentiate rx_singq and rx_splitq explicitly, instead of deducing it from pointer values. Signed-off-by: Mingxia Liu --- drivers/common/idpf/idpf_common_device.c | 4 ++-- drivers/common/idpf

[PATCH] net/idpf: optimize Tx/Rx qeue mode code

2023-03-01 Thread Mingxia Liu
This patch update queue mode info in struct idpf_adapter. Using is_rx_singleq_model to diffentiate rx_singq and rx_splitq explicitly, instead of deducing it from pointer values. Signed-off-by: Mingxia Liu --- drivers/common/idpf/idpf_common_device.c | 4 ++-- drivers/common/idpf

[PATCH v2] net/idpf: add hw stats ierrors

2023-02-23 Thread Mingxia Liu
This patch adds hw stats ierrors, when receiving packets with bad csum, ierrors value will increase. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index 38cbbf369d

[PATCH] net/idpf: add hw stats ierrors

2023-02-23 Thread Mingxia Liu
This patch adds hw stats ierrors, when receiving packets with bad csum, ierrors value will increase. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index 38cbbf369d

[PATCH] net/idpf: add hw stats ierrors

2023-02-20 Thread Mingxia Liu
This patch add hw stats ierrors, when receive packets with bad csum, ierrors value will increase. Signed-off-by: Mingxia Liu --- drivers/net/idpf/idpf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index 38cbbf369d

[PATCH v7 21/21] net/cpfl: add xstats ops

2023-02-15 Thread Mingxia Liu
Add support for these device ops: - dev_xstats_get - dev_xstats_get_names - dev_xstats_reset Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 80 ++ 1 file changed, 80 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl

[PATCH v7 20/21] net/cpfl: support scalar scatter Rx datapath for single queue model

2023-02-15 Thread Mingxia Liu
This patch add single q recv scatter Rx function. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 3 ++- drivers/net/cpfl/cpfl_rxtx.c | 27 +++ drivers/net/cpfl/cpfl_rxtx.h | 2 ++ 3 files changed, 31 insertions(+), 1

[PATCH v7 19/21] net/cpfl: add RSS set/get ops

2023-02-15 Thread Mingxia Liu
Add support for these device ops: - rss_reta_update - rss_reta_query - rss_hash_update - rss_hash_conf_get Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 270 - 1 file changed, 269 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl

[PATCH v7 18/21] net/cpfl: add HW statistics

2023-02-15 Thread Mingxia Liu
This patch add hardware packets/bytes statistics. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index 1e40f3e55c..0fb9f0455b

[PATCH v7 17/21] net/cpfl: add AVX512 data path for split queue model

2023-02-15 Thread Mingxia Liu
Add support of AVX512 data path for split queue model. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_rxtx.c| 56 +++-- drivers/net/cpfl/cpfl_rxtx_vec_common.h | 20 - drivers/net/cpfl/meson.build| 6 ++- 3

[PATCH v7 16/21] net/cpfl: support timestamp offload

2023-02-15 Thread Mingxia Liu
Add support for timestamp offload. Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 1 + drivers/net/cpfl/cpfl_ethdev.c| 3 ++- drivers/net/cpfl/cpfl_rxtx.c | 7 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/features/cpfl.ini

[PATCH v7 15/21] net/cpfl: add AVX512 data path for single queue model

2023-02-15 Thread Mingxia Liu
Add support of AVX512 vector data path for single queue model. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- doc/guides/nics/cpfl.rst| 24 +- drivers/net/cpfl/cpfl_ethdev.c | 3 +- drivers/net/cpfl/cpfl_rxtx.c| 94

[PATCH v7 14/21] net/cpfl: support Tx offloading

2023-02-15 Thread Mingxia Liu
Add Tx offloading support: - support TSO for single queue model and split queue model. Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 1 + drivers/net/cpfl/cpfl_ethdev.c| 8 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/features

[PATCH v7 13/21] net/cpfl: support Rx offloading

2023-02-15 Thread Mingxia Liu
Add Rx offloading support: - support CHKSUM and RSS offload for split queue model - support CHKSUM offload for single queue model Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 2 ++ drivers/net/cpfl/cpfl_ethdev.c| 6 ++ 2 files changed, 8 insertions(+) diff --git

[PATCH v7 12/21] net/cpfl: support RSS

2023-02-15 Thread Mingxia Liu
Add RSS support. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 51 ++ drivers/net/cpfl/cpfl_ethdev.h | 15 ++ 2 files changed, 66 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index

[PATCH v7 11/21] net/cpfl: support write back based on ITR expire

2023-02-15 Thread Mingxia Liu
Enable write back on ITR expire, then packets can be received one by Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 45 +- drivers/net/cpfl/cpfl_ethdev.h | 2 ++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl

[PATCH v7 10/21] net/cpfl: support basic Tx data path

2023-02-15 Thread Mingxia Liu
Add basic Tx support in split queue mode and single queue mode. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 3 +++ drivers/net/cpfl/cpfl_rxtx.c | 20 drivers/net/cpfl/cpfl_rxtx.h | 1 + 3 files changed, 24 insertions(+) diff --git a/drivers/net

[PATCH v7 09/21] net/cpfl: support basic Rx data path

2023-02-15 Thread Mingxia Liu
Add basic Rx support in split queue mode and single queue mode. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 2 ++ drivers/net/cpfl/cpfl_rxtx.c | 18 ++ drivers/net/cpfl/cpfl_rxtx.h | 1 + 3 files changed, 21 insertions(+) diff --git a/drivers/net/cpfl

[PATCH v7 08/21] net/cpfl: support MTU configuration

2023-02-15 Thread Mingxia Liu
Add dev ops mtu_set. Signed-off-by: Mingxia Liu --- doc/guides/nics/features/cpfl.ini | 1 + drivers/net/cpfl/cpfl_ethdev.c| 27 +++ 2 files changed, 28 insertions(+) diff --git a/doc/guides/nics/features/cpfl.ini b/doc/guides/nics/features/cpfl.ini index

[PATCH v7 07/21] net/cpfl: support queue release

2023-02-15 Thread Mingxia Liu
Add support for queue operations: - rx_queue_release - tx_queue_release Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 2 ++ drivers/net/cpfl/cpfl_rxtx.c | 35 ++ drivers/net/cpfl/cpfl_rxtx.h | 2 ++ 3 files changed, 39 insertions

[PATCH v7 06/21] net/cpfl: support queue stop

2023-02-15 Thread Mingxia Liu
Add support for these device ops: - rx_queue_stop - tx_queue_stop Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 10 +++- drivers/net/cpfl/cpfl_rxtx.c | 87 ++ drivers/net/cpfl/cpfl_rxtx.h | 3 ++ 3 files changed, 99 insertions(+), 1

[PATCH v7 05/21] net/cpfl: support queue start

2023-02-15 Thread Mingxia Liu
Add support for these device ops: - rx_queue_start - tx_queue_start Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 41 ++ drivers/net/cpfl/cpfl_rxtx.c | 138 + drivers/net/cpfl/cpfl_rxtx.h | 4 + 3 files changed, 183 insertions

[PATCH v7 04/21] net/cpfl: support device start and stop

2023-02-15 Thread Mingxia Liu
Add dev ops dev_start, dev_stop and link_update. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 35 ++ 1 file changed, 35 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index 3029f03d02..d1dfcfff9b

[PATCH v7 03/21] net/cpfl: add Rx queue setup

2023-02-15 Thread Mingxia Liu
Add support for rx_queue_setup ops. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 11 ++ drivers/net/cpfl/cpfl_rxtx.c | 232 + drivers/net/cpfl/cpfl_rxtx.h | 6 + 3 files changed, 249 insertions(+) diff --git a/drivers/net/cpfl

[PATCH v7 02/21] net/cpfl: add Tx queue setup

2023-02-15 Thread Mingxia Liu
Rx queues are used only to pass the descriptor completions, that is, descriptors that point to completed buffers, from HW to SW. This is contrary to the single queue model in which Rx queues are used for both purposes. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 13

[PATCH v7 01/21] net/cpfl: support device initialization

2023-02-15 Thread Mingxia Liu
Support device init and add the following dev ops: - dev_configure - dev_close - dev_infos_get - link_update - dev_supported_ptypes_get Signed-off-by: Mingxia Liu --- MAINTAINERS| 8 + doc/guides/nics/cpfl.rst | 66 +++ doc/guides/nics/features

[PATCH v7 00/21] add support for cpfl PMD in DPDK

2023-02-15 Thread Mingxia Liu
g/project/dpdk/cover/20230106090501.9106-1-beilei.x...@intel.com/ http://patches.dpdk.org/project/dpdk/cover/20230207084549.2225214-1-wenjun1...@intel.com/ http://patches.dpdk.org/project/dpdk/cover/20230208073401.2468579-1-mingxia@intel.com/ Mingxia Liu (21): net/cpfl: support device initializatio

[PATCH v2 5/5] net/cpfl: adjust RSS LUT to exclude hairpin queue

2023-02-14 Thread Mingxia Liu
RSS should direct traffic only to the normal data Rx queues, so when hairpin queue configured, RSS LUT should be adjusted to exclude the hairpin queue. Signed-off-by: Xiao Wang Signed-off-by: Junfeng Guo Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 38

[PATCH v2 4/5] net/cpfl: support hairpin queue start and stop

2023-02-14 Thread Mingxia Liu
This patch add hairpin queue start and stop. Signed-off-by: Beilei Xing Signed-off-by: Xiao Wang Signed-off-by: Junfeng Guo Signed-off-by: Mingxia Liu --- drivers/common/idpf/idpf_common_device.c | 1 + drivers/common/idpf/idpf_common_virtchnl.c | 72 ++- drivers/common/idpf

[PATCH v2 3/5] net/cpfl: add hairpin queue enable and setup

2023-02-14 Thread Mingxia Liu
This patch add hairpin queue ops - hairpin_cap_get - rx_hairpin_queue_setup - tx_hairpin_queue_setup Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 15 ++ drivers/net/cpfl/cpfl_rxtx.c | 443 - drivers/net/cpfl/cpfl_rxtx.h | 22 +- 3

[PATCH v2 2/5] net/cpfl: update device initialization for hairpin queue

2023-02-14 Thread Mingxia Liu
This patch update device initialization for hairpin queue. Signed-off-by: Beilei Xing Signed-off-by: Xiao Wang Signed-off-by: Junfeng Guo Signed-off-by: Mingxia Liu --- drivers/common/idpf/idpf_common_device.c | 51 drivers/common/idpf/idpf_common_device.h | 2

[PATCH v2 1/5] net/cpfl: add some structure for hairpin queue

2023-02-14 Thread Mingxia Liu
This patch add some structure for hairpin queue, cpfl_rx_queue/cpfl_tx_queue/cpfl_vport. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 102 +++- drivers/net/cpfl/cpfl_ethdev.h | 8 +- drivers/net/cpfl/cpfl_rxtx.c| 196

[PATCH v2 0/5] add port to port feature

2023-02-14 Thread Mingxia Liu
PMD code: http://patches.dpdk.org/project/dpdk/cover/20230213021956.2953088-1-mingxia@intel.com/ Mingxia Liu (5): net/cpfl: add some structure for hairpin queue net/cpfl: update device initialization for hairpin queue net/cpfl: add hairpin queue enable and setup net/cpfl: support hairpin

[PATCH v6 21/21] net/cpfl: add xstats ops

2023-02-12 Thread Mingxia Liu
Add support for these device ops: - dev_xstats_get - dev_xstats_get_names - dev_xstats_reset Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 80 ++ 1 file changed, 80 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl

[PATCH v6 19/21] net/cpfl: add RSS set/get ops

2023-02-12 Thread Mingxia Liu
Add support for these device ops: - rss_reta_update - rss_reta_query - rss_hash_update - rss_hash_conf_get Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 270 - 1 file changed, 269 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl

[PATCH v6 20/21] net/cpfl: support scalar scatter Rx datapath for single queue model

2023-02-12 Thread Mingxia Liu
This patch add single q recv scatter Rx function. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 3 ++- drivers/net/cpfl/cpfl_rxtx.c | 27 +++ drivers/net/cpfl/cpfl_rxtx.h | 2 ++ 3 files changed, 31 insertions(+), 1

[PATCH v6 18/21] net/cpfl: add HW statistics

2023-02-12 Thread Mingxia Liu
This patch add hardware packets/bytes statistics. Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_ethdev.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index 1e40f3e55c..0fb9f0455b

[PATCH v6 17/21] net/cpfl: add AVX512 data path for split queue model

2023-02-12 Thread Mingxia Liu
Add support of AVX512 data path for split queue model. Signed-off-by: Wenjun Wu Signed-off-by: Mingxia Liu --- drivers/net/cpfl/cpfl_rxtx.c| 56 +++-- drivers/net/cpfl/cpfl_rxtx_vec_common.h | 20 - drivers/net/cpfl/meson.build| 6 ++- 3

  1   2   3   >