[PATCH v8 0/5] NXP DPAA2 driver enhancements and fixes

2025-07-02 Thread Gagandeep Singh
statistics and speed capabilities patches. - added release notes V7-Changes: - Update taildrop packets drop logic. V8-Changes: - Remove DPBP depletion API patch Gagandeep Singh (2): net/dpaa2: fix shaper rate net/dpaa2: enable software taildrop for ordered queues Ioana Ciornei (1): net

[PATCH v8 5/5] net/dpaa2: enable software taildrop for ordered queues

2025-07-02 Thread Gagandeep Singh
This patch adds support for software taildrop on ordered queues in the DPAA2 driver. It also enables congestion notification by default on traffic management (TM) queues, which is a prerequisite for software taildrop functionality. Signed-off-by: Gagandeep Singh --- doc/guides/rel_notes

[PATCH v8 4/5] net/dpaa2: retrieve DPNI API version at init time

2025-07-02 Thread Gagandeep Singh
From: Ioana Ciornei The list of availabla DPNI APIs depends on the DPNI API version available on a system. Retrieve the API version in the init stage and store it in the private structure so that it can be used at a later stage. Signed-off-by: Ioana Ciornei --- .mailmap

[PATCH v8 3/5] mempool/dpaa2: use unified VA to IOVA conversion

2025-07-02 Thread Gagandeep Singh
From: Jun Yang Use DPAA2_VADDR_TO_IOVA to convert va to iova for both VA and PA modes. Signed-off-by: Jun Yang --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 222 +++ 1 file changed, 142 insertions(+), 80 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c

[PATCH v8 2/5] net/dpaa2: fix shaper rate

2025-07-02 Thread Gagandeep Singh
This patch fixes the shaper rate by configuring the user given rate in bytes. Earlier driver was considering the user given rate value in bits. Fixes: ac624068ee25 ("net/dpaa2: support traffic management") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa

[PATCH v8 1/5] net/dpaa2: fix issue of extract buffer preparation

2025-07-02 Thread Gagandeep Singh
From: Jun Yang 1) The max size of extract buffer should be size of "struct dpni_ext_set_rx_tc_dist"(488), which is greater than 256. 2) dpkg_prepare_key_cfg is responsible to clear extract buffer before preparing. Fixes: 25d0ae624245 ("net/dpaa2: check IOVA before sending MC command") Cc:

RE: [PATCH v7 3/6] bus/fslmc: add DPBP APIs for setting depletion thresholds

2025-07-02 Thread Gagandeep Singh
Hi, > -Original Message- > From: Stephen Hemminger > Sent: Tuesday, July 1, 2025 7:35 PM > To: Gagandeep Singh > Cc: dev@dpdk.org; Hemant Agrawal ; Sachin > Saxena ; Vanshika Shukla > > Subject: Re: [PATCH v7 3/6] bus/fslmc: add DPBP APIs for setting depletion

[PATCH v7 6/6] net/dpaa2: enable software taildrop for ordered queues

2025-06-30 Thread Gagandeep Singh
This patch adds support for software taildrop on ordered queues in the DPAA2 driver. It also enables congestion notification by default on traffic management (TM) queues, which is a prerequisite for software taildrop functionality. Signed-off-by: Gagandeep Singh --- doc/guides/rel_notes

[PATCH v7 4/6] mempool/dpaa2: use unified VA to IOVA conversion

2025-06-30 Thread Gagandeep Singh
From: Jun Yang Use DPAA2_VADDR_TO_IOVA to convert va to iova for both VA and PA modes. Signed-off-by: Jun Yang --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 222 +++ 1 file changed, 142 insertions(+), 80 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c

[PATCH v7 5/6] net/dpaa2: retrieve DPNI API version at init time

2025-06-30 Thread Gagandeep Singh
From: Ioana Ciornei The list of availabla DPNI APIs depends on the DPNI API version available on a system. Retrieve the API version in the init stage and store it in the private structure so that it can be used at a later stage. Signed-off-by: Ioana Ciornei --- .mailmap

[PATCH v7 1/6] net/dpaa2: fix issue of extract buffer preparation

2025-06-30 Thread Gagandeep Singh
From: Jun Yang 1) The max size of extract buffer should be size of "struct dpni_ext_set_rx_tc_dist"(488), which is greater than 256. 2) dpkg_prepare_key_cfg is responsible to clear extract buffer before preparing. Fixes: 25d0ae624245 ("net/dpaa2: check IOVA before sending MC command") Cc:

[PATCH v7 3/6] bus/fslmc: add DPBP APIs for setting depletion thresholds

2025-06-30 Thread Gagandeep Singh
From: Vanshika Shukla This patch adds DPBP APIs for setting and getting the depletion/surplus thresholds for controlling pause frame generation. By default, depletion_entry is set as 128 by MC. This API would help user configure the buffer in depletion state as per requirement. Signed-off-by: V

