[PATCH 7/7] doc: updates cnxk doc for new devargs

2025-05-28 Thread Rahul Bhansali
Adds details of below nix devargs - force_tail_drop - disable_xqe_drop Signed-off-by: Rahul Bhansali --- doc/guides/nics/cnxk.rst | 23 +++ 1 file changed, 23 insertions(+) diff --git a/doc/guides/nics/cnxk.rst b/doc/guides/nics/cnxk.rst index 35f95dcc0a..7f4ff7b4fb 100644

[PATCH 6/7] net/cnxk: devarg option to disable xqe drop

2025-05-28 Thread Rahul Bhansali
Provide devarg option to disable xqe drop in rq context. It will be set as disable_xqe_drop=1 for nix device. e.g.: 0002:02:00.0,disable_xqe_drop=1 Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cnxk_ethdev_devargs.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a

[PATCH 5/7] common/cnxk: disable xqe drop config in RQ context

2025-05-28 Thread Rahul Bhansali
Disable RQ context xqe drop enable config when dis_xqe_drop parameter is set. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/roc_nix_queue.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix.h b

[PATCH 4/7] net/cnxk: fix descriptor count update on reconfig

2025-05-28 Thread Rahul Bhansali
lease") Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cnxk_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c index 1ba09c068b..14e4e95419 100644 --- a/drivers/net/cnxk/cnxk_ethdev.c +++ b/driver

[PATCH 3/7] net/cnxk: devarg to set force tail drop

2025-05-28 Thread Rahul Bhansali
A new devarg is added to configure force tail drop. Also, CQ descriptors are doubled under this option. To enable this devarg, it needs to be pass as force_tail_drop=1 for nix device. e.g.: 0002:02:00.0,force_tail_drop=1 Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cnxk_ethdev.c

[PATCH 2/7] common/cnxk: set CQ drop and backpressure threshold

2025-05-28 Thread Rahul Bhansali
In case of force_tail_drop is enabled, a different set of CQ drop and backpressure threshold will be configured to avoid CQ FULL interrupts. Also, drop thresholds are optimized for security packets. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_nix.h | 4 drivers/common

[PATCH 1/7] common/cnxk: fix CQ tail drop feature

2025-05-28 Thread Rahul Bhansali
From: Nithin Dabilpuram CQ tail drop feature is currently supposed to be enabled when inline IPsec is disabled. But since XQE drop is not enabled, CQ tail drop is implicitly disabled. Fix the same. Fixes: c8c967e11717 ("common/cnxk: support enabling AURA tail drop for RQ") Signed-off-by: Nithin

[PATCH v2 4/6] common/cnxk: fix inbound CPT LF ID

2025-05-23 Thread Rahul Bhansali
Inbound CPT LF ID was fixed to 0th index, It fixes to update relative LF ID for Rx inline config. Fixes: fc9a711b5c8f ("common/cnxk: add NIX inline reassembly profile config") Signed-off-by: Rahul Bhansali --- Changes in v2: updated the commit message. drivers/common/cnxk/roc

[PATCH v2 6/6] net/cnxk: fix bufsize in lookup memory

2025-05-23 Thread Rahul Bhansali
Update bufsize in lookup-mem by default to maintain data order. Fixes: b826d043c01f ("net/cnxk: store pool buffer size in lookup memory") Signed-off-by: Rahul Bhansali --- Changes in v2: updated the commit message. drivers/net/cnxk/cn20k_ethdev.c | 3 +-- 1 file changed, 1 inser

[PATCH v2 5/6] net/cnxk: update frag offset calculation

2025-05-23 Thread Rahul Bhansali
Update frag offset calculation based on CSR change. Signed-off-by: Rahul Bhansali --- Changes in v2: No change. drivers/net/cnxk/cn20k_rx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cn20k_rx.h b/drivers/net/cnxk/cn20k_rx.h index 09042e384d..5682631815

[PATCH v2 3/6] common/cnxk: update CPT parse header for CN20k

2025-05-23 Thread Rahul Bhansali
Updates CPT parse header HW structure for CN20k. Signed-off-by: Rahul Bhansali --- Changes in v2: updated commit message drivers/common/cnxk/hw/cpt.h| 12 +++- drivers/common/cnxk/roc_cpt_debug.c | 8 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a

[PATCH v2 2/6] common/cnxk: config CPT result address for cn20k

2025-05-23 Thread Rahul Bhansali
This configures the CPT result address offset from WQE pointer in RX_INLINE_CFG0. CPT result address offset is a signed number in multiple of 16 bytes and configured to the corresponding reserved space in packet meta area itself. Signed-off-by: Rahul Bhansali --- Changes in v2: No change

[PATCH v2 1/6] common/cnxk: config of CPT result address offset

2025-05-23 Thread Rahul Bhansali
From: Monendra Singh Kushwaha This patch enables setting CPT result address offset relative to wqe address. Signed-off-by: Monendra Singh Kushwaha --- Changes in v2: No change. drivers/common/cnxk/roc_mbox.h | 4 drivers/common/cnxk/roc_nix.c | 5 + drivers/common/cn

