[PATCH v3 0/2] add support flow director ops

2025-07-02 Thread Bingbin Chen
V3: - fix several checkpatch warnings. V2: - resolve code style and gcc compilation issue. V1: - add support flow director ops. Bingbin Chen (2): net/zxdh: npsdk add flow director table ops net/zxdh: add support flow director ops doc/guides/nics/features/zxdh.ini | 16 + doc

[PATCH v2 0/2] add support flow director ops

2025-06-18 Thread Bingbin Chen
V2: - resolve code style and gcc compilation issue. V1: - add support flow director ops. Bingbin Chen (2): net/zxdh: npsdk add flow director table ops net/zxdh: add support flow director ops doc/guides/nics/features/zxdh.ini | 16 + doc/guides/nics/zxdh.rst |1

[PATCH v1 0/2] add support flow director ops

2025-06-17 Thread Bingbin Chen
V1: - add support flow director ops. Bingbin Chen (2): net/zxdh: npsdk add flow director table ops net/zxdh: add support flow director ops doc/guides/nics/features/zxdh.ini | 16 + doc/guides/nics/zxdh.rst |1 + drivers/net/zxdh/meson.build |1 + drivers/net

[PATCH v6 00/14] net/zxdh: add network processor ops

2025-04-05 Thread Bingbin Chen
will set. - replace mutex lock with spinlock. V1: - updated network processor driver. - improve insert/delete/get table code funcs. Bingbin Chen (14): net/zxdh: add network processor registers ops net/zxdh: support compatibility check net/zxdh: add agent channel net/zxdh: modify dtb

[PATCH v6 06/14] net/zxdh: add eram tables ops

2025-03-27 Thread Bingbin Chen
Implement the eram tables read and write operations by dtb channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 545 - drivers/net/zxdh/zxdh_np.h | 15 + 2 files changed, 558 insertions(+), 2 deletions(-) diff --git a/drivers/net/zxdh

[PATCH v6 04/14] net/zxdh: modify dtb queue ops

2025-03-26 Thread Bingbin Chen
Modify the implementation of the dtb queue request and release interfaces, and add the implementation of queue initialization. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 491 + drivers/net/zxdh/zxdh_np.h | 97 2 files changed, 482

[PATCH v6 07/14] net/zxdh: get flow tables resources

2025-03-22 Thread Bingbin Chen
Implement the flow tables resources get operation by agent channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_ethdev.c | 13 + drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_np.c | 492 + drivers/net/zxdh/zxdh_np.h | 282

[PATCH v6 11/14] net/zxdh: get hash table entry result

2025-03-21 Thread Bingbin Chen
Implement hash tables get operation by dtb channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 482 - drivers/net/zxdh/zxdh_np.h | 7 + 2 files changed, 488 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_np.c b/drivers

[PATCH v6 03/14] net/zxdh: add agent channel

2025-03-21 Thread Bingbin Chen
Add agent channel to access (np)network processor registers that are not mapped by PCIE. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 315 - drivers/net/zxdh/zxdh_np.h | 53 +++ 2 files changed, 367 insertions(+), 1 deletion(-) diff

[PATCH v6 02/14] net/zxdh: support compatibility check

2025-03-21 Thread Bingbin Chen
Add compatibility check between (np)network processor software and firmware. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 93 ++ drivers/net/zxdh/zxdh_np.h | 12 + 2 files changed, 105 insertions(+) diff --git a/drivers/net/zxdh/zxdh_np.c

Re: [PATCH v5 14/14] net/zxdh: fix debugging errors

