Re: zxdh: add zxdh poll mode driver

2024-06-06 Thread Junlong Wang
>> +Prerequisites >> +- >> + >> +This PMD driver need NPSDK library for system initialization and allocation >> of resources. >> +Communication between PMD and kernel modules is mediated by zxdh Kernel >> modules. >> +The NPSDK library and zxdh Kernel modules are not part of DPDK and

[PATCH v5 0/9] net/zxdh: introduce net zxdh driver

2024-10-14 Thread Junlong Wang
to Ferruh's comments. V4: - Resolve compilation issues Junlong Wang (9): net/zxdh: add zxdh ethdev pmd driver net/zxdh: add logging implementation net/zxdh: add zxdh device pci init implementation net/zxdh: add msg chan and msg hwlock init net/zxdh: add msg chan enable implement

[PATCH v5 3/9] net/zxdh: add zxdh device pci init implementation

2024-10-14 Thread Junlong Wang
Add device pci init implementation, to obtain PCI capability and read configuration, etc Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 5 +- drivers/net/zxdh/zxdh_ethdev.c | 43 + drivers/net/zxdh/zxdh_ethdev.h | 20 ++- drivers/net/zxdh/zxdh_pci.c| 290

[PATCH v5 5/9] net/zxdh: add msg chan enable implementation

2024-10-14 Thread Junlong Wang
Add msg chan enable implementation to support send msg to get infos. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 6 + drivers/net/zxdh/zxdh_ethdev.h | 12 + drivers/net/zxdh/zxdh_msg.c| 655 - drivers/net/zxdh/zxdh_msg.h| 127

[PATCH v5 4/9] net/zxdh: add msg chan and msg hwlock init

2024-10-14 Thread Junlong Wang
Add msg channel and hwlock init implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 15 +++ drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_msg.c| 161 + drivers/net/zxdh

[PATCH v5 7/9] net/zxdh: add configure zxdh intr implementation

2024-10-14 Thread Junlong Wang
configure zxdh intr include risc,dtb. and release intr. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 302 - drivers/net/zxdh/zxdh_ethdev.h | 8 + drivers/net/zxdh/zxdh_msg.c| 187 drivers/net/zxdh/zxdh_msg.h| 11

[PATCH v5 6/9] net/zxdh: add zxdh get device backend infos

2024-10-14 Thread Junlong Wang
Add zxdh get device backend infos, use msg chan to send msg get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_common.c | 249 + drivers/net/zxdh/zxdh_common.h | 30 drivers/net/zxdh/zxdh_ethdev.c | 35

[PATCH v5 1/9] net/zxdh: add zxdh ethdev pmd driver

2024-10-14 Thread Junlong Wang
Add basic zxdh ethdev init and register PCI probe functions Update doc files Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 9 +++ doc/guides/nics/index.rst | 1 + doc/guides/nics/zxdh.rst | 30 ++ drivers/net/meson.build | 1 + drivers

[PATCH v5 2/9] net/zxdh: add logging implementation

2024-10-14 Thread Junlong Wang
Adds zxdh logging implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 15 +-- drivers/net/zxdh/zxdh_logs.h | 35 ++ 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 drivers/net/zxdh/zxdh_logs.h diff

[PATCH v5 8/9] net/zxdh: add zxdh dev infos get ops

2024-10-14 Thread Junlong Wang
Add support for zxdh infos get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 62 +- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_ethdev.c b/drivers/net/zxdh/zxdh_ethdev.c index 4f6711c9af..e0f2c1985b

[PATCH v6 0/9] net/zxdh: introduce net zxdh driver

2024-10-16 Thread Junlong Wang
link in zxdh.rst. - fix meson check use RTE_ARCH_X86_64/RTE_ARCH_ARM64. - modify other comments according to Ferruh's comments. V4: - Resolve compilation issues Junlong Wang (9): net/zxdh: add zxdh ethdev pmd driver net/zxdh: add logging implementation net/zxdh: add zxdh device pci

[PATCH v6 1/9] net/zxdh: add zxdh ethdev pmd driver

2024-10-16 Thread Junlong Wang
Add basic zxdh ethdev init and register PCI probe functions Update doc files Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 9 +++ doc/guides/nics/index.rst | 1 + doc/guides/nics/zxdh.rst | 30 ++ drivers/net/meson.build | 1 + drivers

[PATCH v6 5/9] net/zxdh: add msg chan enable implementation