[PATCH v7 2/6] net/dpaa2: fix shaper rate

2025-06-30 Thread Gagandeep Singh
This patch fixes the shaper rate by configuring the user given rate in bytes. Earlier driver was considering the user given rate value in bits. Fixes: ac624068ee25 ("net/dpaa2: support traffic management") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa

[PATCH v7 0/6] NXP DPAA2 driver enhancements and fixes

2025-06-30 Thread Gagandeep Singh
statistics and speed capabilities patches. - added release notes V7-Changes: - Update taildrop packets drop logic. Gagandeep Singh (2): net/dpaa2: fix shaper rate net/dpaa2: enable software taildrop for ordered queues Ioana Ciornei (1): net/dpaa2: retrieve DPNI API version at init time

RE: [PATCH v6 6/6] net/dpaa2: enable software taildrop for ordered queues

2025-06-30 Thread Gagandeep Singh
Hi, > -Original Message- > From: Stephen Hemminger > Sent: Monday, June 30, 2025 8:42 PM > To: Gagandeep Singh > Cc: dev@dpdk.org; Hemant Agrawal ; Sachin > Saxena > Subject: Re: [PATCH v6 6/6] net/dpaa2: enable software taildrop for ordered > queues > >

[PATCH v6 2/6] net/dpaa2: fix shaper rate

2025-06-30 Thread Gagandeep Singh
This patch fixes the shaper rate by configuring the user given rate in bytes. Earlier driver was considering the user given rate value in bits. Fixes: ac624068ee25 ("net/dpaa2: support traffic management") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa

[PATCH v6 4/6] mempool/dpaa2: use unified VA to IOVA conversion

2025-06-30 Thread Gagandeep Singh
From: Jun Yang Use DPAA2_VADDR_TO_IOVA to convert va to iova for both VA and PA modes. Signed-off-by: Jun Yang --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 222 +++ 1 file changed, 142 insertions(+), 80 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c

[PATCH v6 6/6] net/dpaa2: enable software taildrop for ordered queues

2025-06-30 Thread Gagandeep Singh
This patch adds support for software taildrop on ordered queues in the DPAA2 driver. It also enables congestion notification by default on traffic management (TM) queues, which is a prerequisite for software taildrop functionality. Signed-off-by: Gagandeep Singh --- doc/guides/rel_notes

[PATCH v6 0/6] NXP DPAA2 driver enhancements and fixes

2025-06-30 Thread Gagandeep Singh
statistics and speed capabilities patches. - added release notes Gagandeep Singh (2): net/dpaa2: fix shaper rate net/dpaa2: enable software taildrop for ordered queues Ioana Ciornei (1): net/dpaa2: retrieve DPNI API version at init time Jun Yang (2): net/dpaa2: fix issue of extract

[PATCH v6 1/6] net/dpaa2: fix issue of extract buffer preparation

2025-06-30 Thread Gagandeep Singh
From: Jun Yang 1) The max size of extract buffer should be size of "struct dpni_ext_set_rx_tc_dist"(488), which is greater than 256. 2) dpkg_prepare_key_cfg is responsible to clear extract buffer before preparing. Fixes: 25d0ae624245 ("net/dpaa2: check IOVA before sending MC command") Cc:

Re: [PATCH 00/11] NXP DPAA2 driver enhancements and fixes

2025-06-30 Thread Gagandeep Singh
release. Please let me know if any further modifications are required. Regards, Gagan From: Stephen Hemminger Sent: Sunday, June 29, 2025 10:55 PM To: Gagandeep Singh Cc: dev@dpdk.org ; Hemant Agrawal Subject: Re: [PATCH 00/11] NXP DPAA2 driver enhancements and

[PATCH v6 5/6] net/dpaa2: retrieve DPNI API version at init time

2025-06-30 Thread Gagandeep Singh
From: Ioana Ciornei The list of availabla DPNI APIs depends on the DPNI API version available on a system. Retrieve the API version in the init stage and store it in the private structure so that it can be used at a later stage. Signed-off-by: Ioana Ciornei --- .mailmap

[PATCH v6 3/6] bus/fslmc: add DPBP APIs for setting depletion thresholds

2025-06-30 Thread Gagandeep Singh
From: Vanshika Shukla This patch adds DPBP APIs for setting and getting the depletion/surplus thresholds for controlling pause frame generation. By default, depletion_entry is set as 128 by MC. This API would help user configure the buffer in depletion state as per requirement. Signed-off-by: V

[PATCH v5 01/11] net/dpaa2: fix issue of extract buffer preparation