[PATCH 3/6] common/cnxk: update CPT parse header for O20

2025-05-19 Thread Rahul Bhansali
Updates CPT parse header HW structure for O20. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/hw/cpt.h| 12 +++- drivers/common/cnxk/roc_cpt_debug.c | 8 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/common/cnxk/hw/cpt.h b/drivers

[PATCH 1/6] common/cnxk: config of CPT result address offset

2025-05-19 Thread Rahul Bhansali
From: Monendra Singh Kushwaha This patch enables setting CPT result address offset relative to wqe address. Signed-off-by: Monendra Singh Kushwaha --- Depends-on: series-34970 ("[v2,1/3] common/cnxk: update steer rule mbox for cn20k") drivers/common/cnxk/roc_mbox.h | 4 drivers/

[PATCH 5/6] net/cnxk: update frag offset calculation

2025-05-19 Thread Rahul Bhansali
Update frag offset calculation based on CSR change. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn20k_rx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cn20k_rx.h b/drivers/net/cnxk/cn20k_rx.h index 09042e384d..5682631815 100644 --- a/drivers/net

[PATCH 6/6] net/cnxk: update bufsize in lookup memory

2025-05-19 Thread Rahul Bhansali
Update bufsize in lookup-mem by default to maintain data order. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn20k_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/cnxk/cn20k_ethdev.c b/drivers/net/cnxk/cn20k_ethdev.c index 740fdb7f76..159ce39e97

[PATCH 4/6] common/cnxk: update inbound CPT LF ID

2025-05-19 Thread Rahul Bhansali
Inbound CPT LF ID update for Rx inline config. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_nix_inl.c | 10 +- drivers/common/cnxk/roc_nix_inl_dev.c | 4 +--- drivers/common/cnxk/roc_nix_inl_priv.h | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff

[PATCH 2/6] common/cnxk: config CPT result address for cn20k

2025-05-19 Thread Rahul Bhansali
This configures the CPT result address offset from WQE pointer in RX_INLINE_CFG0. CPT result address offset is a signed number in multiple of 16 bytes and configured to the corresponding reserved space in packet meta area itself. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk

[PATCH v2 3/3] net/cnxk: update IP header of reassembled packets

2025-04-05 Thread Rahul Bhansali
Updates IP header data of reassembled packets, 1) IPv4 length, MF bit and checksum correction 2) IPv6 length update and fragment extension header remove Also, corrects data length of multisegment decrypted packets. Signed-off-by: Rahul Bhansali --- Changes in v2: compilation fix for ubuntu-22.04

[PATCH 1/3] common/cnxk: update steer rule mbox for cn20k

2025-04-05 Thread Rahul Bhansali
Updated mbox npc_cn20k_read_base_steer_rule for cn20k. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_npc.c | 3 ++- drivers/common/cnxk/roc_npc_mcam.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk

[PATCH v2 2/3] common/cnxk: update cn20k part numbers

2025-04-02 Thread Rahul Bhansali
- Update cn20k part number - Add cnf205 support - Add APIs for respective cn20k models Signed-off-by: Rahul Bhansali Signed-off-by: Harman Kalra --- Changes in v2: No change drivers/common/cnxk/roc_constants.h | 4 ++-- drivers/common/cnxk/roc_model.c | 4 +++- drivers/common/cnxk

[PATCH v2 1/3] common/cnxk: update steer rule mbox for cn20k

2025-04-02 Thread Rahul Bhansali
Updated mbox npc_cn20k_read_base_steer_rule for cn20k. Signed-off-by: Rahul Bhansali --- Changes in v2: No change drivers/common/cnxk/roc_npc.c | 3 ++- drivers/common/cnxk/roc_npc_mcam.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/common/cnxk/roc_npc.c

[PATCH 3/3] net/cnxk: update IP header of reassembled packets

2025-03-24 Thread Rahul Bhansali
Updates IP header data of reassembled packets, 1) IPv4 length, MF bit and checksum correction 2) IPv6 length update and fragment extension header remove Also, corrects data length of multisegment decrypted packets. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn20k_rx.h | 112

[PATCH 2/3] common/cnxk: update cn20k part numbers

2025-03-21 Thread Rahul Bhansali
- Update cn20k part number - Add cnf205 support - Add APIs for respective cn20k models Signed-off-by: Rahul Bhansali Signed-off-by: Harman Kalra --- drivers/common/cnxk/roc_constants.h | 4 ++-- drivers/common/cnxk/roc_model.c | 4 +++- drivers/common/cnxk/roc_model.h | 28

[PATCH v2] net/cnxk: fix of NIX send header L3 type

2025-01-30 Thread Rahul Bhansali
upport Tx burst vector for CN20K") Fixes: 862e28128707 ("net/cnxk: add vector Tx for CN9K") Signed-off-by: Rahul Bhansali --- Changes in v2: Added fix for cn9k also. drivers/net/cnxk/cn10k_tx.h | 7 +-- drivers/net/cnxk/cn20k_tx.h | 7 +-- drivers/net/cnxk/cn9k_tx.h |