2024-10-16 Thread Junlong Wang
Add msg chan enable implementation to support send msg to get infos. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 6 + drivers/net/zxdh/zxdh_ethdev.h | 12 + drivers/net/zxdh/zxdh_msg.c| 643 - drivers/net/zxdh/zxdh_msg.h| 127

[PATCH v6 7/9] net/zxdh: add configure zxdh intr implementation

2024-10-16 Thread Junlong Wang
configure zxdh intr include risc,dtb. and release intr. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 301 + drivers/net/zxdh/zxdh_ethdev.h | 8 + drivers/net/zxdh/zxdh_msg.c| 187 drivers/net/zxdh/zxdh_msg.h| 12

[PATCH v6 3/9] net/zxdh: add zxdh device pci init implementation

2024-10-16 Thread Junlong Wang
Add device pci init implementation, to obtain PCI capability and read configuration, etc. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 43 + drivers/net/zxdh/zxdh_ethdev.h | 20 ++- drivers/net/zxdh/zxdh_pci.c| 290

[PATCH v6 6/9] net/zxdh: add zxdh get device backend infos

2024-10-16 Thread Junlong Wang
Add zxdh get device backend infos, use msg chan to send msg get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_common.c | 249 + drivers/net/zxdh/zxdh_common.h | 30 drivers/net/zxdh/zxdh_ethdev.c | 35

[PATCH v6 4/9] net/zxdh: add msg chan and msg hwlock init

2024-10-16 Thread Junlong Wang
Add msg channel and hwlock init implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 15 +++ drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_msg.c| 161 + drivers/net/zxdh

[PATCH v6 2/9] net/zxdh: add logging implementation

2024-10-16 Thread Junlong Wang
Add zxdh logging implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 15 +++-- drivers/net/zxdh/zxdh_logs.h | 40 ++ 2 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 drivers/net/zxdh/zxdh_logs.h diff

[PATCH v6 8/9] net/zxdh: add zxdh dev infos get ops

2024-10-16 Thread Junlong Wang
Add support for zxdh infos get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 62 +- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_ethdev.c b/drivers/net/zxdh/zxdh_ethdev.c index fc141712aa..65b649a156

Re: [v6,9/9] net/zxdh: add zxdh dev configure ops

2024-10-19 Thread Junlong Wang
Hi, Maintainer Hope you can take some time to check if there are any modifications needed for the net/zxdh driver. Thank you very much!

Re: [PATCH v6 5/9] net/zxdh: add msg chan enable implementation

2024-10-21 Thread Junlong Wang
>> Add msg chan enable implementation to support >> send msg to get infos. > Would be interesting to explain which module is receiving the message. Send messages to the backend (device side) to obtain information. > I am curious about the spinlock function below. > What is it doing e

Re: [v6,9/9] net/zxdh: add zxdh dev configure ops

2024-10-17 Thread Junlong Wang
Hi, Maintainer iol-unit-amd64-testing/ Debian 12 | FAIL DPDK:fast-tests / bitops_autotest FAIL 1.72 s (exit status 255 or signal 127 SIGinvalid) Do we need to solve this error? We haven't found the detailed reason for the error in the output log. I noticed that the patches submit

[PATCH v13 10/12] crypto/zsda: add crypto sessions configuration

2024-10-22 Thread Junlong Wang
From: Hanxiao Li add session support for zsda cryptodev. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build| 15 +- drivers/crypto/zsda/zsda_sym_session.c | 512 + drivers/crypto/zsda/zsda_sym_session.h | 83 3 files changed, 609 insertions(+),

[PATCH v13 02/12] config: add zsda device number

2024-10-22 Thread Junlong Wang
From: Hanxiao Li Add the number of zsda devices. Signed-off-by: Hanxiao Li --- config/rte_config.h | 4 1 file changed, 4 insertions(+) diff --git a/config/rte_config.h b/config/rte_config.h index dd7bb0d35b..e1e85b3291 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -117,6

[PATCH v13 01/12] zsda: add zsdadev driver documents

2024-10-22 Thread Junlong Wang
From: Hanxiao Li Introduce ZTE Storage Data Accelerator(ZSDA) drivers which can help accelerate storage data process. The official product documenttation web page is: https://enterprise.zte.com.cn/products.html?id=101 It is recommended to update MAINTAINERS in the first patch in the new PMD gui

[PATCH v13 05/12] common/zsda: configure zsda queue base functions

2024-10-22 Thread Junlong Wang
From: Hanxiao Li Add support for zsdadev queue interfaces, including queue start, stop, create, remove, etc. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 1 + drivers/common/zsda/zsda_qp.c | 710 drivers/common/zsda/zsda_qp.h | 146