2025-03-20 Thread Bingbin Chen
>> +struct zxdh_ifc_hw_np_stats_bits { >> +uint8_t rx_unicast_pkts[0x40]; >> +uint8_t tx_unicast_pkts[0x40]; >> +uint8_t rx_unicast_bytes[0x40]; >> +uint8_t tx_unicast_bytes[0x40]; >> +uint8_t rx_multicast_pkts[0x40]; >> +uint8_t tx_multicast_pkts[0x40]; >> +uint

[PATCH v5 02/14] net/zxdh: support compatibility check

2025-03-19 Thread Bingbin Chen
Add compatibility check between (np)network processor software and firmware. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 93 ++ drivers/net/zxdh/zxdh_np.h | 12 + 2 files changed, 105 insertions(+) diff --git a/drivers/net/zxdh/zxdh_np.c

[PATCH v5 07/14] net/zxdh: get flow tables resources

2025-03-19 Thread Bingbin Chen
Implement the flow tables resources get operation by agent channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_ethdev.c | 13 + drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_np.c | 492 + drivers/net/zxdh/zxdh_np.h | 282

[PATCH v5 11/14] net/zxdh: get hash table entry result

2025-03-19 Thread Bingbin Chen
Implement hash tables get operation by dtb channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 482 - drivers/net/zxdh/zxdh_np.h | 7 + 2 files changed, 488 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_np.c b/drivers

[PATCH v5 00/14] net/zxdh: add network processor ops

2025-03-19 Thread Bingbin Chen
table code funcs. Bingbin Chen (14): net/zxdh: add network processor registers ops net/zxdh: support compatibility check net/zxdh: add agent channel net/zxdh: modify dtb queue ops net/zxdh: add tables dump address ops net/zxdh: add eram tables ops net/zxdh: get flow tables resources

Re: [v5,00/14] net/zxdh: add network processor ops

2025-03-19 Thread Bingbin Chen
Hi, maintainer: This submission has made modifications based on the comments. After this round of submission, the basic functions of the zxdh driver will be complete. Subsequent merges will mainly focus on FD function supplements and bug fixes. Thanks.

[PATCH v5 04/14] net/zxdh: modify dtb queue ops

2025-03-19 Thread Bingbin Chen
Modify the implementation of the dtb queue request and release interfaces, and add the implementation of queue initialization. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 491 + drivers/net/zxdh/zxdh_np.h | 97 2 files changed, 482

[PATCH v5 06/14] net/zxdh: add eram tables ops

2025-03-19 Thread Bingbin Chen
Implement the eram tables read and write operations by dtb channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 545 - drivers/net/zxdh/zxdh_np.h | 15 + 2 files changed, 558 insertions(+), 2 deletions(-) diff --git a/drivers/net/zxdh

[PATCH v5 03/14] net/zxdh: add agent channel

2025-03-19 Thread Bingbin Chen
Add agent channel to access (np)network processor registers that are not mapped by PCIE. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 315 - drivers/net/zxdh/zxdh_np.h | 53 +++ 2 files changed, 367 insertions(+), 1 deletion(-) diff

[PATCH v4 00/14] net/zxdh: add network processor ops

2025-03-17 Thread Bingbin Chen
style and github-robot build issue. - eliminate commit warning. - remove unnecessary initialization, which first usage will set. - replace mutex lock with spinlock. V1: - updated network processor driver. - improve insert/delete/get table code funcs. Bingbin Chen (14): net/zxdh: add

[PATCH v4 07/14] net/zxdh: get flow tables resources

2025-03-17 Thread Bingbin Chen
Implement the flow tables resources get operation by agent channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_ethdev.c | 13 + drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_np.c | 492 + drivers/net/zxdh/zxdh_np.h | 282

[PATCH v4 11/14] net/zxdh: get hash table entry result

2025-03-17 Thread Bingbin Chen
Implement hash tables get operation by dtb channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 482 - drivers/net/zxdh/zxdh_np.h | 7 + 2 files changed, 488 insertions(+), 1 deletion(-) diff --git a/drivers/net/zxdh/zxdh_np.c b/drivers

[PATCH v4 04/14] net/zxdh: modify dtb queue ops

2025-03-17 Thread Bingbin Chen
Modify the implementation of the dtb queue request and release interfaces, and add the implementation of queue initialization. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 491 + drivers/net/zxdh/zxdh_np.h | 97 2 files changed, 482

[PATCH v4 06/14] net/zxdh: add eram tables ops

2025-03-17 Thread Bingbin Chen
Implement the eram tables read and write operations by dtb channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 545 - drivers/net/zxdh/zxdh_np.h | 15 + 2 files changed, 558 insertions(+), 2 deletions(-) diff --git a/drivers/net/zxdh

[PATCH v4 03/14] net/zxdh: add agent channel

2025-03-17 Thread Bingbin Chen
Add agent channel to access (np)network processor registers that are not mapped by PCIE. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 315 - drivers/net/zxdh/zxdh_np.h | 53 +++ 2 files changed, 367 insertions(+), 1 deletion(-) diff

[PATCH v4 02/14] net/zxdh: support compatibility check

2025-03-17 Thread Bingbin Chen
Add compatibility check between (np)network processor software and firmware. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 93 ++ drivers/net/zxdh/zxdh_np.h | 12 + 2 files changed, 105 insertions(+) diff --git a/drivers/net/zxdh/zxdh_np.c

[PATCH v3 11/14] net/zxdh: get hash table entry result

2025-03-05 Thread Bingbin Chen
Implement hash tables get operation by dtb channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 479 + drivers/net/zxdh/zxdh_np.h | 7 + 2 files changed, 486 insertions(+) diff --git a/drivers/net/zxdh/zxdh_np.c b/drivers/net/zxdh

[PATCH v3 14/14] net/zxdh: modify parameters of the plcr function

2025-03-05 Thread Bingbin Chen
Add dev_id to the parameter of plcr function to support multi card configuration. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_msg.c | 3 +- drivers/net/zxdh/zxdh_mtr.c | 8 +- drivers/net/zxdh/zxdh_np.c | 251 +++- drivers/net/zxdh/zxdh_np.h | 8

[PATCH v3 07/14] net/zxdh: get flow tables resources

2025-03-05 Thread Bingbin Chen
Implement the flow tables resources get operation by agent channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_ethdev.c | 13 + drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_np.c | 490 + drivers/net/zxdh/zxdh_np.h | 337

[PATCH v3 03/14] net/zxdh: add agent channel

2025-03-05 Thread Bingbin Chen
Add agent channel to access (np)network processor registers that are not mapped by PCIE. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 449 +++-- drivers/net/zxdh/zxdh_np.h | 63 +- 2 files changed, 442 insertions(+), 70 deletions(-) diff

[PATCH v3 02/14] net/zxdh: support compatibility check

2025-03-05 Thread Bingbin Chen
Add compatibility check between (np)network processor software and firmware. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 93 ++ drivers/net/zxdh/zxdh_np.h | 11 + 2 files changed, 104 insertions(+) diff --git a/drivers/net/zxdh/zxdh_np.c

[PATCH v3 04/14] net/zxdh: modify dtb queue ops

2025-03-05 Thread Bingbin Chen
Modify the implementation of the dtb queue request and release interfaces, and add the implementation of queue initialization. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 494 + drivers/net/zxdh/zxdh_np.h | 97 2 files changed, 483

[PATCH v3 00/14] net/zxdh: add network processor ops

2025-03-05 Thread Bingbin Chen
. - replace mutex lock with spinlock. V1: - updated network processor driver. - improve insert/delete/get table code funcs. Bingbin Chen (14): net/zxdh: add network processor registers ops net/zxdh: support compatibility check net/zxdh: add agent channel net/zxdh: modify dtb queue ops net/zxdh

[PATCH v2 07/14] net/zxdh: get flow tables resources

2025-02-22 Thread Bingbin Chen
Implement the flow tables resources get operation by agent channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_ethdev.c | 18 ++ drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_np.c | 490 + drivers/net/zxdh/zxdh_np.h | 336

[PATCH v2 00/14] add network processor ops

2025-02-22 Thread Bingbin Chen
V2: - resolve code style and github-robot build issue. - eliminate commit warning. - remove unnecessary initialization, which first usage will set. - replace mutex lock with spinlock. V1: - updated network processor driver. - improve insert/delete/get table code funcs. Bingbin Chen

[PATCH v2 14/14] net/zxdh: clean stat values

2025-02-21 Thread Bingbin Chen
Implement stat values clean operation by agent channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_ethdev_ops.c | 4 + drivers/net/zxdh/zxdh_np.c | 302 + drivers/net/zxdh/zxdh_np.h | 23 ++- 3 files changed, 328 insertions(+), 1

[PATCH v2 11/14] net/zxdh: get hash table entry result

2025-02-21 Thread Bingbin Chen
Implement hash tables get operation by dtb channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 479 + drivers/net/zxdh/zxdh_np.h | 7 + 2 files changed, 486 insertions(+) diff --git a/drivers/net/zxdh/zxdh_np.c b/drivers/net/zxdh

[PATCH v2 02/14] net/zxdh: support compatibility check

2025-02-21 Thread Bingbin Chen
Add compatibility check between (np)network processor software and firmware. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 94 ++ drivers/net/zxdh/zxdh_np.h | 12 + 2 files changed, 106 insertions(+) diff --git a/drivers/net/zxdh/zxdh_np.c

[PATCH v2 04/14] net/zxdh: modify dtb queue ops

2025-02-21 Thread Bingbin Chen
Modify the implementation of the dtb queue request and release interfaces, and add the implementation of queue initialization. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 495 + drivers/net/zxdh/zxdh_np.h | 97 2 files changed, 485

[PATCH v2 03/14] net/zxdh: add agent channel

2025-02-21 Thread Bingbin Chen
Add agent channel to access (np)network processor registers that are not mapped by PCIE. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 386 - drivers/net/zxdh/zxdh_np.h | 78 2 files changed, 463 insertions(+), 1 deletion(-) diff

[PATCH v1 14/14] net/zxdh: clean stat values

2025-02-09 Thread Bingbin Chen
Implement stat values clean operation by agent channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_ethdev_ops.c | 4 + drivers/net/zxdh/zxdh_np.c | 344 + drivers/net/zxdh/zxdh_np.h | 23 +- 3 files changed, 370 insertions(+), 1 deletion

[PATCH v1 11/14] net/zxdh: get hash table entry result

2025-02-09 Thread Bingbin Chen
Implement hash tables get operation by dtb channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 491 + drivers/net/zxdh/zxdh_np.h | 7 + 2 files changed, 498 insertions(+) diff --git a/drivers/net/zxdh/zxdh_np.c b/drivers/net/zxdh

[PATCH v1 07/14] net/zxdh: get flow tables resources

2025-02-09 Thread Bingbin Chen
Implement the flow tables resources get operation by agent channel. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_ethdev.c | 18 ++ drivers/net/zxdh/zxdh_ethdev.h | 1 + drivers/net/zxdh/zxdh_np.c | 522 + drivers/net/zxdh/zxdh_np.h | 338

[PATCH v1 04/14] net/zxdh: modify dtb queue ops

2025-02-09 Thread Bingbin Chen
Modify the implementation of the dtb queue request and release interfaces, and add the implementation of queue initialization. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 513 + drivers/net/zxdh/zxdh_np.h | 97 +++ 2 files changed, 505

[PATCH v1 03/14] net/zxdh: add agent channel

2025-02-09 Thread Bingbin Chen
Add agent channel to access (np)network processor registers that are not mapped by PCIE. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 481 - drivers/net/zxdh/zxdh_np.h | 77 ++ 2 files changed, 557 insertions(+), 1 deletion(-) diff --git

[PATCH v1 02/14] net/zxdh: support compatibility check

2025-02-09 Thread Bingbin Chen
Add compatibility check between (np)network processor software and firmware. Signed-off-by: Bingbin Chen --- drivers/net/zxdh/zxdh_np.c | 93 ++ drivers/net/zxdh/zxdh_np.h | 12 + 2 files changed, 105 insertions(+) diff --git a/drivers/net/zxdh/zxdh_np.c