[PATCH] net/cnxk: fix of NIX send header L3 type

2025-01-26 Thread Rahul Bhansali
upport Tx burst vector for CN20K") Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn10k_tx.h | 7 +-- drivers/net/cnxk/cn20k_tx.h | 7 +-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h index 7d9b259a5f..77f

[PATCH v2 2/2] net/cnxk: fix to avoid NPC Rx and MCAM disable

2024-07-02 Thread Rahul Bhansali
: fbc0fa749919 ("net/cnxk: keep flow rules across restart") Signed-off-by: Rahul Bhansali --- Changes in v2: added fixes tag drivers/net/cnxk/cnxk_ethdev.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/driver

[PATCH v2 1/2] common/cnxk: enable second pass RQ in mask config

2024-07-02 Thread Rahul Bhansali
This will enable second pass RQ and drop interrupt by default in mask configuration to avoid buffer leak possibilities during dev stop and interrupts to indicate drops if any. Signed-off-by: Rahul Bhansali --- Changes in v2: No change. drivers/common/cnxk/roc_features.h | 6 ++ drivers

[PATCH 2/2] net/cnxk: avoid NPC Rx and MCAM entries disable

2024-06-27 Thread Rahul Bhansali
: Rahul Bhansali --- drivers/net/cnxk/cnxk_ethdev.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c index db8feca620..38746c81c5 100644 --- a/drivers/net/cnxk/cnxk_ethdev.c +++ b/drivers/net

[PATCH 1/2] common/cnxk: enable second pass RQ in mask config

2024-06-27 Thread Rahul Bhansali
This will enable second pass RQ and drop interrupt by default in mask configuration to avoid buffer leak possibilities during dev stop and interrupts to indicate drops if any. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_features.h | 6 ++ drivers/common/cnxk/roc_nix_inl.c | 9

[PATCH] net/cnxk: fix promiscuous state after MAC change

2024-05-28 Thread Rahul Bhansali
ned-off-by: Rahul Bhansali --- drivers/net/cnxk/cnxk_ethdev_ops.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c index c8260fcb9c..b1093dd584 100644 --- a/drivers/net/cnxk/cnxk_ethdev_ops.c +++ b/driver

[PATCH] common/cnxk: fix loopback port dataflow issue

2024-03-04 Thread Rahul Bhansali
ch VF") Fixes: f812768a9e66 ("net/cnxk: support eswitch VF as ethernet device") Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_nix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix.c b/drivers/common/cnxk/roc_nix.c index 20

[PATCH v2] net/cnxk: performance improvement for SW mbuf free

2024-02-29 Thread Rahul Bhansali
but also fixes SQ corruption. CN10k performance improvement is ~14%. CN9k performance improvement is ~20%. Fixes: 51a636528515 ("net/cnxk: fix crash during Tx completion") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- Changes in v2: updated release_24_03.rst for SW mbuf free op

[PATCH] net/cnxk: performance improvement for SW mbuf free