[PATCH v13 00/12] drivers/zsda: introduce zsda drivers

2024-10-22 Thread Junlong Wang
From: Hanxiao Li v13: - resolve some comiler warnings that are being suppressed. v12: - use RTE_LOG_LINE_PREFIX in logging macro. - delete the check for null with rte_mempool_free. - delete some unused initial values. v11: - use RTE_LOG_LINE in logging macro. - fix some known bugs. v10: - del

[PATCH v13 08/12] compress/zsda: add zsda compress driver

2024-10-22 Thread Junlong Wang
From: Hanxiao Li The patchset adds support for wqe configuration of compress and decompress, preliminary verification of results and preparation of checksums. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 12 +- drivers/compress/zsda/zsda_comp.c | 392 +

[PATCH v13 06/12] common/zsda: configure zsda queue enqueue functions

2024-10-22 Thread Junlong Wang
From: Hanxiao Li Add support for zsdadev queue enqueue. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 105 ++ drivers/common/zsda/zsda_qp.h | 2 + 2 files changed, 107 insertions(+) diff --git a/drivers/common/zsda/zsda_qp.c b/drivers/common/z

[PATCH v13 07/12] common/zsda: configure zsda queue dequeue functions

2024-10-22 Thread Junlong Wang
From: Hanxiao Li Add support for zsdadev queue dequeue. Signed-off-by: Hanxiao Li --- drivers/common/zsda/zsda_qp.c | 56 +++ drivers/common/zsda/zsda_qp.h | 1 + 2 files changed, 57 insertions(+) diff --git a/drivers/common/zsda/zsda_qp.c b/drivers/common/zsd

[PATCH v13 11/12] crypto/zsda: add zsda crypto driver

2024-10-22 Thread Junlong Wang
From: Hanxiao Li The patchset adds support for wqe configuration of encrypto and decrypto, preliminary verification of results and preparation of checksums. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 2 +- drivers/crypto/zsda/zsda_sym.c | 273 +++

[PATCH v13 03/12] common/zsda: add some common functions

2024-10-22 Thread Junlong Wang
From: Hanxiao Li Introduce common functions and logging macros. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 14 ++ drivers/common/zsda/zsda_common.c | 240 + drivers/common/zsda/zsda_common.h | 333 ++ drivers/common/zsda/z

[PATCH v13 12/12] crypto/zsda: add zsda crypto PMD

2024-10-22 Thread Junlong Wang
From: Hanxiao Li The patch provides a series of interfaces for managing and controlling the configuration, start, stop, resource management, etc. of crypto devices. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 2 +- drivers/crypto/zsda/zsda_sym_capabilities.h |

[PATCH v13 09/12] compress/zsda: add zsda compress PMD

2024-10-22 Thread Junlong Wang
From: Hanxiao Li The patch provides a series of interfaces for managing and controlling the configuration, start, stop, resource management, etc. of compression devices. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 2 +- drivers/compress/zsda/zsda_comp_pmd.c | 463 ++

[PATCH v13 04/12] common/zsda: configure zsda device

2024-10-22 Thread Junlong Wang
From: Hanxiao Li The patch provides a series of interfaces for driver probe remove,etc. Signed-off-by: Hanxiao Li --- drivers/common/zsda/meson.build | 1 + drivers/common/zsda/zsda_device.c | 263 ++ drivers/common/zsda/zsda_device.h | 112 + 3 file

[PATCH v7 0/9] net/zxdh: introduce net zxdh driver

2024-10-22 Thread Junlong Wang
other comments according to Ferruh's comments. Junlong Wang (9): net/zxdh: add zxdh ethdev pmd driver net/zxdh: add logging implementation net/zxdh: add zxdh device pci init implementation net/zxdh: add msg chan and msg hwlock init net/zxdh: add msg chan enable implementation net/zxdh

[PATCH v7 3/9] net/zxdh: add zxdh device pci init implementation

2024-10-22 Thread Junlong Wang
Add device pci init implementation, to obtain PCI capability and read configuration, etc. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 43 + drivers/net/zxdh/zxdh_ethdev.h | 22 ++- drivers/net/zxdh/zxdh_pci.c| 290

[PATCH v7 1/9] net/zxdh: add zxdh ethdev pmd driver

2024-10-22 Thread Junlong Wang
Add basic zxdh ethdev init and register PCI probe functions Update doc files. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 9 +++ doc/guides/nics/index.rst | 1 + doc/guides/nics/zxdh.rst | 31 + doc/guides/rel_notes/release_24_11