2025-06-12 Thread Gagandeep Singh
From: Jun Yang 1) The max size of extract buffer should be size of "struct dpni_ext_set_rx_tc_dist"(488), which is greater than 256. 2) dpkg_prepare_key_cfg is responsible to clear extract buffer before preparing. Fixes: 25d0ae624245 ("net/dpaa2: check IOVA before sending MC command") Cc:

[PATCH v5 10/11] net/dpaa2: setup the speed cap based on the actual MAC

2025-06-12 Thread Gagandeep Singh
From: Ioana Ciornei Previously, the speed_capa field from struct rte_eth_dev_info was populated with all possible speeds that the MACs on the system could sustain. What this meant is that the bitmap of speed capability did not reflect what the MAC could do in the current circumstance. Fix this b

[PATCH v5 11/11] net/dpaa2: enable software taildrop for ordered queues

2025-06-12 Thread Gagandeep Singh
This patch adds support for software taildrop on ordered queues in the DPAA2 driver. It also enables congestion notification by default on traffic management (TM) queues, which is a prerequisite for software taildrop functionality. Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2

[PATCH v5 07/11] net/dpaa2: support dpmac Tx stats

2025-06-12 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/mc/fsl_dpmac.h | 48 +++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v5 09/11] net/dpaa2: retrieve DPNI API version at init time

2025-06-12 Thread Gagandeep Singh
From: Ioana Ciornei The list of availabla DPNI APIs depends on the DPNI API version available on a system. Retrieve the API version in the init stage and store it in the private structure so that it can be used at a later stage. Signed-off-by: Ioana Ciornei --- .mailmap

[PATCH v5 08/11] net/dpaa2: support dpmac Tx stats in xstats

2025-06-12 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c | 20 +++- drivers/net/dpaa2/dpaa2_ethdev.h | 4 ++-- 2 files changed, 21 inserti

[PATCH v5 05/11] net/dpaa2: add dpmac MC header file

2025-06-12 Thread Gagandeep Singh
From: Apeksha Gupta This patch upgrades the MC firmware release API compatibility to 10.39.0. Added mc/fsl_dpmac.h file. Signed-off-by: Apeksha Gupta --- drivers/net/dpaa2/mc/fsl_dpmac.h | 465 +++ 1 file changed, 465 insertions(+) create mode 100644 drivers/net/dp

[PATCH v5 06/11] net/dpaa2: support dpmac counters in stats

2025-06-12 Thread Gagandeep Singh
From: Apeksha Gupta Add support of dpmac counters in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c| 118 ++-- drivers/net/dpaa2/dpaa2_ethdev.h| 12 +++ drivers/net/dpaa2/mc/dpni.c | 29 ++-

[PATCH v5 04/11] mempool/dpaa2: use unified VA to IOVA conversion

2025-06-12 Thread Gagandeep Singh
From: Jun Yang Use DPAA2_VADDR_TO_IOVA to convert va to iova for both VA and PA modes. Signed-off-by: Jun Yang --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 222 +++ 1 file changed, 142 insertions(+), 80 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c

[PATCH v5 02/11] net/dpaa2: fix shaper rate

2025-06-12 Thread Gagandeep Singh
This patch fixes the shaper rate by configuring the user given rate in bytes. Earlier driver was considering the user given rate value in bits. Fixes: ac624068ee25 ("net/dpaa2: support traffic management") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa

[PATCH v5 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds

2025-06-12 Thread Gagandeep Singh
From: Vanshika Shukla This patch adds DPBP APIs for setting and getting the depletion/surplus thresholds for controlling pause frame generation. By default, depletion_entry is set as 128 by MC. This API would help user configure the buffer in depletion state as per requirement. Signed-off-by: V

[PATCH v5 00/11] NXP DPAA2 driver enhancements and fixes

2025-06-12 Thread Gagandeep Singh
/dpaa2: add dpmac MC header file net/dpaa2: support dpmac counters in stats net/dpaa2: support dpmac Tx stats net/dpaa2: support dpmac Tx stats in xstats Gagandeep Singh (2): net/dpaa2: fix shaper rate net/dpaa2: enable software taildrop for ordered queues Ioana Ciornei (2): net/dpaa2

[PATCH v4 01/11] net/dpaa2: fix issue of extract buffer preparation

2025-06-11 Thread Gagandeep Singh
From: Jun Yang 1) The max size of extract buffer should be size of "struct dpni_ext_set_rx_tc_dist"(488), which is greater than 256. 2) dpkg_prepare_key_cfg is responsible to clear extract buffer before preparing. Fixes: 25d0ae624245 ("net/dpaa2: check IOVA before sending MC command") Cc:

[PATCH v4 06/11] net/dpaa2: support dpmac counters in stats

2025-06-11 Thread Gagandeep Singh
From: Apeksha Gupta Add support of dpmac counters in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c| 118 ++-- drivers/net/dpaa2/dpaa2_ethdev.h| 12 +++ drivers/net/dpaa2/mc/dpni.c | 29 ++-