2024-02-27 Thread Rahul Bhansali
but also fixes SQ corruption. CN10k performance improvement is ~14%. CN9k performance improvement is ~20%. Fixes: 51a636528515 ("net/cnxk: fix crash during Tx completion") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- Depends-on: series-31225 ("[v5,01/14] common/cnxk: rem

[PATCH v2 5/5] net/cnxk: select optimized LLC transaction type

2024-02-22 Thread Rahul Bhansali
LLC transaction optimization by using LDWB LDTYPE option in SG preparation for Tx. With this, if data is present and dirty in LLC then the LLC would mark the data clean. Signed-off-by: Rahul Bhansali --- Changes in v2: No change drivers/net/cnxk/cn10k_tx.h | 16 +--- 1 file changed

[PATCH v2 4/5] net/cnxk: fix to add reassembly fast path flag

2024-02-22 Thread Rahul Bhansali
. Fixes: 5e9e008d0127 ("net/cnxk: support inline ingress out-of-place session") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- Changes in v2: No change drivers/net/cnxk/cn10k_rx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cn10k_rx.h

[PATCH v2 3/5] common/cnxk: fix for inline dev pointer check

2024-02-22 Thread Rahul Bhansali
Add missing check of Inline device pointer before accessing is_multi_channel variable. Fixes: 7ea187184a51 ("common/cnxk: support 1-N pool-aura per NIX LF") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- Changes in v2: No change drivers/common/cnxk/roc_nix_inl.c | 3 ++- 1 fi

[PATCH v2 2/5] net/cnxk: support of Rx inject

2024-02-22 Thread Rahul Bhansali
eth device. Signed-off-by: Rahul Bhansali --- Changes in v2: updated release_24_03.rst for Rx inject support doc/guides/nics/cnxk.rst | 27 +++ doc/guides/rel_notes/release_24_03.rst | 1 + drivers/net/cnxk/cn10k_ethdev.c| 4 + drivers/net/cnxk/cn10k_ethdev_sec.

[PATCH v2 1/5] common/cnxk: reserve CPT LF for Rx inject

2024-02-22 Thread Rahul Bhansali
An additional CPT LF will be reserved and attached with inline device to enable RXC and use for Rx inject purpose. Signed-off-by: Rahul Bhansali --- Changes in v2: No change drivers/common/cnxk/roc_features.h | 7 +++ drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk

RE: [EXT] Re: [PATCH] examples/ipsec-secgw: fix IPsec performance drop

2024-02-13 Thread Rahul Bhansali
> -Original Message- > From: Ferruh Yigit > Sent: Friday, February 9, 2024 7:21 PM > To: Rahul Bhansali ; dev@dpdk.org; Radu Nicolau > ; Akhil Goyal ; Konstantin > Ananyev ; Anoob Joseph > > Subject: Re: [EXT] Re: [PATCH] examples/ipsec-secgw: fix IPsec perform

RE: [EXT] Re: [PATCH] examples/ipsec-secgw: fix IPsec performance drop

2024-02-09 Thread Rahul Bhansali
> -Original Message- > From: Ferruh Yigit > Sent: Wednesday, February 7, 2024 4:06 PM > To: Rahul Bhansali ; dev@dpdk.org; Radu Nicolau > ; Akhil Goyal ; Konstantin > Ananyev ; Anoob Joseph > > Subject: Re: [EXT] Re: [PATCH] examples/ipsec-secgw: fix IPsec perfo

RE: [EXT] Re: [PATCH] examples/ipsec-secgw: fix IPsec performance drop

2024-02-06 Thread Rahul Bhansali
> -Original Message- > From: Ferruh Yigit > Sent: Tuesday, February 6, 2024 11:55 PM > To: Rahul Bhansali ; dev@dpdk.org; Radu Nicolau > ; Akhil Goyal ; Konstantin > Ananyev ; Anoob Joseph > > Subject: [EXT] Re: [PATCH] examples/ipsec-secgw: fix IPsec perfor

[PATCH] examples/ipsec-secgw: fix IPsec performance drop

2024-02-06 Thread Rahul Bhansali
free") Signed-off-by: Rahul Bhansali --- examples/ipsec-secgw/ipsec-secgw.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.h b/examples/ipsec-secgw/ipsec-secgw.h index 8baab44ee7..ec33a982df 100644 --- a/examples/ipsec-secgw/ipsec-sec

[PATCH v2] test/security: add inline IPsec Rx inject test

2024-02-01 Thread Rahul Bhansali
Add test for inline IPsec Rx inject verification. This test case will inject the known vector to crypto HW from ethdev and verifies it back with decrypted packet from ethdev Rx. Signed-off-by: Rahul Bhansali --- Changes in v2: Addressed review comments of Stephen Hemminger app/test

RE: [EXT] Re: [PATCH] test/security: add inline IPsec Rx inject test

2024-02-01 Thread Rahul Bhansali
> -Original Message- > From: Stephen Hemminger > Sent: Friday, January 19, 2024 10:26 PM > To: Rahul Bhansali > Cc: dev@dpdk.org; Akhil Goyal ; Anoob Joseph > > Subject: [EXT] Re: [PATCH] test/security: add inline IPsec Rx inject tes

[PATCH] test/security: add inline IPsec Rx inject test

2024-01-18 Thread Rahul Bhansali
Add test for inline IPsec Rx inject verification. This test case will inject the known vector to crypto HW from ethdev and verifies it back with decrypted packet from ethdev Rx. Signed-off-by: Rahul Bhansali --- app/test/test_security_inline_proto.c | 325 ++ app/test

[PATCH 5/5] net/cnxk: select optimized LLC transaction type

2024-01-18 Thread Rahul Bhansali
LLC transaction optimization by using LDWB LDTYPE option in SG preparation for Tx. With this, if data is present and dirty in LLC then the LLC would mark the data clean. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn10k_tx.h | 16 +--- 1 file changed, 13 insertions(+), 3

[PATCH 4/5] net/cnxk: fix to add reassembly fast path flag

2024-01-18 Thread Rahul Bhansali
. Fixes: 5e9e008d0127 ("net/cnxk: support inline ingress out-of-place session") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn10k_rx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cn10k_rx.h b/drivers/net/cnxk/cn10k_

[PATCH 3/5] common/cnxk: fix for inline dev pointer check

2024-01-18 Thread Rahul Bhansali
Add missing check of Inline device pointer before accessing is_multi_channel variable. Fixes: 7ea187184a51 ("common/cnxk: support 1-N pool-aura per NIX LF") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_nix_inl.c | 3 ++- 1 file changed, 2 insert

[PATCH 2/5] net/cnxk: support of Rx inject

2024-01-18 Thread Rahul Bhansali
eth device. Signed-off-by: Rahul Bhansali --- doc/guides/nics/cnxk.rst | 27 +++ drivers/net/cnxk/cn10k_ethdev.c| 4 + drivers/net/cnxk/cn10k_ethdev_sec.c| 48 + drivers/net/cnxk/cn10k_rx.h| 241 - drivers/net/cnxk/cn10k_rxtx.h

[PATCH 1/5] common/cnxk: reserve CPT LF for Rx inject

2024-01-18 Thread Rahul Bhansali
An additional CPT LF will be reserved and attached with inline device to enable RXC and use for Rx inject purpose. Signed-off-by: Rahul Bhansali --- Depends-on: series-30819 ("Fixes and improvements in crypto cnxk") drivers/common/cnxk/roc_features.h | 7 +++ drivers/common/cnxk

[PATCH] test/crypto: fix mbuf port in Rx inject

2023-10-29 Thread Rahul Bhansali
By default mbuf port is not initialized and for Rx inject mbuf port update is required before submitting packet. Fixes: 69e1a909aa08 ("test/crypto: add Rx inject") Signed-off-by: Rahul Bhansali --- app/test/test_cryptodev.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] net/cnxk: fix separate callback for Rx flush on CN10k