[PATCH v7 8/9] net/zxdh: add zxdh dev infos get ops

2024-10-22 Thread Junlong Wang
Add support for zxdh infos get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 48 +- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_ethdev.c b/drivers/net/zxdh/zxdh_ethdev.c index cb8c85941a..cc270d6e73

[PATCH v7 2/9] net/zxdh: add logging implementation

2024-10-22 Thread Junlong Wang
Add zxdh logging implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 15 +++-- drivers/net/zxdh/zxdh_logs.h | 40 ++ 2 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 drivers/net/zxdh/zxdh_logs.h diff

[PATCH v7 7/9] net/zxdh: add configure zxdh intr implementation

2024-10-22 Thread Junlong Wang
configure zxdh intr include risc,dtb. and release intr. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 301 + drivers/net/zxdh/zxdh_ethdev.h | 8 + drivers/net/zxdh/zxdh_msg.c| 187 drivers/net/zxdh/zxdh_msg.h| 10

[PATCH v7 5/9] net/zxdh: add msg chan enable implementation

2024-10-22 Thread Junlong Wang
Add msg chan enable implementation to support send msg to backend(device side) get infos. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 6 + drivers/net/zxdh/zxdh_ethdev.h | 12 + drivers/net/zxdh/zxdh_msg.c| 659 - drivers/net/zxdh

[PATCH v7 6/9] net/zxdh: add zxdh get device backend infos

2024-10-22 Thread Junlong Wang
Add zxdh get device backend infos, use msg chan to send msg get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_common.c | 249 + drivers/net/zxdh/zxdh_common.h | 30 drivers/net/zxdh/zxdh_ethdev.c | 35

[PATCH v7 4/9] net/zxdh: add msg chan and msg hwlock init

2024-10-22 Thread Junlong Wang
Add msg channel and hwlock init implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 15 drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_msg.c| 160 + drivers/net/zxdh

Re: [v7,9/9] net/zxdh: add zxdh dev configure ops

2024-10-24 Thread Junlong Wang
If you have time, hope you can check if the zxdh driver still needs to be modified. Best regards!

[PATCH v8 7/9] net/zxdh: add configure zxdh intr implementation

2024-10-30 Thread Junlong Wang
configure zxdh intr include risc,dtb. and release intr. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 300 + drivers/net/zxdh/zxdh_ethdev.h | 8 + drivers/net/zxdh/zxdh_msg.c| 188 + drivers/net/zxdh/zxdh_msg.h

[PATCH v8 0/9] net/zxdh: introduce net zxdh driver

2024-10-30 Thread Junlong Wang
zxdh driver, later provide dev start/stop,queue_setup,npsdk_init,mac,vlan,rss ,etc. - fix errors reported by scripts. - move the product link in zxdh.rst. - fix meson check use RTE_ARCH_X86_64/RTE_ARCH_ARM64. - modify other comments according to Ferruh's comments. Junlong Wang (9):

[PATCH v8 5/9] net/zxdh: add msg chan enable implementation

2024-10-30 Thread Junlong Wang
Add msg chan enable implementation to support send msg to backend(device side) get infos. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 6 + drivers/net/zxdh/zxdh_ethdev.h | 12 + drivers/net/zxdh/zxdh_msg.c| 641 - drivers/net/zxdh

[PATCH v10 08/10] net/zxdh: add zxdh dev infos get ops

2024-11-04 Thread Junlong Wang
Add support for zxdh infos get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 45 +- drivers/net/zxdh/zxdh_ethdev.h | 2 ++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_ethdev.c b/drivers/net/zxdh

[v9,2/9] net/zxdh: add logging implementation

2024-11-03 Thread Junlong Wang
> Are you sure you want "offload_zxdh" prefix for each log, instead of > shorter 'zxdh' one? >> +__func__, __VA_ARGS__) >> + >> +extern int zxdh_logtype_driver; >> +#define RTE_LOGTYPE_ZXDH_DRIVER zxdh_logtype_driver >> +#define PMD_DRV_LOG(level, ...) \ >> +RTE_LOG_LINE_PREFIX(level,

[PATCH v9 0/9] net/zxdh: introduce net zxdh driver

2024-11-04 Thread Junlong Wang
> >>> net/zxdh: add zxdh get device backend infos > >>> net/zxdh: add configure zxdh intr implementation > >>> net/zxdh: add zxdh dev infos get ops > >>> net/zxdh: add zxdh dev configure ops > >>> > > > >> Hi Junlong, > > > >> I can see not all of the eth_dev_ops implemented, and datapath n