[PATCH v4 11/11] net/dpaa2: enable software taildrop for ordered queues

2025-06-11 Thread Gagandeep Singh
This patch adds support for software taildrop on ordered queues in the DPAA2 driver. It also enables congestion notification by default on traffic management (TM) queues, which is a prerequisite for software taildrop functionality. Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2

[PATCH v4 09/11] net/dpaa2: retrieve DPNI API version at init time

2025-06-11 Thread Gagandeep Singh
From: Ioana Ciornei The list of availabla DPNI APIs depends on the DPNI API version available on a system. Retrieve the API version in the init stage and store it in the private structure so that it can be used at a later stage. Signed-off-by: Ioana Ciornei --- .mailmap

[PATCH v4 10/11] net/dpaa2: setup the speed cap based on the actual MAC

2025-06-11 Thread Gagandeep Singh
From: Ioana Ciornei Previously, the speed_capa field from struct rte_eth_dev_info was populated with all possible speeds that the MACs on the system could sustain. What this meant is that the bitmap of speed capability did not reflect what the MAC could do in the current circumstance. Fix this b

[PATCH v4 08/11] net/dpaa2: support dpmac Tx stats in xstats

2025-06-11 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c | 20 +++- drivers/net/dpaa2/dpaa2_ethdev.h | 4 ++-- 2 files changed, 21 inserti

[PATCH v4 07/11] net/dpaa2: support dpmac Tx stats

2025-06-11 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/mc/fsl_dpmac.h | 48 +++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v4 05/11] net/dpaa2: add dpmac MC header file

2025-06-11 Thread Gagandeep Singh
From: Apeksha Gupta This patch upgrades the MC firmware release API compatibility to 10.39.0. Added mc/fsl_dpmac.h file. Signed-off-by: Apeksha Gupta --- drivers/net/dpaa2/mc/fsl_dpmac.h | 465 +++ 1 file changed, 465 insertions(+) create mode 100644 drivers/net/dp

[PATCH v4 04/11] mempool/dpaa2: use unified VA to IOVA conversion

2025-06-11 Thread Gagandeep Singh
From: Jun Yang Use DPAA2_VADDR_TO_IOVA to convert va to iova for both VA and PA modes. Signed-off-by: Jun Yang --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 222 +++ 1 file changed, 142 insertions(+), 80 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c

[PATCH v4 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds

2025-06-11 Thread Gagandeep Singh
From: Vanshika Shukla This patch adds DPBP APIs for setting and getting the depletion/surplus thresholds for controlling pause frame generation. By default, depletion_entry is set as 128 by MC. This API would help user configure the buffer in depletion state as per requirement. Signed-off-by: V

[PATCH v4 02/11] net/dpaa2: fix shaper rate

2025-06-11 Thread Gagandeep Singh
This patch fixes the shaper rate by configuring the user given rate in bytes. Earlier driver was considering the user given rate value in bits. Fixes: ac624068ee25 ("net/dpaa2: support traffic management") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa

[PATCH v4 00/11] NXP DPAA2 driver enhancements and fixes

2025-06-11 Thread Gagandeep Singh
net/dpaa2: support dpmac counters in stats net/dpaa2: support dpmac Tx stats net/dpaa2: support dpmac Tx stats in xstats Gagandeep Singh (2): net/dpaa2: fix shaper rate net/dpaa2: enable software taildrop for ordered queues Ioana Ciornei (2): net/dpaa2: retrieve DPNI API version at init

[PATCH v3 11/11] net/dpaa2: enable software taildrop for ordered queues

2025-06-08 Thread Gagandeep Singh
This patch adds support for software taildrop on ordered queues in the DPAA2 driver. It also enables congestion notification by default on traffic management (TM) queues, which is a prerequisite for software taildrop functionality. Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2

[PATCH v3 02/11] net/dpaa2: fix shaper rate

2025-06-08 Thread Gagandeep Singh
This patch fixes the shaper rate by configuring the user given rate in bytes. Earlier driver was considering the user given rate value in bits. Fixes: ac624068ee25 ("net/dpaa2: support traffic management") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa

[PATCH v3 09/11] net/dpaa2: retrieve DPNI API version at init time

2025-06-08 Thread Gagandeep Singh
From: Ioana Ciornei The list of availabla DPNI APIs depends on the DPNI API version available on a system. Retrieve the API version in the init stage and store it in the private structure so that it can be used at a later stage. Signed-off-by: Ioana Ciornei --- .mailmap

[PATCH v3 08/11] net/dpaa2: support dpmac Tx stats in xstats

2025-06-08 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c | 20 +++- drivers/net/dpaa2/dpaa2_ethdev.h | 4 ++-- 2 files changed, 21 inserti

[PATCH v3 10/11] net/dpaa2: setup the speed cap based on the actual MAC

2025-06-08 Thread Gagandeep Singh
From: Ioana Ciornei Previously, the speed_capa field from struct rte_eth_dev_info was populated with all possible speeds that the MACs on the system could sustain. What this meant is that the bitmap of speed capability did not reflect what the MAC could do in the current circumstance. Fix this b

[PATCH v3 06/11] net/dpaa2: support dpmac counters in stats

2025-06-08 Thread Gagandeep Singh
From: Apeksha Gupta Add support of dpmac counters in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c| 118 ++-- drivers/net/dpaa2/dpaa2_ethdev.h| 12 +++ drivers/net/dpaa2/mc/dpni.c | 29 ++-

[PATCH v3 04/11] mempool/dpaa2: use unified VA to IOVA conversion

2025-06-08 Thread Gagandeep Singh
From: Jun Yang Use DPAA2_VADDR_TO_IOVA to convert va to iova for both VA and PA modes. Signed-off-by: Jun Yang --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 222 +++ 1 file changed, 142 insertions(+), 80 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c

[PATCH v3 07/11] net/dpaa2: support dpmac Tx stats

2025-06-08 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/mc/fsl_dpmac.h | 48 +++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v3 05/11] net/dpaa2: add dpmac MC header file