2023-10-15 Thread Rahul Bhansali
: 4382a7ccf781 ("net/cnxk: support Rx security offload on cn10k") Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn10k_rx.h| 93 ++ drivers/net/cnxk/cn10k_rx_select.c | 10 +++- 2 files changed, 101 insertions(+), 2 deletions(-) diff --git a/driver

RE: [PATCH] examples/ptpclient: add signal handler for cleanup

2023-09-21 Thread Rahul Bhansali
Hi Thomas, Can you please check this and merge if no comments as this is waiting from long time ? Regards, Rahul > -Original Message- > From: Rahul Bhansali > Sent: Friday, June 16, 2023 10:28 AM > To: 'Thomas Monjalon' > Cc: 'dev@dpdk.org' ; &#

[PATCH v2] common/cnxk: reserve last LMT line for control ops

2023-09-21 Thread Rahul Bhansali
As rte_eth_dev_configure() can be called from any EAL or non-EAL cores. And in case of non-EAL core, LMT address will not be a valid. So, reserving last LMT line 2047 for control path specific functionality. Signed-off-by: Rahul Bhansali --- v2 change: No change, sent as independent of series

[PATCH v3] eventdev/eth_rx: fix timestamp field register in mbuf

2023-09-20 Thread Rahul Bhansali
mbuf field") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- v3 changes: - timestamp register move before other Rxa init config. v2 changes: - addresses the review comment to have registration in rxa_init_service() lib/eventdev/rte_event_eth_rx_adapter.c | 14 +++--- 1 file

[PATCH v2] eventdev/eth_rx: fix timestamp field register in mbuf

2023-09-20 Thread Rahul Bhansali
mbuf field") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- v2 changes: - addresses the review comment to have registration in rxa_init_service() lib/eventdev/rte_event_eth_rx_adapter.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/li

RE: [PATCH] eventdev/eth_rx: fix timestamp field register in mbuf

2023-09-20 Thread Rahul Bhansali
> -Original Message- > From: Naga Harish K, S V > Sent: Wednesday, September 20, 2023 6:03 PM > To: Rahul Bhansali ; dev@dpdk.org; Jerin Jacob > Kollanukkaran ; Kundapura, Ganapati > > Cc: sta...@dpdk.org > Subject: [EXT] RE: [PATCH] eventdev/eth_rx: fix tim

[PATCH 2/2] net/cnxk: separate callback for Rx flush on CN10k

2023-09-20 Thread Rahul Bhansali
. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn10k_rx.h| 93 ++ drivers/net/cnxk/cn10k_rx_select.c | 10 +++- 2 files changed, 101 insertions(+), 2 deletions(-) diff --git a/drivers/net/cnxk/cn10k_rx.h b/drivers/net/cnxk/cn10k_rx.h index 41d11349fd

[PATCH 1/2] common/cnxk: reserve last LMT line for control ops

2023-09-20 Thread Rahul Bhansali
As rte_eth_dev_configure() can be called from any EAL or non-EAL cores. And in case of non-EAL core, LMT address will not be a valid. So, reserving last LMT line 2047 for control path specific functionality. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_dev.c | 5

[PATCH 1/2] common/cnxk: reserve last LMT line for control ops

2023-09-18 Thread Rahul Bhansali
As rte_eth_dev_configure() can be called from any EAL or non-EAL cores. And in case of non-EAL core, LMT address will not be a valid. So, reserving last LMT line 2047 for control path specific functionality. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_dev.c | 5

[PATCH] eventdev/eth_rx: fix timestamp field register in mbuf

2023-09-18 Thread Rahul Bhansali
("eventdev/eth_rx: use timestamp as dynamic mbuf field") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- lib/eventdev/rte_event_eth_rx_adapter.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/li

[PATCH] test/security: fix IPv6 next header field

2023-08-18 Thread Rahul Bhansali
In case of IPv6 fragments are reassembled, then fragment header will be removed from packet and next-header field in IPv6 header will be updated to header followed by fragment header. Fixes: a310577766d6 ("test/security: add inline IPsec reassembly cases") Signed-off-by: Rahul Bhansali