[PATCH v10 07/10] net/zxdh: add configure zxdh intr implementation

2024-11-04 Thread Junlong Wang
configure zxdh intr include risc,dtb. and release intr. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 315 + drivers/net/zxdh/zxdh_ethdev.h | 6 + drivers/net/zxdh/zxdh_msg.c| 210 ++ drivers/net/zxdh/zxdh_msg.h

[PATCH v10 03/10] net/zxdh: add zxdh device pci init implementation

2024-11-04 Thread Junlong Wang
Add device pci init implementation, to obtain PCI capability and read configuration, etc. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 44 + drivers/net/zxdh/zxdh_ethdev.h | 18 ++- drivers/net/zxdh/zxdh_pci.c| 283

[PATCH v10 10/10] net/zxdh: add zxdh dev close ops

2024-11-04 Thread Junlong Wang
provided zxdh dev close ops for resource released. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 31 +++ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/drivers/net/zxdh/zxdh_ethdev.c b/drivers/net/zxdh/zxdh_ethdev.c index 54e51a31fa

[PATCH v10 04/10] net/zxdh: add msg chan and msg hwlock init

2024-11-04 Thread Junlong Wang
Add msg channel and hwlock init implementation Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 15 +++ drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_msg.c| 170 + drivers/net/zxdh

[PATCH v10 00/10] net/zxdh: introduce net zxdh driver

2024-11-04 Thread Junlong Wang
the product link in zxdh.rst. - fix meson check use RTE_ARCH_X86_64/RTE_ARCH_ARM64. - modify other comments according to Ferruh's comments. Junlong Wang (10): net/zxdh: add zxdh ethdev pmd driver net/zxdh: add logging implementation net/zxdh: add zxdh device pci init implementation

[PATCH v10 05/10] net/zxdh: add msg chan enable implementation

2024-11-04 Thread Junlong Wang
Add msg chan enable implementation to support send msg to backend(device side) get infos. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 6 + drivers/net/zxdh/zxdh_ethdev.h | 12 + drivers/net/zxdh/zxdh_msg.c| 657 + drivers/net/zxdh

[PATCH v9 0/9] net/zxdh: introduce net zxdh driver

2024-11-03 Thread Junlong Wang
>> net/zxdh: add zxdh get device backend infos >> net/zxdh: add configure zxdh intr implementation >> net/zxdh: add zxdh dev infos get ops >> net/zxdh: add zxdh dev configure ops >> > Hi Junlong, > I can see not all of the eth_dev_ops implemented, and datapath not > implemented, so drive

Re: [v9,6/9] net/zxdh: add zxdh get device backend infos