2025-06-08 Thread Gagandeep Singh
From: Apeksha Gupta This patch upgrades the MC firmware release API compatibility to 10.39.0. Added mc/fsl_dpmac.h file. Signed-off-by: Apeksha Gupta --- drivers/net/dpaa2/mc/fsl_dpmac.h | 465 +++ 1 file changed, 465 insertions(+) create mode 100644 drivers/net/dp

[PATCH v3 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds

2025-06-08 Thread Gagandeep Singh
From: Vanshika Shukla This patch adds DPBP APIs for setting and getting the depletion/surplus thresholds for controlling pause frame generation. By default, depletion_entry is set as 128 by MC. This API would help user configure the buffer in depletion state as per requirement. Signed-off-by: V

[PATCH v3 01/11] net/dpaa2: fix issue of extract buffer preparation

2025-06-08 Thread Gagandeep Singh
From: Jun Yang 1) The max size of extract buffer should be size of "struct dpni_ext_set_rx_tc_dist"(488), which is greater than 256. 2) dpkg_prepare_key_cfg is responsible to clear extract buffer before preparing. Fixes: 25d0ae624245 ("net/dpaa2: check IOVA before sending MC command") Cc:

[PATCH v3 00/11] NXP DPAA2 driver enhancements and fixes

2025-06-08 Thread Gagandeep Singh
: support dpmac Tx stats net/dpaa2: support dpmac Tx stats in xstats Gagandeep Singh (2): net/dpaa2: fix shaper rate net/dpaa2: enable software taildrop for ordered queues Ioana Ciornei (2): net/dpaa2: retrieve DPNI API version at init time net/dpaa2: setup the speed cap based on the actual

[PATCH v2 11/11] net/dpaa2: enable software taildrop for ordered queues

2025-06-02 Thread Gagandeep Singh
This patch adds support for software taildrop on ordered queues in the DPAA2 driver. It also enables congestion notification by default on traffic management (TM) queues, which is a prerequisite for software taildrop functionality. Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2

[PATCH v2 04/11] mempool/dpaa2: use unified VA to IOVA conversion

2025-06-02 Thread Gagandeep Singh
From: Jun Yang Use DPAA2_VADDR_TO_IOVA to convert va to iova for both VA and PA modes. Signed-off-by: Jun Yang --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 222 +++ 1 file changed, 142 insertions(+), 80 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c

[PATCH v2 05/11] net/dpaa2: add dpmac MC header file

2025-06-02 Thread Gagandeep Singh
From: Apeksha Gupta This patch upgrades the MC firmware release API compatibility to 10.39.0. Added mc/fsl_dpmac.h file. Signed-off-by: Apeksha Gupta --- drivers/net/dpaa2/mc/fsl_dpmac.h | 490 +++ 1 file changed, 490 insertions(+) create mode 100644 drivers/net/dp

[PATCH v2 09/11] net/dpaa2: retrieve DPNI API version at init time

2025-06-02 Thread Gagandeep Singh
From: Ioana Ciornei The list of availabla DPNI APIs depends on the DPNI API version available on a system. Retrieve the API version in the init stage and store it in the private structure so that it can be used at a later stage. Signed-off-by: Ioana Ciornei --- .mailmap

[PATCH v2 10/11] net/dpaa2: setup the speed cap based on the actual MAC