RE: [PATCH] examples/ptpclient: add signal handler for cleanup

2023-06-15 Thread Rahul Bhansali
Hi Thomas, This is pending from long time and no comments so far. Can you please check and accept this ? Let me know if you have any review comments. Regard, Rahul > -Original Message- > From: Rahul Bhansali > Sent: Tuesday, May 30, 2023 2:30 PM > To: 'Kirill Rybal

[PATCH] net/cnxk: add atomic fc check in poll mode Tx path

2023-06-05 Thread Rahul Bhansali
Add a support of atomic fc check in poll mode Tx path. This atomic check is useful if multiple threads are using the same Tx queue. This will be enabled when Tx offload RTE_ETH_TX_OFFLOAD_MT_LOCKFREE is set. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn10k_ethdev.c | 3 ++ drivers/net

[PATCH] test/security: fix event inline IPsec reassembly tests

2023-06-05 Thread Rahul Bhansali
Event Inline IPsec test suite stuck for reassembly tests because corresponding Tx and Rx calls are not done and reassembly flags were not set during event dev initialization. Fixes: 108646569579 ("test/security: add event inline IPsec cases") Signed-off-by: Rahul Bhansali ---

RE: [PATCH] examples/ptpclient: add signal handler for cleanup

2023-05-30 Thread Rahul Bhansali
Hi Kirill, This patch is pending for review from long time. Please do let me know if any comments on this patch, else will request to merge it. Regards, Rahul > -Original Message- > From: Rahul Bhansali > Sent: Monday, May 15, 2023 4:29 PM > To: 'Kirill Rybalchenko&#

[PATCH v2 5/5] net/cnxk: add mempool check for frag attach

2023-05-18 Thread Rahul Bhansali
Add mempool cookies get mark to all frags in case of reassembly failure. Signed-off-by: Rahul Bhansali --- Changes in v2: No change drivers/net/cnxk/cn10k_rx.h | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/cnxk/cn10k_rx.h b/drivers/net/cnxk/cn10k_rx.h index

[PATCH v2 4/5] event/cnxk: fix mempool cookies check

2023-05-18 Thread Rahul Bhansali
Fix for mempool cookies get mark to be done before meta to mbuf processing. Fixes: 7a709964d9bb ("net/cnxk: use NPA batch burst free for meta buffers") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- Changes in v2: update in commit message for fixes and cc tag drivers/

[PATCH v2 3/5] event/cnxk: fix Tx adapter data pointer

2023-05-18 Thread Rahul Bhansali
;) Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- Changes in v2: update in commit message for fixes and cc tag drivers/event/cnxk/cnxk_eventdev_adptr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/event/cnxk/cnxk_eventdev_adptr.c b/drivers/event/cnxk/cnxk_eventdev_adp

[PATCH v2 2/5] event/cnxk: set Rx offload flags

2023-05-18 Thread Rahul Bhansali
Configure event dev Rx offload flags with rx adapter start/stop callbacks. Signed-off-by: Rahul Bhansali --- Changes in v2: No change drivers/event/cnxk/cnxk_eventdev_adptr.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/event/cnxk/cnxk_eventdev_adptr.c

[PATCH v2 1/5] common/cnxk: fix IPsec IPv6 tunnel address byte swap

2023-05-18 Thread Rahul Bhansali
Fix the IPsec IPv6 tunnel address bytes swap during SA configurations in session create/update. Fixes: 78d03027f2cc ("common/cnxk: add IPsec common code") Cc: sta...@dpdk.org Signed-off-by: Rahul Bhansali --- Changes in v2: update in commit message for fixes and cc tag drivers/c

RE: [PATCH] examples/ipsec-secgw: fix zero address in ethernet header

2023-05-15 Thread Rahul Bhansali
Ping. > -Original Message- > From: Rahul Bhansali > Sent: Thursday, March 30, 2023 3:39 PM > To: dev@dpdk.org; Radu Nicolau ; Akhil Goyal > > Cc: Rahul Bhansali > Subject: [PATCH] examples/ipsec-secgw: fix zero address in ethernet header > > During port

RE: [PATCH] examples/ptpclient: add signal handler for cleanup

2023-05-15 Thread Rahul Bhansali
Ping. > -Original Message- > From: Rahul Bhansali > Sent: Friday, January 20, 2023 11:26 AM > To: 'dev@dpdk.org' ; 'Kirill Rybalchenko' > > Subject: RE: [PATCH] examples/ptpclient: add signal handler for cleanup > > Ping. > > >

[PATCH 5/5] net/cnxk: add mempool check for frag attach

2023-04-25 Thread Rahul Bhansali
Add mempool cookies get mark to all frags in case of reassembly failure. Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn10k_rx.h | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/cnxk/cn10k_rx.h b/drivers/net/cnxk/cn10k_rx.h index 9fdb5565e9..cbaf994aa2 100644 --- a

[PATCH 4/5] event/cnxk: fix mempool cookies check