2024-11-03 Thread Junlong Wang
>> +uint16_t zxdh_vport_to_vfid(union zxdh_virport_num v) >> +{ >> +/* epid > 4 is local soft queue. return 1192 */ >> +if (v.epid > 4) >> +return 1192; >> +if (v.vf_flag) >> +return v.epid * 256 + v.vfid; >> +else >> +return (v.epid * 8 + v.pfid) + 1152; >>

Re:[v9,4/9] net/zxdh: add msg chan and msg hwlock init

2024-11-03 Thread Junlong Wang
>> err_zxdh_init: >> +zxdh_bar_msg_chan_exit(); >> > Should 'zxdh_bar_msg_chan_exit()' called during zxdh_eth_dev_uninit()? Yes, it is. I forget it. I will put it in the zxdh_eth_dev_uninit(). Thanks.

[PATCH v9 0/9] net/zxdh: introduce net zxdh driver

2024-11-05 Thread Junlong Wang
> > > >> Hi Junlong, > > > > > > > >> I can see not all of the eth_dev_ops implemented, and datapath not > > > >> implemented, so driver is not functional right now. > > > > > > > >> What happens if you want to run testpmd with the current state of the > > > >> driver, I assume it crashes? > > > >

[PATCH v10 06/10] net/zxdh: add zxdh get device backend infos

2024-11-04 Thread Junlong Wang
Add zxdh get device backend infos, use msg chan to send msg get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_common.c | 256 + drivers/net/zxdh/zxdh_common.h | 30 drivers/net/zxdh/zxdh_ethdev.c | 37

[PATCH v10 01/10] net/zxdh: add zxdh ethdev pmd driver

2024-11-04 Thread Junlong Wang
Add basic zxdh ethdev init and register PCI probe functions Update doc files. Signed-off-by: Junlong Wang --- MAINTAINERS| 7 ++ doc/guides/nics/features/zxdh.ini | 9 +++ doc/guides/nics/index.rst | 1 + doc/guides/nics/zxdh.rst

[PATCH v10 02/10] net/zxdh: add logging implementation

2024-11-04 Thread Junlong Wang
Add zxdh logging implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 14 -- drivers/net/zxdh/zxdh_logs.h | 34 ++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 drivers/net/zxdh/zxdh_logs.h diff

Re: [v7,9/9] net/zxdh: add zxdh dev configure ops

2024-10-25 Thread Junlong Wang
Hi maintainers, If you have time, hope you can check if the zxdh driver still needs to be modified. Best regards!

Re: [PATCH v10 00/10] net/zxdh: introduce net zxdh driver

2024-11-11 Thread Junlong Wang
> >On 11/6/2024 12:40 AM, Ferruh Yigit wrote: > >> For series, > >> Acked-by: Ferruh Yigit > >> > >> Series applied to dpdk-next-net/main, thanks. > >> > > > Hi Junlong, > > > It seems we missed to mark driver as experimental, I will update it in > > next-net. > > Sorry, I'm too careless, I

Re: [v7,9/9] net/zxdh: add zxdh dev configure ops

2024-10-25 Thread Junlong Wang
Hi Ferruh, I hope this message finds you well. I have made the revisions according to your review comments, and the final version was submitted on Oct 22th. Since then, I have not received any feedback from the community. I would appreciate it if you could provide any suggestions for mod

[PATCH v9 3/9] net/zxdh: add zxdh device pci init implementation

2024-10-31 Thread Junlong Wang
Add device pci init implementation, to obtain PCI capability and read configuration, etc. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 43 + drivers/net/zxdh/zxdh_ethdev.h | 18 ++- drivers/net/zxdh/zxdh_pci.c| 278

[PATCH v9 5/9] net/zxdh: add msg chan enable implementation

2024-10-31 Thread Junlong Wang
Add msg chan enable implementation to support send msg to backend(device side) get infos. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 6 + drivers/net/zxdh/zxdh_ethdev.h | 12 + drivers/net/zxdh/zxdh_msg.c| 647 - drivers/net/zxdh

[PATCH v9 0/9] net/zxdh: introduce net zxdh driver

2024-10-31 Thread Junlong Wang
fix meson check use RTE_ARCH_X86_64/RTE_ARCH_ARM64. - modify other comments according to Ferruh's comments. Junlong Wang (9): net/zxdh: add zxdh ethdev pmd driver net/zxdh: add logging implementation net/zxdh: add zxdh device pci init implementation net/zxdh: add msg chan and msg hwlock

[PATCH v9 1/9] net/zxdh: add zxdh ethdev pmd driver

2024-10-31 Thread Junlong Wang
Add basic zxdh ethdev init and register PCI probe functions Update doc files. Signed-off-by: Junlong Wang --- MAINTAINERS| 6 ++ doc/guides/nics/features/zxdh.ini | 9 +++ doc/guides/nics/index.rst | 1 + doc/guides/nics/zxdh.rst

[PATCH v9 8/9] net/zxdh: add zxdh dev infos get ops

2024-10-31 Thread Junlong Wang
Add support for zxdh infos get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 44 +- drivers/net/zxdh/zxdh_ethdev.h | 2 ++ 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_ethdev.c b/drivers/net/zxdh

[PATCH v9 7/9] net/zxdh: add configure zxdh intr implementation

2024-10-31 Thread Junlong Wang
configure zxdh intr include risc,dtb. and release intr. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 301 + drivers/net/zxdh/zxdh_ethdev.h | 6 + drivers/net/zxdh/zxdh_msg.c| 188 drivers/net/zxdh/zxdh_msg.h| 16

[PATCH v9 6/9] net/zxdh: add zxdh get device backend infos

2024-10-31 Thread Junlong Wang
Add zxdh get device backend infos, use msg chan to send msg get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_common.c | 250 + drivers/net/zxdh/zxdh_common.h | 30 drivers/net/zxdh/zxdh_ethdev.c | 35

[PATCH v9 4/9] net/zxdh: add msg chan and msg hwlock init

2024-10-31 Thread Junlong Wang
Add msg channel and hwlock init implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 15 +++ drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_msg.c| 161 + drivers/net/zxdh

[PATCH v9 2/9] net/zxdh: add logging implementation

2024-10-31 Thread Junlong Wang
Add zxdh logging implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 15 +++-- drivers/net/zxdh/zxdh_logs.h | 40 ++ 2 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 drivers/net/zxdh/zxdh_logs.h diff

[PATCH v8 2/9] net/zxdh: add logging implementation

2024-10-30 Thread Junlong Wang
Add zxdh logging implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 15 +++-- drivers/net/zxdh/zxdh_logs.h | 40 ++ 2 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 drivers/net/zxdh/zxdh_logs.h diff

[PATCH v8 1/9] net/zxdh: add zxdh ethdev pmd driver

2024-10-30 Thread Junlong Wang
Add basic zxdh ethdev init and register PCI probe functions Update doc files. Signed-off-by: Junlong Wang --- MAINTAINERS| 6 ++ doc/guides/nics/features/zxdh.ini | 9 +++ doc/guides/nics/index.rst | 1 + doc/guides/nics/zxdh.rst

[PATCH v8 4/9] net/zxdh: add msg chan and msg hwlock init

2024-10-30 Thread Junlong Wang
Add msg channel and hwlock init implementation. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 15 +++ drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_msg.c| 161 + drivers/net/zxdh

[PATCH v8 6/9] net/zxdh: add zxdh get device backend infos

2024-10-30 Thread Junlong Wang
Add zxdh get device backend infos, use msg chan to send msg get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_common.c | 250 + drivers/net/zxdh/zxdh_common.h | 30 drivers/net/zxdh/zxdh_ethdev.c | 35

[PATCH v8 3/9] net/zxdh: add zxdh device pci init implementation

2024-10-30 Thread Junlong Wang
Add device pci init implementation, to obtain PCI capability and read configuration, etc. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 43 + drivers/net/zxdh/zxdh_ethdev.h | 21 ++- drivers/net/zxdh/zxdh_pci.c| 285

[PATCH v8 8/9] net/zxdh: add zxdh dev infos get ops

2024-10-30 Thread Junlong Wang
Add support for zxdh infos get. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 44 +- drivers/net/zxdh/zxdh_ethdev.h | 3 +++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_ethdev.c b/drivers/net/zxdh

Re: [v4] net/zxdh: Provided zxdh basic init

2024-09-23 Thread Junlong Wang
Hi, Ferruh Could you please provide feedback on the patch I submitted? Any suggestions for improvement would be appreciated. Thanks

Re: [v4] net/zxdh: Provided zxdh basic init

2024-09-25 Thread Junlong Wang
>> +if not is_linux >> +build = false >> +reason = 'only supported on Linux' >> +subdir_done() >> +endif >> + >> +if arch_subdir != 'x86' and arch_subdir ! >> = 'arm' or not dpdk_conf.get('RTE_ARCH_64') >> >Why not check 'RTE_ARCH_X86_64' and 'RTE_ARCH_ARM64'? we will fix it and use '

Re: net/zxdh: remove redundant log prefix

2024-11-06 Thread Junlong Wang
Hi, David, Sorry, my negligence caused this issue. Thank you for helping with the modifications.

Re: [PATCH v10 00/10] net/zxdh: introduce net zxdh driver

2024-11-07 Thread Junlong Wang
>On 11/6/2024 12:40 AM, Ferruh Yigit wrote: >> On 11/4/2024 11:58 AM, Junlong Wang wrote: >>> v10: >>> - >>> move zxdh under Wind River in MAINTAINERS and add myself as the maintainer >>> and add experimental into MAINTAINERS/driver file,elease

[PATCH v1 06/15] net/zxdh: dev start/stop ops implementations

2024-12-05 Thread Junlong Wang
dev start/stop implementations, start/stop the rx/tx queues. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 2 + doc/guides/nics/zxdh.rst | 2 + drivers/net/zxdh/zxdh_ethdev.c| 61 drivers/net/zxdh/zxdh_pci.c | 24 drivers

[PATCH v1 04/15] net/zxdh: port tables unint implementations

2024-12-05 Thread Junlong Wang
delete port tables in host. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 19 ++ drivers/net/zxdh/zxdh_msg.h| 1 + drivers/net/zxdh/zxdh_np.c | 113 + drivers/net/zxdh/zxdh_np.h | 9 +++ drivers/net/zxdh/zxdh_tables.c | 33

[PATCH v1 05/15] net/zxdh: rx/tx queue setup and intr enable

2024-12-05 Thread Junlong Wang
rx/tx queue setup and intr enable implementations. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 4 + drivers/net/zxdh/zxdh_queue.c | 149 + drivers/net/zxdh/zxdh_queue.h | 33 3 files changed, 186 insertions(+) diff --git a

[PATCH v1 00/15] net/zxdh: updated net zxdh driver

2024-12-05 Thread Junlong Wang
V1: - updated net zxdh driver provided insert/delete/get table code funcs. provided link/mac/vlan/promiscuous/rss/mtu ops. Junlong Wang (15): net/zxdh: zxdh np init implementation net/zxdh: zxdh np uninit implementation net/zxdh: port tables init implementations net/zxdh: port

[PATCH v1 09/15] net/zxdh: link info update, set link up/down

2024-12-05 Thread Junlong Wang
provided link info update, set link up /down, and link intr. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 4 +- doc/guides/nics/zxdh.rst | 3 + drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 13 ++ drivers/net/zxdh

[PATCH v1 02/15] net/zxdh: zxdh np uninit implementation

2024-12-05 Thread Junlong Wang
(np)network processor release resources in host. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 48 drivers/net/zxdh/zxdh_np.c | 490 + drivers/net/zxdh/zxdh_np.h | 107 +++ 3 files changed, 645 insertions(+) diff --git a

[PATCH v1 10/15] net/zxdh: mac set/add/remove ops implementations

2024-12-05 Thread Junlong Wang
provided mac set/add/remove ops. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 2 + doc/guides/nics/zxdh.rst | 2 + drivers/net/zxdh/zxdh_common.c | 24 +++ drivers/net/zxdh/zxdh_common.h | 1 + drivers/net/zxdh/zxdh_ethdev.c | 28

[PATCH v1 12/15] net/zxdh: vlan filter, vlan offload ops implementations

2024-12-05 Thread Junlong Wang
provided vlan filter, vlan offload ops. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 4 +- doc/guides/nics/zxdh.rst | 3 + drivers/net/zxdh/zxdh_ethdev.c | 40 +- drivers/net/zxdh/zxdh_ethdev_ops.c | 221 + drivers/net

[PATCH v1 07/15] net/zxdh: provided dev simple tx implementations

2024-12-05 Thread Junlong Wang
provided dev simple tx implementations. Signed-off-by: Junlong Wang --- drivers/net/zxdh/meson.build | 1 + drivers/net/zxdh/zxdh_ethdev.c | 20 ++ drivers/net/zxdh/zxdh_queue.h | 25 +++ drivers/net/zxdh/zxdh_rxtx.c | 395 + drivers/net/zxdh/zxdh_rxtx.h

[PATCH v1 11/15] net/zxdh: promiscuous/allmulticast ops implementations

2024-12-05 Thread Junlong Wang
provided promiscuous/allmulticast ops. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 4 +- doc/guides/nics/zxdh.rst | 2 + drivers/net/zxdh/zxdh_ethdev.c | 15 ++ drivers/net/zxdh/zxdh_ethdev.h | 2 + drivers/net/zxdh/zxdh_ethdev_ops.c | 132

[PATCH v1 08/15] net/zxdh: provided dev simple rx implementations

2024-12-05 Thread Junlong Wang
provided dev simple rx implementations. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 1 + doc/guides/nics/zxdh.rst | 1 + drivers/net/zxdh/zxdh_ethdev.c| 2 + drivers/net/zxdh/zxdh_rxtx.c | 311 ++ drivers/net/zxdh

[PATCH v1 13/15] net/zxdh: rss hash config/update, reta update/get

2024-12-05 Thread Junlong Wang
provided rss hash config/update, reta update/get ops. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 5 +- doc/guides/nics/zxdh.rst | 1 + drivers/net/zxdh/zxdh_ethdev.c | 43 drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh

[PATCH v1 15/15] net/zxdh: mtu update ops implementations

2024-12-05 Thread Junlong Wang
mtu update ops implementations. Signed-off-by: Junlong Wang --- doc/guides/nics/features/zxdh.ini | 3 +- doc/guides/nics/zxdh.rst | 2 + drivers/net/zxdh/zxdh_ethdev.c | 1 + drivers/net/zxdh/zxdh_ethdev_ops.c | 79 ++ drivers/net/zxdh

[PATCH v6 04/15] net/zxdh: port tables unint implementations

2024-12-25 Thread Junlong Wang
delete port tables in host. Signed-off-by: Junlong Wang --- drivers/net/zxdh/zxdh_ethdev.c | 18 ++ drivers/net/zxdh/zxdh_msg.h| 1 + drivers/net/zxdh/zxdh_np.c | 103 + drivers/net/zxdh/zxdh_np.h | 9 +++ drivers/net/zxdh/zxdh_tables.c | 33

  1   2   3   >