2025-06-02 Thread Gagandeep Singh
From: Ioana Ciornei Previously, the speed_capa field from struct rte_eth_dev_info was populated with all possible speeds that the MACs on the system could sustain. What this meant is that the bitmap of speed capability did not reflect what the MAC could do in the current circumstance. Fix this b

[PATCH v2 08/11] net/dpaa2: support dpmac Tx stats in xstats

2025-06-02 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c | 20 +++- drivers/net/dpaa2/dpaa2_ethdev.h | 4 ++-- 2 files changed, 21 inserti

[PATCH v2 07/11] net/dpaa2: support dpmac Tx stats

2025-06-02 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/mc/fsl_dpmac.h | 50 ++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH v2 06/11] net/dpaa2: support dpmac counters in stats

2025-06-02 Thread Gagandeep Singh
From: Apeksha Gupta Add support of dpmac counters in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c| 118 ++-- drivers/net/dpaa2/dpaa2_ethdev.h| 12 +++ drivers/net/dpaa2/mc/dpni.c | 29 ++-

[PATCH v2 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds

2025-06-02 Thread Gagandeep Singh
From: Vanshika Shukla This patch adds DPBP APIs for setting and getting the depletion/surplus thresholds for controlling pause frame generation. By default, depletion_entry is set as 128 by MC. This API would help user configure the buffer in depletion state as per requirement. Signed-off-by: V

[PATCH v2 02/11] net/dpaa2: fix shaper rate

2025-06-02 Thread Gagandeep Singh
This patch fixes the shaper rate by configuring the user given rate in bytes. Earlier driver was considering the user given rate value in bits. Fixes: ac624068ee25 ("net/dpaa2: support traffic management") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa

[PATCH v2 01/11] net/dpaa2: fix issue of extract buffer preparation

2025-06-02 Thread Gagandeep Singh
From: Jun Yang 1) The max size of extract buffer should be size of "struct dpni_ext_set_rx_tc_dist"(488), which is greater than 256. 2) dpkg_prepare_key_cfg is responsible to clear extract buffer before preparing. Fixes: 25d0ae624245 ("net/dpaa2: check IOVA before sending MC command") Cc:

[PATCH v2 00/11] NXP DPAA2 driver enhancements and fixes

2025-06-02 Thread Gagandeep Singh
xstats Gagandeep Singh (2): net/dpaa2: fix shaper rate net/dpaa2: enable software taildrop for ordered queues Ioana Ciornei (2): net/dpaa2: retrieve DPNI API version at init time net/dpaa2: setup the speed cap based on the actual MAC Jun Yang (2): net/dpaa2: fix issue of extract buffer

[PATCH 11/11] net/dpaa2: enable software taildrop for ordered queues

2025-05-30 Thread Gagandeep Singh
This patch adds support for software taildrop on ordered queues in the DPAA2 driver. It also enables congestion notification by default on traffic management (TM) queues, which is a prerequisite for software taildrop functionality. Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2

[PATCH 10/11] net/dpaa2: setup the speed cap based on the actual MAC

2025-05-30 Thread Gagandeep Singh
From: Ioana Ciornei Previously, the speed_capa field from struct rte_eth_dev_info was populated with all possible speeds that the MACs on the system could sustain. What this meant is that the bitmap of speed capability did not reflect what the MAC could do in the current circumstance. Fix this b

[PATCH 09/11] net/dpaa2: retrieve DPNI API version at init time

2025-05-30 Thread Gagandeep Singh
From: Ioana Ciornei The list of availabla DPNI APIs depends on the DPNI API version available on a system. Retrieve the API version in the init stage and store it in the private structure so that it can be used at a later stage. Signed-off-by: Ioana Ciornei --- .mailmap

[PATCH 07/11] net/dpaa2: support dpmac Tx stats

2025-05-30 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/mc/fsl_dpmac.h | 50 ++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH 08/11] net/dpaa2: support dpmac Tx stats in xstats

2025-05-30 Thread Gagandeep Singh
From: Apeksha Gupta Added all mac counters including Tx stats buckets for packet sizes in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c | 20 +++- drivers/net/dpaa2/dpaa2_ethdev.h | 4 ++-- 2 files changed, 21 inserti

[PATCH 05/11] net/dpaa2: add dpmac MC header file

2025-05-30 Thread Gagandeep Singh
From: Apeksha Gupta This patch upgrades the MC firmware release API compatibility to 10.39.0. Added mc/fsl_dpmac.h file. Signed-off-by: Apeksha Gupta --- drivers/net/dpaa2/mc/fsl_dpmac.h | 490 +++ 1 file changed, 490 insertions(+) create mode 100644 drivers/net/dp

[PATCH 06/11] net/dpaa2: support dpmac counters in stats