2023-04-25 Thread Rahul Bhansali
Fix for mempool cookies get mark to be done before meta to mbuf processing. Fixes: 7a709964d9b ("net/cnxk: use NPA batch burst free for meta buffers") Signed-off-by: Rahul Bhansali --- drivers/event/cnxk/cn10k_worker.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) di

[PATCH 3/5] event/cnxk: fix Tx adapter data pointer

2023-04-25 Thread Rahul Bhansali
;) Signed-off-by: Rahul Bhansali --- drivers/event/cnxk/cnxk_eventdev_adptr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/event/cnxk/cnxk_eventdev_adptr.c b/drivers/event/cnxk/cnxk_eventdev_adptr.c index 6d975362e8..9a02026ea6 100644 --- a/drivers/event/cnxk/cnxk_eventdev_adp

[PATCH 2/5] event/cnxk: set Rx offload flags

2023-04-25 Thread Rahul Bhansali
Configure event dev Rx offload flags with rx adapter start/stop callbacks. Signed-off-by: Rahul Bhansali --- drivers/event/cnxk/cnxk_eventdev_adptr.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/event/cnxk/cnxk_eventdev_adptr.c b/drivers/event/cnxk

[PATCH 1/5] common/cnxk: fix IPsec IPv6 tunnel address byte swap

2023-04-25 Thread Rahul Bhansali
Fix the IPsec IPv6 tunnel address bytes swap during SA configurations in session create/update. Fixes: 78d03027f2c ("common/cnxk: add IPsec common code") Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/cnxk_security.c | 16 1 file changed, 16 insertions(+) di

[PATCH] examples/ipsec-secgw: fix zero address in ethernet header

2023-03-30 Thread Rahul Bhansali
During port init, src address stored in ethaddr_tbl is typecast which violates the stric-aliasing rule and not reflecting the updated source address in processed packets too. Fixes: 6eb3ba0399 ("examples/ipsec-secgw: support poll mode NEON LPM lookup") Signed-off-by: Rahu

[PATCH v3 4/4] event/cnxk: restructure for cn10k datapath

2023-01-25 Thread Rahul Bhansali
recompilation time for independent changes. In case of Roc changes independent to datapath, the overall recompilation time is reduced from ~6 mins to ~17 secs. Signed-off-by: Rahul Bhansali --- Changes in v3: Reorder patch in series for compilation fix. Changes in v2: No changes. .../crypto/cnxk

[PATCH v3 3/4] net/cnxk: restructure for cn10k datapath

2023-01-25 Thread Rahul Bhansali
Restructure for separate cn10k datapath functionality to reduce recompilation time in case of any changes in control path. New cnxk_ethdev_dp.h and cn10k_rxtx.h files are created to have macros, functions as required for datapath with minimal dependency on roc changes. Signed-off-by: Rahul

[PATCH v3 2/4] crypto/cnxk: restructure for cn10k datapath

2023-01-25 Thread Rahul Bhansali
From: Anoob Joseph Inclusion of roc_api.h in all files would mean any change in RoC API would result in recompilation of all cnxk drivers. Address this issue in crypto_cnxk drivers by including only the headers that are required. Signed-off-by: Anoob Joseph --- Changes in v3: Reorder patch in s

[PATCH v3 1/4] common/cnxk: restructure for cn10k datapath

2023-01-25 Thread Rahul Bhansali
Restructure for separate datapath functionality to reduce recompilation time. New *_dp.h are created to have macros, functions as required for datapath. Signed-off-by: Rahul Bhansali --- Changes in v3: No change. Changes in v2: Rebased to next-net-mrvl, No code changes. drivers/common/cnxk

RE: [EXT] Re: [PATCH v2 2/4] net/cnxk: restructure for cn10k datapath

2023-01-24 Thread Rahul Bhansali
> -Original Message- > From: Jerin Jacob > Sent: Wednesday, January 25, 2023 10:29 AM > To: Rahul Bhansali > Cc: dev@dpdk.org; Nithin Kumar Dabilpuram ; > Kiran Kumar Kokkilagadda ; Sunil Kumar Kori > ; Satha Koteswara Rao Kottidi > ; Jerin Jacob Kollanukka

RE: [PATCH] examples/ptpclient: add signal handler for cleanup

2023-01-19 Thread Rahul Bhansali
Ping. > -Original Message- > From: Rahul Bhansali > Sent: Wednesday, November 2, 2022 10:21 PM > To: dev@dpdk.org; Kirill Rybalchenko > Subject: RE: [PATCH] examples/ptpclient: add signal handler for cleanup > > Ping. > > > -Original Message- >

[PATCH v2] event/cnxk: wait for CPT flow control on WQE path

2023-01-18 Thread Rahul Bhansali
This is to avoid CPT queue overflow and thereby a CPT misc interrupt. Fixes: 1a7da795f64 ("net/cnxk: support Tx security offload on cn9k") Signed-off-by: Rahul Bhansali --- Changes in v2: Updated commit message. drivers/event/cnxk/cn9k_worker.h | 1 + drivers/net/cnxk/cn9k_tx.h

[PATCH v2 4/4] event/cnxk: restructure for cn10k datapath