2025-05-30 Thread Gagandeep Singh
From: Apeksha Gupta Add support of dpmac counters in xstats. Signed-off-by: Apeksha Gupta Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.c| 118 ++-- drivers/net/dpaa2/dpaa2_ethdev.h| 12 +++ drivers/net/dpaa2/mc/dpni.c | 29 ++-

[PATCH 04/11] mempool/dpaa2: use unified VA to IOVA conversion

2025-05-30 Thread Gagandeep Singh
From: Jun Yang Use DPAA2_VADDR_TO_IOVA to convert va to iova for both VA and PA modes. Signed-off-by: Jun Yang --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 220 +++ 1 file changed, 141 insertions(+), 79 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c

[PATCH 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds

2025-05-30 Thread Gagandeep Singh
From: Vanshika Shukla This patch adds DPBP APIs for setting and getting the depletion/surplus thresholds for controlling pause frame generation. By default, depletion_entry is set as 128 by MC. This API would help user configure the buffer in depletion state as per requirement. Signed-off-by: V

[PATCH 02/11] net/dpaa2: fix shaper rate

2025-05-30 Thread Gagandeep Singh
This patch fixes the shaper rate by configuring the user given rate in bytes. Earlier driver was considering the user given rate value in bits. Fixes: ac624068ee25 ("net/dpaa2: support traffic management") Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa

[PATCH 00/11] NXP DPAA2 driver enhancements and fixes

2025-05-30 Thread Gagandeep Singh
configuration. - fixes for shaper rate and buffer prepration. Apeksha Gupta (4): net/dpaa2: add dpmac MC header file net/dpaa2: support dpmac counters in stats net/dpaa2: support dpmac Tx stats net/dpaa2: support dpmac Tx stats in xstats Gagandeep Singh (2): net/dpaa2: fix shaper rate

[PATCH 01/11] net/dpaa2: fix issue of extract buffer preparation

2025-05-30 Thread Gagandeep Singh
From: Jun Yang 1) The max size of extract buffer should be size of "struct dpni_ext_set_rx_tc_dist"(488), which is greater than 256. 2) dpkg_prepare_key_cfg is responsible to clear extract buffer before preparing. Fixes: 25d0ae624245 ("net/dpaa2: check IOVA before sending MC command") Cc:

RE: [EXTERNAL] [PATCH v2 0/9] DPAA2 crypto driver changes

2025-05-21 Thread Gagandeep Singh
Hi, > -Original Message- > From: Akhil Goyal > Sent: Wednesday, May 21, 2025 5:30 PM > To: Gagandeep Singh ; dev@dpdk.org > Cc: Hemant Agrawal > Subject: RE: [EXTERNAL] [PATCH v2 0/9] DPAA2 crypto driver changes > > > V2 changes: > > - fix che

RE: [PATCH 6/9] crypto/dpaa2_sec: add null algo capability

2025-05-21 Thread Gagandeep Singh
Hi, > -Original Message- > From: Hemant Agrawal (OSS) > Sent: Tuesday, May 20, 2025 11:50 AM > To: Gagandeep Singh ; dev@dpdk.org; Hemant Agrawal > > Subject: Re: [PATCH 6/9] crypto/dpaa2_sec: add null algo capability > > > On 20-05-2025 11:21, Gagandeep

[PATCH v2 8/9] mempool/dpaa2: mempool operation index

2025-05-21 Thread Gagandeep Singh
From: Jun Yang For user to identify dpaa2 mempool by operation index. Signed-off-by: Jun Yang --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 20 +++- drivers/mempool/dpaa2/dpaa2_hw_mempool.h | 5 - 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/drivers/mem

[PATCH v2 9/9] crypto/dpaa2_sec: add support for simple IPsec FD

2025-05-21 Thread Gagandeep Singh
From: Jun Yang For IVP mode of simple IPsec FD, store op context point just before expansion and align with point size(8). Otherwise, store op context point in offset to mbuf with rte_mbuf_dynfield register. Signed-off-by: Jun Yang --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 143

[PATCH v2 7/9] net/dpaa2: configure buffer layout

2025-05-20 Thread Gagandeep Singh
From: Jun Yang Make header room big enough for IPSec with TX dynamic confirm enabled. Ingress minimum header room: 64(size of parser result) + 8(address of SEC context) * 2. Egress minimum header room: 88(FAEAD offset) + 8(FAEAD size) + 8(address of SEC context) * 2 + 114(expansion). Signed-off-

[PATCH v2 6/9] crypto/dpaa2_sec: add null algo capability

2025-05-20 Thread Gagandeep Singh
This patch adds NULL algo capabilities. Signed-off-by: Gagandeep Singh --- doc/guides/cryptodevs/dpaa2_sec.rst | 2 + doc/guides/cryptodevs/features/dpaa2_sec.ini | 2 + drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h| 41 3 files changed, 45 insertions(+) diff