2023-01-18 Thread Rahul Bhansali
recompilation time for independent changes. In case of Roc changes independent to datapath, the overall recompilation time is reduced from ~6 mins to ~17 secs. Signed-off-by: Rahul Bhansali --- Changes in v2: No changes. .../crypto/cnxk/cn10k_cryptodev_event_dp.h| 13 + drivers/crypto/cnxk

[PATCH v2 3/4] crypto/cnxk: restructure for cn10k datapath

2023-01-18 Thread Rahul Bhansali
From: Anoob Joseph Inclusion of roc_api.h in all files would mean any change in RoC API would result in recompilation of all cnxk drivers. Address this issue in crypto_cnxk drivers by including only the headers that are required. Signed-off-by: Anoob Joseph --- Changes in v2: Updated git commen

[PATCH v2 2/4] net/cnxk: restructure for cn10k datapath

2023-01-18 Thread Rahul Bhansali
Restructure for separate cn10k datapath functionality to reduce recompilation time in case of any changes in control path. New cnxk_ethdev_dp.h and cn10k_rxtx.h files are created to have macros, functions as required for datapath with minimal dependency on roc changes. Signed-off-by: Rahul

[PATCH v2 1/4] common/cnxk: restructure for cn10k datapath

2023-01-18 Thread Rahul Bhansali
Restructure for separate datapath functionality to reduce recompilation time. New *_dp.h are created to have macros, functions as required for datapath. Signed-off-by: Rahul Bhansali --- Changes in v2: Rebased to next-net-mrvl, No code changes. drivers/common/cnxk/roc_api.h| 6

RE: [EXT] Re: [PATCH 2/4] net/cnxk: restructure for cn10k datapath

2023-01-17 Thread Rahul Bhansali
> -Original Message- > From: Jerin Jacob > Sent: Tuesday, January 17, 2023 2:22 PM > To: Rahul Bhansali > Cc: dev@dpdk.org; Nithin Kumar Dabilpuram ; > Kiran Kumar Kokkilagadda ; Sunil Kumar Kori > ; Satha Koteswara Rao Kottidi > ; Jerin Jacob Kollanukkaran >

[PATCH 4/4] event/cnxk: restructure for cn10k datapath

2022-12-21 Thread Rahul Bhansali
recompilation time for independent changes. In case of Roc changes independent to datapath, the overall recompilation time is reduced from ~6 mins to ~17 secs. Signed-off-by: Rahul Bhansali --- .../crypto/cnxk/cn10k_cryptodev_event_dp.h| 13 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 2

[PATCH 3/4] crypto/cnxk: include only files that are used

2022-12-21 Thread Rahul Bhansali
From: Anoob Joseph Inclusion of roc_api.h in all files would mean any change in RoC API would result in recompilation of all cnxk drivers. Address this issue in crypto_cnxk drivers by including only the headers that are required. Signed-off-by: Anoob Joseph --- drivers/common/cnxk/cnxk_securit

[PATCH 2/4] net/cnxk: restructure for cn10k datapath

2022-12-21 Thread Rahul Bhansali
Restructure for separate cn10k datapath functionality to reduce recompilation time in case of any changes in control path. New cnxk_ethdev_dp.h and cn10k_rxtx.h files are created to have macros, functions as required for datapath with minimal dependency on roc changes. Signed-off-by: Rahul

[PATCH 1/4] common/cnxk: restructure for cn10k datapath

2022-12-21 Thread Rahul Bhansali
Restructure for separate datapath functionality to reduce recompilation time. New *_dp.h are created to have macros, functions as required for datapath. Signed-off-by: Rahul Bhansali --- Depends-on: series-25906 ("[01/11] common/cnxk: free pending sqe buffers") Depends-on: series-2

[PATCH] event/cnxk: wait for CPT fc on wqe path

2022-12-09 Thread Rahul Bhansali
Wait for CPT flow control on WQE path. Signed-off-by: Rahul Bhansali --- drivers/event/cnxk/cn9k_worker.h | 1 + drivers/net/cnxk/cn9k_tx.h | 10 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/event/cnxk/cn9k_worker.h b/drivers/event/cnxk/cn9k_worker.h index

[PATCH 2/2] net/cnxk: update IPsec completion code handling

2022-11-14 Thread Rahul Bhansali
Update IPsec handling with reference from UCODE version OCPT-04-IE-IPSEC-MC-30-01-28-00 Signed-off-by: Rahul Bhansali --- drivers/net/cnxk/cn10k_rx.h | 170 1 file changed, 95 insertions(+), 75 deletions(-) diff --git a/drivers/net/cnxk/cn10k_rx.h b/drivers

[PATCH 1/2] common/cnxk: update IPsec completion codes

2022-11-14 Thread Rahul Bhansali
Update the IPsec completion codes as per UCODE version OCPT-04-IE-IPSEC-MC-30-01-28-00 Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/hw/cpt.h | 2 ++ drivers/common/cnxk/roc_cpt.c | 2 +- drivers/common/cnxk/roc_ie_ot.h | 21

  1   2   >