[PATCH v2 4/9] crypto/dpaa2_sec: change custom device API to standard

2025-05-20 Thread Gagandeep Singh
Replacing existing device creation and deletion code in probe and remove functions with rte_cryptodev_pmd_create() and rte_cryptodev_pmd_destroy() APIs provided by the DPDK library, simplifying drivers initialization and teardown. Signed-off-by: Gagandeep Singh --- drivers/crypto/dpaa2_sec

[PATCH v2 5/9] crypto/dpaa2_sec: fix coverity Issues

2025-05-20 Thread Gagandeep Singh
From: Vanshika Shukla Fixes the uninitialized variable issue - reported by NXP internal coverity. Fixes: 1182b364312c ("crypto/dpaax_sec: set authdata in non-auth case") Cc: g.si...@nxp.com Cc: sta...@dpdk.org Signed-off-by: Vanshika Shukla --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 1

[PATCH v2 3/9] common/dpaax: support 12bit SN in pdcp uplane

2025-05-20 Thread Gagandeep Singh
update pdcp_insert_uplane_no_int_op() to support 12bit SN size Signed-off-by: Gagandeep Singh --- drivers/common/dpaax/caamflib/desc/pdcp.h | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/common/dpaax/caamflib/desc/pdcp.h b/drivers/common/dpaax

[PATCH v2 2/9] common/dpaax: fix for PDCP AES only 12bit SN case

2025-05-20 Thread Gagandeep Singh
This workaround fixes the invalid key command SEC error. Fixes: 6127fff842a7 ("common/dpaax: remove outdated caamflib code") Cc: franck.lenorm...@nxp.com Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/common/dpaax/caamflib/desc/pdcp.h | 16 ++-- 1 file c

[PATCH v2 1/9] common/dpaax: fix invalid key command error

2025-05-20 Thread Gagandeep Singh
-bit SN case. Fixes: 6127fff842a7 ("common/dpaax: remove outdated caamflib code") Cc: franck.lenorm...@nxp.com Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/common/dpaax/caamflib/desc/pdcp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driv

[PATCH v2 0/9] DPAA2 crypto driver changes

2025-05-20 Thread Gagandeep Singh
V2 changes: - fix checkpatch warning - fix 32 bit compilation error - fix a commit message - update document Gagandeep Singh (5): common/dpaax: fix invalid key command error common/dpaax: fix for PDCP AES only 12bit SN case common/dpaax: support 12bit SN in pdcp uplane crypto

RE: [PATCH 3/9] common/dpaax: support 12bit SN in pdcp uplane

2025-05-20 Thread Gagandeep Singh
Hi, > -Original Message- > From: Hemant Agrawal (OSS) > Sent: Tuesday, May 20, 2025 11:49 AM > To: Gagandeep Singh ; dev@dpdk.org; Hemant Agrawal > ; Sachin Saxena > Subject: Re: [PATCH 3/9] common/dpaax: support 12bit SN in pdcp uplane > > > On 20-05-2025 1

RE: [PATCH 1/9] common/dpaax: fix invalid key command error

2025-05-20 Thread Gagandeep Singh
Hi, > -Original Message- > From: Hemant Agrawal (OSS) > Sent: Tuesday, May 20, 2025 11:46 AM > To: Gagandeep Singh ; dev@dpdk.org; Hemant Agrawal > ; Sachin Saxena ; Franck > Lenormand ; Akhil Goyal > Cc: sta...@dpdk.org > Subject: Re: [PATCH 1/9] common/dpaax:

[PATCH 3/9] common/dpaax: support 12bit SN in pdcp uplane

2025-05-20 Thread Gagandeep Singh
update pdcp_insert_uplane_no_int_op() to support 12bit SN size Signed-off-by: Gagandeep Singh --- drivers/common/dpaax/caamflib/desc/pdcp.h | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/common/dpaax/caamflib/desc/pdcp.h b/drivers/common/dpaax

[PATCH 2/9] common/dpaax: fix for PDCP AES only 12bit SN case

2025-05-19 Thread Gagandeep Singh
This workaround fixes the invalid key command SEC error. Fixes: 6127fff842a7 ("common/dpaax: remove outdated caamflib code") Cc: franck.lenorm...@nxp.com Cc: sta...@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/common/dpaax/caamflib/desc/pdcp.h | 16 ++-- 1 file c

[PATCH 7/9] net/dpaa2: configure buffer layout

2025-05-19 Thread Gagandeep Singh
From: Jun Yang Make header room big enough for IPSec with TX dynamic confirm enabled. Ingress minimum header room: 64(size of parser result) + 8(address of SEC context) * 2. Egress minimum header room: 88(FAEAD offset) + 8(FAEAD size) + 8(address of SEC context) * 2 + 114(expansion). Signed-off-

  1   2   3   4   5   6   7   8   9   >