[dpdk-dev] [PATCH] net/thunderx: fix Tx desc corruption in scatter-gather mode

2018-11-08 Thread Nithin Dabilpuram
Signed-off-by: Subrahmanyam Nilla Signed-off-by: Nithin Dabilpuram --- drivers/net/thunderx/nicvf_rxtx.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/thunderx/nicvf_rxtx.c b/drivers/net/thunderx/nicvf_rxtx.c index 247c356..1c42874 100644 --- a/d

[dpdk-dev] [PATCH v4 1/2] app/testpmd: fix Tx VLAN and QinQ dependency

2019-04-05 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Tx VLAN & QinQ insert enable need not depend on Rx VLAN offload ETH_VLAN_EXTEND_OFFLOAD. For Tx VLAN insert enable, error check is now to see if QinQ was enabled but only single VLAN id is set. Fixes: 6a34f91690d0 ("app/testpmd: fix error message when settin

[dpdk-dev] [PATCH v4 2/2] app/testpmd: fix Tx QinQ set

2019-04-05 Thread Nithin Dabilpuram
From: Nithin Dabilpuram Enable DEV_TX_OFFLOAD_VLAN_INSERT also along with DEV_TX_OFFLOAD_VLAN_QINQ in tx_qinq_set() as it takes both vlan id's as arguments. Fixes: 597f9fafe13b ("app/testpmd: convert to new Tx offloads API") Cc: shah...@mellanox.com Signed-off-by: Nithin Dabil

[dpdk-dev] [PATCH] app/test-pmd: Fix buffer leak in tm cmdline

2018-07-04 Thread Nithin Dabilpuram
Free the buffer allocated for shared_shaper_id array in case of configuration without shared shapers. Signed-off-by: Nithin Dabilpuram --- app/test-pmd/cmdline_tm.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/test-pmd/cmdline_tm.c b/app/test-pmd

[dpdk-dev] [PATCH v2] app/testpmd: fix buffer leak in tm cmdline

2018-07-04 Thread Nithin Dabilpuram
Free the buffer allocated for shared_shaper_id array in case of configuration without shared shapers. Signed-off-by: Nithin Dabilpuram Acked-by: Jasvinder Singh --- v2 changes: - Modify subject to use proper keyword for test-pmd - Change author email address app/test-pmd/cmdline_tm.c | 16

[PATCH 2/9] common/cnxk: enable CQ late BP with valid CPT BPID

2023-01-16 Thread Nithin Dabilpuram
From: Satha Rao When FC enable requested for CPT, mbox returns allocated BPID. While configuring CQ consider this value to enable late back pressure. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_fc.c| 2 ++ drivers/common/cnxk/roc_nix_priv.h | 1 + drivers/common/cnxk/roc_ni

[PATCH 1/9] common/cnxk: get mbox lock before NDC sync

2023-01-16 Thread Nithin Dabilpuram
Take mbox lock before NDC sync to be thread safe. Also release the lock only after access to response is complete. Fixes: 7a978bc4be6b ("common/cnxk: support mailbox locking") Cc: rkuduruma...@marvell.com Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_tm.c | 10 +++

[PATCH 3/9] common/cnxk: configure fc hist bits

2023-01-16 Thread Nithin Dabilpuram
From: Satha Rao New parameter added inside SQ structure to control the fc_hyst_bits. Instead of count on all updates each SQ can tune his own hysteresis level. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/roc_nix_queue.c | 5 ++--- 2 files changed

[PATCH 4/9] net/cnxk: reset pfc mode and flow control

2023-01-16 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla reset pfc and flow control if pfc mode and flow control are set respectively during unintilization of pf or vf Signed-off-by: Rakesh Kudurumalla --- drivers/net/cnxk/cnxk_ethdev.c | 38 -- 1 file changed, 23 insertions(+), 15 deletions(-

[PATCH 5/9] common/cnxk: dump inline device RQ context

2023-01-16 Thread Nithin Dabilpuram
Dump inline device RQ context along with ethdev's RQ context. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_debug.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/common/cnxk/roc_nix_debug.c b/drivers/common/cnxk/roc_nix_debug.c

[PATCH 6/9] common/cnxk: free tm resources in order from leaf to root

2023-01-16 Thread Nithin Dabilpuram
Now that kernel is clearing parent info that is needed for flush, free the resources in order from leaf to root so that when SMQ flush is called there is always hierarchy present from SMQ till TL1. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_tm.c | 32

[PATCH 7/9] common/cnxk: update CPT inbound inline IPsec mailbox

2023-01-16 Thread Nithin Dabilpuram
From: Srujana Challa Updates CPT inbound inline configuration mailbox message format to set CPT credit threshold and bpid, which are introduced for CN10KB. This patch also fixes inline inbound config read API. Fixes: 37da58509579 ("common/cnxk: update inbound inline IPsec config mailbox") Cc: sc

[PATCH 8/9] net/cnxk: make flow control op for SDP as no-op

2023-01-16 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla no action is taken when application calls rte_eth_dev_flow_ctrl_get(), for sdp port which is inline with rte_eth_dev_flow_ctrl_set() for sdp port Signed-off-by: Rakesh Kudurumalla --- drivers/net/cnxk/cnxk_ethdev_ops.c | 3 +++ 1 file changed, 3 insertions(+) diff --g

[PATCH 9/9] common/cnxk: skip L4 checks on inline IPsec traffic

2023-01-16 Thread Nithin Dabilpuram
Skip L4 checks on inline IPsec traffic as even first fragment is set as valid ESP packet in order to send it via CPT. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_inl_dev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/common/cnxk

[PATCH 01/12] common/cnxk: use computed value for wqe skip

2022-06-16 Thread Nithin Dabilpuram
Use computed value for WQE skip instead of a hardcoded value. WQE skip needs to be number of 128B lines to accommodate rte_mbuf. Signed-off-by: Nithin Dabilpuram --- Depends-on: series=23500 ("common/cnxk: add cnf10kb support") drivers/common/cnxk/roc_nix_inl.h| 2 +- driv

[PATCH 04/12] common/cnxk: support same TC value across multiple queues

2022-06-16 Thread Nithin Dabilpuram
From: Harman Kalra User may want to configure same TC value across multiple queues, but for that all queues should have a common TL3 where this TC value will get configured. Changed the pfc_tc_cq_map/pfc_tc_sq_map array indexing to qid and store TC values in the array. As multiple queues may hav

[PATCH 02/12] common/cnxk: avoid CPT backpressure due to errata

2022-06-16 Thread Nithin Dabilpuram
Avoid enabling CPT backpressure due to errata where backpressure would block requests from even other CPT LF's. Also allow CQ size >=16K. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_errata.h | 7 +++ drivers/common/cnxk/roc_nix.h| 2 +- drivers/common/cnxk/roc_

[PATCH 09/12] net/cnxk: pfc class disable resulting in invalid behaviour

2022-06-16 Thread Nithin Dabilpuram
From: Harman Kalra Disabling a specific pfc class on a SQ is resulting in disabling PFC on the entire port. Signed-off-by: Harman Kalra Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cnxk_ethdev.c | 25 - drivers/net/cnxk/cnxk_ethdev.h | 1 - drivers

[PATCH 10/12] net/cnxk: resize CQ for Rx security for errata

2022-06-16 Thread Nithin Dabilpuram
Resize CQ for Rx security offload in case of HW errata. ci: skip_checkpatch skip_klocwork Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cnxk_ethdev.c | 43 +- drivers/net/cnxk/cnxk_ethdev.h | 2 +- 2 files changed, 43 insertions(+), 2 deletions

[PATCH 05/12] common/cnxk: enhance CPT parse header dump

2022-06-16 Thread Nithin Dabilpuram
Enhance CPT parse header dump to dump fragment info and swap pointers before printing. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_cpt_debug.c | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/drivers/common/cnxk

[PATCH 06/12] common/cnxk: fix mbox structs to avoid unaligned access

2022-06-16 Thread Nithin Dabilpuram
Fix mbox structs to avoid unaligned access as mbox memory is from BAR space. Fixes: 503b82de2cbf ("common/cnxk: add mbox request and response definitions") Fixes: e746aec161cc ("common/cnxk: fix SQ flush sequence") Signed-off-by: Nithin Dabilpuram --- drivers/common/cnx

[PATCH 07/12] net/cnxk: add SDP link status

2022-06-16 Thread Nithin Dabilpuram
From: Satananda Burla Add SDP link status reporting Signed-off-by: Satananda Burla --- drivers/net/cnxk/cnxk_link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/cnxk/cnxk_link.c b/drivers/net/cnxk/cnxk_link.c index b1d59e3..127c9e7 100644 --- a/drivers/

[PATCH 08/12] net/cnxk: remove restriction on VFs for PFC config

2022-06-16 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Currently PFC configuration is not allowed on VFs. Patch enables PFC configuration on VFs Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 9 +- drivers/net/cnxk/cnxk_ethdev.h | 13 +-- drivers/net/cnxk/cnxk_ethdev_ops.c | 219 +

[PATCH 11/12] net/cnxk: add SDP VF device ID for probe matching

2022-06-16 Thread Nithin Dabilpuram
From: Radha Mohan Chintakuntla Add SDP VF device ID in the table for probe matching. Signed-off-by: Radha Mohan Chintakuntla --- drivers/net/cnxk/cn10k_ethdev.c | 5 + drivers/net/cnxk/cn9k_ethdev.c | 6 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/net/cnxk/cn10k_ethdev.

[PATCH 12/12] event/cnxk: offset timestamp data only if enabled on port

2022-06-16 Thread Nithin Dabilpuram
Offset timestamp data only when enabled on the port instead of just checking for offload flags. Signed-off-by: Nithin Dabilpuram --- drivers/event/cnxk/cn10k_worker.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/event/cnxk/cn10k_worker.h b/drivers/event

[PATCH 03/12] common/cnxk: add PFC support for VFs

2022-06-16 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Current PFC implementation does not support VFs. Patch enables PFC on VFs too. Also fix the config of aura.bp to be based on number of buffers(aura.limit) and corresponding shift value(aura.shift). Fixes: cb4bfd6e7bdf ("event/cnxk: support Rx adapter") Signed-off-by: Suni

[PATCH v2 01/12] common/cnxk: use computed value for WQE skip

2022-06-16 Thread Nithin Dabilpuram
Use computed value for WQE skip instead of a hardcoded value. WQE skip needs to be number of 128B lines to accommodate rte_mbuf. Signed-off-by: Nithin Dabilpuram --- Depends-on: series=23500 ("common/cnxk: add cnf10kb support") v2: - Fixed commit message in 10/12, 1/12 patches driv

[PATCH v2 02/12] common/cnxk: avoid CPT backpressure due to errata

2022-06-16 Thread Nithin Dabilpuram
Avoid enabling CPT backpressure due to errata where backpressure would block requests from even other CPT LF's. Also allow CQ size >=16K. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_errata.h | 7 +++ drivers/common/cnxk/roc_nix.h| 2 +- drivers/common/cnxk/roc_

[PATCH v2 04/12] common/cnxk: support same TC value across multiple queues

2022-06-16 Thread Nithin Dabilpuram
From: Harman Kalra User may want to configure same TC value across multiple queues, but for that all queues should have a common TL3 where this TC value will get configured. Changed the pfc_tc_cq_map/pfc_tc_sq_map array indexing to qid and store TC values in the array. As multiple queues may hav

[PATCH v2 05/12] common/cnxk: enhance CPT parse header dump

2022-06-16 Thread Nithin Dabilpuram
Enhance CPT parse header dump to dump fragment info and swap pointers before printing. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_cpt_debug.c | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/drivers/common/cnxk

[PATCH v2 06/12] common/cnxk: fix mbox structs to avoid unaligned access

2022-06-16 Thread Nithin Dabilpuram
Fix mbox structs to avoid unaligned access as mbox memory is from BAR space. Fixes: 503b82de2cbf ("common/cnxk: add mbox request and response definitions") Fixes: e746aec161cc ("common/cnxk: fix SQ flush sequence") Signed-off-by: Nithin Dabilpuram --- drivers/common/cnx

[PATCH v2 07/12] net/cnxk: add SDP link status

2022-06-16 Thread Nithin Dabilpuram
From: Satananda Burla Add SDP link status reporting Signed-off-by: Satananda Burla --- drivers/net/cnxk/cnxk_link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/cnxk/cnxk_link.c b/drivers/net/cnxk/cnxk_link.c index b1d59e3..127c9e7 100644 --- a/drivers/

[PATCH v2 08/12] net/cnxk: remove restriction on VFs for PFC config

2022-06-16 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Currently PFC configuration is not allowed on VFs. Patch enables PFC configuration on VFs Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 9 +- drivers/net/cnxk/cnxk_ethdev.h | 13 +-- drivers/net/cnxk/cnxk_ethdev_ops.c | 219 +

[PATCH v2 09/12] net/cnxk: pfc class disable resulting in invalid behaviour

2022-06-16 Thread Nithin Dabilpuram
From: Harman Kalra Disabling a specific pfc class on a SQ is resulting in disabling PFC on the entire port. Signed-off-by: Harman Kalra Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cnxk_ethdev.c | 25 - drivers/net/cnxk/cnxk_ethdev.h | 1 - drivers

[PATCH v2 10/12] net/cnxk: resize CQ for Rx security for errata

2022-06-16 Thread Nithin Dabilpuram
Resize CQ for Rx security offload in case of HW errata. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cnxk_ethdev.c | 43 +- drivers/net/cnxk/cnxk_ethdev.h | 2 +- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/drivers/net/cnxk

[PATCH v2 11/12] net/cnxk: add SDP VF device ID for probe matching

2022-06-16 Thread Nithin Dabilpuram
From: Radha Mohan Chintakuntla Add SDP VF device ID in the table for probe matching. Signed-off-by: Radha Mohan Chintakuntla --- drivers/net/cnxk/cn10k_ethdev.c | 5 + drivers/net/cnxk/cn9k_ethdev.c | 6 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/net/cnxk/cn10k_ethdev.

[PATCH v2 12/12] event/cnxk: offset timestamp data only if enabled on port

2022-06-16 Thread Nithin Dabilpuram
Offset timestamp data only when enabled on the port instead of just checking for offload flags. Signed-off-by: Nithin Dabilpuram --- drivers/event/cnxk/cn10k_worker.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/event/cnxk/cn10k_worker.h b/drivers/event

[PATCH v2 03/12] common/cnxk: add PFC support for VFs

2022-06-16 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Current PFC implementation does not support VFs. Patch enables PFC on VFs too. Also fix the config of aura.bp to be based on number of buffers(aura.limit) and corresponding shift value(aura.shift). Fixes: cb4bfd6e7bdf ("event/cnxk: support Rx adapter") Signed-off-by: Suni

[PATCH v2 01/10] common/cnxk: fix shift offset for TL3 length disable

2022-01-21 Thread Nithin Dabilpuram
Fix shift offset for length disable flag in NIXX_AF_TL3X_SHAPE register to be 24 instead of zero similar to other level SHAPE registers. Also mask unused bits in adjust value. Fixes: 0885429c3028 ("common/cnxk: add NIX TM hierarchy enable/disable") Cc: sta...@dpdk.org Signed-off-

[PATCH v2 02/10] common/cnxk: use for loop in shaper profiles cleanup

2022-01-21 Thread Nithin Dabilpuram
From: Gowrishankar Muthukrishnan In shaper profiles cleanup, Klockwork static analyzer tool reports infinite loop although existing loop condition is alright. False positive may be due to tqh_first not checked in loop, hence switching to FOREACH_SAFE to make Klockwork happy. Signed-off-by: Gowri

[PATCH v2 03/10] common/cnxk: fix byte order of frag sizes and infos

2022-01-21 Thread Nithin Dabilpuram
Change the byte order of frag sizes and infos to match HW implementation. Fixes: 64a73ebd87bd ("common/cnxk: add CPT hardware definitions") Cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/hw/cpt.h | 14

[PATCH v2 04/10] common/cnxk: reset stale values on error debug registers

2022-01-21 Thread Nithin Dabilpuram
From: Harman Kalra LF's error debug registers like NIX_LF_SQ_OP_ERR_DBG, NIX_LF_MNQ_ERR_DBG, NIX_LF_SEND_ERR_DBG captures debug info for an error detected during LMT operation or meta enqueue or after meta enqueue granted respectively. HW sets a valid bit when info is captured and SW is expected

[PATCH v2 05/10] common/cnxk: always use single interrupt ID with NIX

2022-01-21 Thread Nithin Dabilpuram
From: Harman Kalra An errata exists whereby, in certain cases NIX may use an incorrect QINT_IDX for SQ interrupts. As a result, the interrupt may not be delivered to software, or may not be associated with the correct SQ. When NIX uses an incorrect QINT_IDX : 1. NIX_LF_QINT(0..63)_CNT[COUNT] will

[PATCH v2 06/10] common/cnxk: fix null pointer dereferences

2022-01-21 Thread Nithin Dabilpuram
Cc: sta...@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Nithin Dabilpuram Acked-by: Jerin Jacob --- drivers/common/cnxk/roc_cpt.c | 3 ++ drivers/common/cnxk/roc_dev.c | 19 drivers/common/cnxk/roc_nix_debug.c | 6 drivers/common/cnxk/r

[PATCH v2 07/10] common/cnxk: fix uninitialized variable issues

2022-01-21 Thread Nithin Dabilpuram
on Rx pause frames") Cc: sta...@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan Signed-off-by: Nithin Dabilpuram Acked-by: Jerin Jacob --- drivers/common/cnxk/roc_cpt.c| 4 ++-- drivers/common/cnxk/roc_dev.c| 2 +- drivers/common/cnxk/roc_nix_tm.c | 2 +- 3 files changed, 4 inser

[PATCH v2 08/10] net/cnxk: improve inbound inline error handling for cn9k

2022-01-21 Thread Nithin Dabilpuram
Improve inbound inline error handling for CN9K in terms of packet delivered to application for different kinds of errors. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_ie_on.h | 16 - drivers/net/cnxk/cn9k_rx.h | 50 +++-- 2

[PATCH v2 09/10] common/cnxk: set UDP ports for IPsec UDP encapsulation

2022-01-21 Thread Nithin Dabilpuram
Set UDP ports for IPsec UDP encapsulation feature in outbound inline. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/cnxk_security.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/cnxk/cnxk_security.c b/drivers/common/cnxk/cnxk_security.c index 30562b4

[PATCH v2 10/10] net/cnxk: synchronize inline session create and destroy

2022-01-21 Thread Nithin Dabilpuram
Synchronize inline session create and destroy using spinlock. Also move security related error prints outside the spinlock. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev_sec.c | 35 --- drivers/net/cnxk/cn9k_ethdev_sec.c | 32

[PATCH 1/4] examples/ipsec-secgw: update error prints to data path log

2022-02-06 Thread Nithin Dabilpuram
Update error prints in data path to RTE_LOG_DP(). Error prints in fast path are not good for performance as they slow down the application when few bad packets are received. Signed-off-by: Nithin Dabilpuram --- examples/ipsec-secgw/ipsec_worker.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH 2/4] examples/ipsec-secgw: disable Tx chksum offload for inline

2022-02-06 Thread Nithin Dabilpuram
-by: Nithin Dabilpuram --- examples/ipsec-secgw/ipsec-secgw.c | 3 --- examples/ipsec-secgw/sa.c | 9 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 21abc0d..d8a9bfa 100644 --- a

[PATCH 3/4] examples/ipsec-secgw: fix buffer free logic in vector mode

2022-02-06 Thread Nithin Dabilpuram
@marvell.com Cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram --- examples/ipsec-secgw/ipsec_worker.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/examples/ipsec-secgw/ipsec_worker.c b/examples/ipsec-secgw/ipsec_worker.c index e9493c5..8639426 100644 --- a

[PATCH 4/4] examples/ipsec-secgw: add per port pool and vector pool size

2022-02-06 Thread Nithin Dabilpuram
Add support to enable per port packet pool and also override vector pool size from command line args. This is useful on some HW to tune performance based on usecase. Signed-off-by: Nithin Dabilpuram --- examples/ipsec-secgw/event_helper.c | 17 ++-- examples/ipsec-secgw/event_helper.h | 2

[PATCH v2 1/4] examples/ipsec-secgw: update error prints to data path log

2022-02-06 Thread Nithin Dabilpuram
Update error prints in data path to RTE_LOG_DP(). Error prints in fast path are not good for performance as they slow down the application when few bad packets are received. Signed-off-by: Nithin Dabilpuram --- v2: - Fixed issue with warning in patch 4/4 by checking for session pool

[PATCH v2 3/4] examples/ipsec-secgw: fix buffer free logic in vector mode

2022-02-06 Thread Nithin Dabilpuram
@marvell.com Cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram --- examples/ipsec-secgw/ipsec_worker.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/examples/ipsec-secgw/ipsec_worker.c b/examples/ipsec-secgw/ipsec_worker.c index e9493c5..8639426 100644 --- a

[PATCH v2 2/4] examples/ipsec-secgw: disable Tx chksum offload for inline

2022-02-06 Thread Nithin Dabilpuram
-by: Nithin Dabilpuram --- examples/ipsec-secgw/ipsec-secgw.c | 3 --- examples/ipsec-secgw/sa.c | 9 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 21abc0d..d8a9bfa 100644 --- a

[PATCH v2 4/4] examples/ipsec-secgw: add per port pool and vector pool size

2022-02-06 Thread Nithin Dabilpuram
Add support to enable per port packet pool and also override vector pool size from command line args. This is useful on some HW to tune performance based on usecase. Signed-off-by: Nithin Dabilpuram --- examples/ipsec-secgw/event_helper.c | 17 ++-- examples/ipsec-secgw/event_helper.h | 2

[PATCH 01/20] common/cnxk: increase resource count for bitmap alloc

2022-02-06 Thread Nithin Dabilpuram
From: Satha Rao CN10K supports up to 832 resources at SMQ level, so increase bitmap count to 1024. Signed-off-by: Satha Rao --- Depends-on: Series-20935 ("common/cnxk: use XAQ create API for inline device") Depends-on: Series-20934 ("common/cnxk: add workaround for vWQE flush") drivers/common

[PATCH 03/20] common/cnxk: adjust shaper rates to lower boundaries

2022-02-06 Thread Nithin Dabilpuram
From: Satha Rao New api to get floor values for a requested shaper rate, which can assure packets should never be transmitted at a rate higher than configured. Keep the old api to get HW suggested values. And introduce new parameter to select appropriate api. Signed-off-by: Satha Rao --- driv

[PATCH 02/20] common/cnxk: realloc inline device XAQ AURA

2022-02-06 Thread Nithin Dabilpuram
Add support to realloc inline device XAQ AURA with more buffers of new packet pool AURA. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_inl.h | 1 + drivers/common/cnxk/roc_nix_inl_dev.c | 110 +- drivers/common/cnxk

[PATCH 06/20] common/cnxk: enable l3hdr write back in SA

2022-02-06 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Enable the field in SA to write back l2, l3 hdrs in case of errors during inline processing. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_ie_ot.c | 1 + drivers/common/cnxk/roc_ie_ot.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff

[PATCH 08/20] common/cnxk: use SSO time counter threshold for IRQ

2022-02-06 Thread Nithin Dabilpuram
Enable time counter based threshold for raising SSO EXE_INT instead of IAQ threshold. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_inl_dev_irq.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_nix_inl_dev_irq.c b

[PATCH 04/20] common/cnxk: support inline device API without ROC NIX

2022-02-06 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Update the inline device functions to work when roc_nix is NULL. This is required, as IPsec driver have to use these APIs to work with inline IPsec device, but the IPsec driver might not have roc_nix information. Signed-off-by: Vidya Sagar Velumuri --- drivers/common

[PATCH 09/20] common/cnxk: allow force use of SSO pffunc for outb inline

2022-02-06 Thread Nithin Dabilpuram
Allow force use of SSO pffunc even when inline dev is available so that in case driver needs events directly delivered to event device. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/roc_nix_inl.c | 7 ++- 2 files changed, 7 insertions

[PATCH 05/20] common/cnxk: use common SA init API for default options

2022-02-06 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Use common SA init API before doing initialization based on params. This is better so that all HW specific default values are at single place for lookaside and inline. Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk

[PATCH 07/20] common/cnxk: support to enable aura tail drop for RQ

2022-02-06 Thread Nithin Dabilpuram
Add support to enable aura tail drop via RQ specifically for inline device RQ's pkt pool. This is better than RQ red drop as it can be applied to all RQ's that are not having security enabled but using same packet pool. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk

[PATCH 10/20] net/cnxk: added Rx metadata negotiate operation

2022-02-06 Thread Nithin Dabilpuram
From: Satha Rao Added rx_metadata_negotiate api to enable mark update RX offload. Removed software logic to enable/disable mark update inside flow create/destroy apis. Signed-off-by: Satha Rao --- drivers/net/cnxk/cn10k_ethdev.c | 26 ++ drivers/net/cnxk/cn10k_rte_flo

[PATCH 12/20] net/cnxk: fix inline device RQ tag mask

2022-02-06 Thread Nithin Dabilpuram
;) Cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_inl.c | 2 +- drivers/net/cnxk/cnxk_ethdev.c| 9 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix_inl.c b/drivers/common/cnxk/roc_nix_inl.c index 003f97

[PATCH 11/20] common/cnxk: removed tracking of mark actions

2022-02-06 Thread Nithin Dabilpuram
From: Satha Rao Removed roc npc apis which tracks addition and deletion of mark actions. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_npc.c | 21 - drivers/common/cnxk/roc_npc.h | 3 --- drivers/common/cnxk/roc_npc_priv.h | 1 - drivers/common/cnxk/versi

[PATCH 13/20] net/cnxk: register callback early to handle initial packets

2022-02-06 Thread Nithin Dabilpuram
Register callback early to handle initial error packets from inline device. Fixes: 69daa9e5022b ("net/cnxk: support inline security setup for cn10k") Cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev.c | 6 ++ drivers/net/cnxk/cn10k_ethdev

[PATCH 14/20] net/cnxk: realloc inline dev XAQ for security

2022-02-06 Thread Nithin Dabilpuram
Realloc inline dev XAQ when Rx/Tx security ie enabled with new packet pool as XAQ should be large enough to hold all mbufs if inline outbound reports error or all mbufs. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cnxk_ethdev.c | 5 + 1 file changed, 5 insertions(+) diff --git a

[PATCH 15/20] net/cnxk: use raw mbuf free on inline sec err

2022-02-06 Thread Nithin Dabilpuram
Use raw mbuf free on inline sec error to simulate HW NPA free instead of doing rte_pktmbuf_free(). This is needed as the callback will not be called from DPDK lcore. Fixes: 69daa9e5022b ("net/cnxk: support inline security setup for cn10k") Cc: sta...@dpdk.org Signed-off-by: Nithin

[PATCH 16/20] net/cnxk: use NPA batch burst free for meta buffers

2022-02-06 Thread Nithin Dabilpuram
Currently meta buffers are freed in bursts of one LMT line i.e 15 pointers. Instead free them in bursts of 16 LMTlines which is 240 ptrs for better perf. Also mark mempool objects as get and put in missing places. Signed-off-by: Nithin Dabilpuram --- drivers/event/cnxk/cn10k_worker.h | 13

[PATCH 17/20] net/cnxk: enable packet pool tail drop

2022-02-06 Thread Nithin Dabilpuram
Enable packet pool tail drop on RQ when inbound security is not enabled. This is only part of the config. It is a NOP if tail drop is not enabled on NPA_AURA_CTX_S. And tail drop on packet pool AURA is enabled only when that packet pool aura is used by inline device RQ. Signed-off-by: Nithin

[PATCH 18/20] net/cnxk: enable flow control by default on device configure

2022-02-06 Thread Nithin Dabilpuram
Enable flow control by default on device configuration instead of basing it on Kernel behaviour. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cnxk_ethdev.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b

[PATCH 20/20] net/cnxk: add option to override outbound inline sa iv

2022-02-06 Thread Nithin Dabilpuram
Add option to override outbound inline sa iv for debug purposes via environment variable. User can set env variable as: export CN10K_ETH_SEC_IV_OVR="0x0, 0x0,..." Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev_sec.c | 62 + 1 fi

[PATCH 19/20] net/cnxk: add dev args for min-max spi

2022-02-06 Thread Nithin Dabilpuram
Add support for inline inbound SPI range via devargs instead of just max SPI value and range being 0..max. Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/cnxk.rst | 28 +- drivers/common/cnxk/roc_nix.h | 5 ++- drivers/common/cnxk/roc_nix_inl.c

[PATCH 01/13] common/cnxk: set MTU size on SDP based on SoC type

2022-10-11 Thread Nithin Dabilpuram
From: Sathesh Edara Set maximum frame size on SDP NIX side to 16KB for T93 A0-B0, F95N A0 and F95O A0 SOC type. Rest of the SoCs SDP NIX to 64KB. Signed-off-by: Sathesh Edara --- drivers/common/cnxk/hw/nix.h | 1 + drivers/common/cnxk/roc_errata.h | 8 drivers/common/cnxk/roc_mo

[PATCH 03/13] net/cnxk: fix later skip to include mbuf priv

2022-10-11 Thread Nithin Dabilpuram
Fix later skip to include mbuf priv data as mbuf->buf_addr is populated based on calculation including per-mbuf priv area. Fixes: 706eeae60757 ("net/cnxk: add multi-segment Rx for CN10K") cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_rx.h| 4

[PATCH 04/13] net/cnxk: add use nixtx offset for cn10kb

2022-10-11 Thread Nithin Dabilpuram
In outbound inline case, use NIX Tx offset instead of NIX Tx address for CN103XX as per new instruction format. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_constants.h | 1 + drivers/event/cnxk/cn10k_worker.h | 3 +++ drivers/net/cnxk/cn10k_ethdev.c | 6 ++ drivers

[PATCH 05/13] common/cnxk: fix RQ mask config for cn10kb chip

2022-10-11 Thread Nithin Dabilpuram
IX flow control") Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_fc.c | 4 ++- drivers/common/cnxk/roc_nix_inl.c | 43 +-- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnx

[PATCH 06/13] common/cnxk: fix schedule weight update

2022-10-11 Thread Nithin Dabilpuram
From: Satha Rao Each TX schedule config mail box supports maximum 20 register updates. This patch will send node weight updates in multiple mailbox when TM created with more than 20 scheduler nodes. Fixes: 464c9f919321 ("common/cnxk: support NIX TM dynamic update") Cc: ndabilpu...@marvell.com S

[PATCH 07/13] common/cnxk: sync NIX HW info mbox structure with kernel

2022-10-11 Thread Nithin Dabilpuram
From: Satha Rao Sync nix_hw_info structure with kernel. Maintain default RR_QUANTUM for VF TL2 same as kernel to make equal distribution among all VFs. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_mbox.h | 8 +- drivers/common/cnxk/roc_nix.c | 9 ++- drivers

[PATCH 08/13] common/cnxk: revert VF root weight

2022-10-11 Thread Nithin Dabilpuram
From: Satha Rao With kernel RR_QUANTUM some of the DPDK perf test (ipsec reassembly) was failing, so reverting this change. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_tm.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/common/cnxk/roc_nix_tm.c b/

[PATCH 09/13] common/cnxk: set hysteresis bit to one

2022-10-11 Thread Nithin Dabilpuram
From: Satha Rao Setting non zero FC_HYST_BITS to reduce mesh traffic on HW. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix_queue.c b/drivers/common/cnxk/roc_nix_queue.c index 7f00

[PATCH 11/13] common/cnxk: sync mailbox for channel and bpid map

2022-10-11 Thread Nithin Dabilpuram
From: Sunil Kumar Kori As per recent change in Linux-5.4.x, mailbox is updated to configure mapping between channel and BPID. Due to mbox mismatch, PFC was broken. Patch syncs mailbox definition for the same. Also fixes the PFC configuration issues. Signed-off-by: Sunil Kumar Kori --- drivers/

[PATCH 10/13] net/cnxk: handle SA soft packet and byte expiry events

2022-10-11 Thread Nithin Dabilpuram
From: Vamsi Attunuru Handle SA soft packet and byte expiry event for Inline outbound SA. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev_sec.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cn10k_ethdev_sec.c b/drivers/net/cnxk

[PATCH 12/13] net/cnxk: remove unnecessary dptr update

2022-10-11 Thread Nithin Dabilpuram
Also remove ESN update from ucode command word 0 based on latest ucode. Signed-off-by: Nithin Dabilpuram Signed-off-by: Vidya Sagar Velumuri --- drivers/event/cnxk/cn9k_worker.h | 1 - drivers/net/cnxk/cn10k_tx.h | 4 2 files changed, 5 deletions(-) diff --git a/drivers/event/cnxk

[PATCH 13/13] net/cnxk: remove duplicate mempool debug checks

2022-10-11 Thread Nithin Dabilpuram
Remove duplicate mempool debug checks for mbufs received. Fixes: 592642c494b1 ("net/cnxk: align prefetches to CN10K cache model") Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_rx.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/cnxk/cn10k_rx.h b/d

[PATCH 02/13] common/cnxk: add devargs for soft expiry poll frequency

2022-10-11 Thread Nithin Dabilpuram
Add support to override soft expiry poll frequency via devargs. Also provide helper API to indicate reassembly support on a chip and documentation for devargs that are already present. Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/cnxk.rst | 39

[PATCH v2 02/13] common/cnxk: add devargs for soft expiry poll frequency

2022-10-13 Thread Nithin Dabilpuram
Add support to override soft expiry poll frequency via devargs. Also provide helper API to indicate reassembly support on a chip and documentation for devargs that are already present. Fixes: 780b9c89241b ("net/cnxk: support zero AURA for inline meta") Signed-off-by: Nithin Dabilpuram

[PATCH v2 01/13] common/cnxk: set MTU size on SDP based on SoC type

2022-10-13 Thread Nithin Dabilpuram
From: Sathesh Edara Set maximum frame size on SDP NIX side to 16KB for T93 A0-B0, F95N A0 and F95O A0 SOC type. Rest of the SoCs SDP NIX to 64KB. Signed-off-by: Sathesh Edara --- v2: - Add fixes line in patch 1/13 - Squash patch 8/13 to 7/13 as 7/13 is the patch that introduced the bug - Add an

[PATCH v2 03/13] net/cnxk: fix later skip to include mbuf priv

2022-10-13 Thread Nithin Dabilpuram
Fix later skip to include mbuf priv data as mbuf->buf_addr is populated based on calculation including per-mbuf priv area. Fixes: 706eeae60757 ("net/cnxk: add multi-segment Rx for CN10K") cc: sta...@dpdk.org Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_rx.h| 4

[PATCH v2 04/13] net/cnxk: use NIX Tx offset for cn10kb

2022-10-13 Thread Nithin Dabilpuram
In outbound inline case, use NIX Tx offset instead of NIX Tx address for CN103XX as per new instruction format. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_constants.h | 1 + drivers/event/cnxk/cn10k_worker.h | 3 +++ drivers/net/cnxk/cn10k_ethdev.c | 6 ++ drivers

[PATCH v2 05/13] common/cnxk: fix RQ mask config for cn10kb chip

2022-10-13 Thread Nithin Dabilpuram
IX flow control") Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_fc.c | 4 ++- drivers/common/cnxk/roc_nix_inl.c | 43 +-- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnx

[PATCH v2 06/13] common/cnxk: fix schedule weight update

2022-10-13 Thread Nithin Dabilpuram
From: Satha Rao Each TX schedule config mail box supports maximum 20 register updates. This patch will send node weight updates in multiple mailbox when TM created with more than 20 scheduler nodes. Fixes: 464c9f919321 ("common/cnxk: support NIX TM dynamic update") Cc: ndabilpu...@marvell.com S

[PATCH v2 07/13] common/cnxk: sync NIX HW info mbox structure with kernel

2022-10-13 Thread Nithin Dabilpuram
From: Satha Rao Sync nix_hw_info structure with kernel. Maintain default RR_QUANTUM for VF TL2 same as kernel to make equal distribution among all VFs. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_mbox.h | 8 +- drivers/common/cnxk/roc_nix.c | 9 ++- drivers

[PATCH v2 08/13] common/cnxk: set hysteresis bit to one

2022-10-13 Thread Nithin Dabilpuram
From: Satha Rao Setting non zero FC_HYST_BITS to reduce mesh traffic on HW. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix_queue.c b/drivers/common/cnxk/roc_nix_queue.c index 7318

[PATCH v2 09/13] net/cnxk: handle SA soft packet and byte expiry events

2022-10-13 Thread Nithin Dabilpuram
From: Vamsi Attunuru Handle SA soft packet and byte expiry event for Inline outbound SA. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_ethdev_sec.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cn10k_ethdev_sec.c b/drivers/net/cnxk

[PATCH v2 10/13] common/cnxk: sync mailbox for channel and bpid map

2022-10-13 Thread Nithin Dabilpuram
From: Sunil Kumar Kori As per recent change in Linux-5.4.x, mailbox is updated to configure mapping between channel and BPID. Due to mbox mismatch, PFC was broken. Patch syncs mailbox definition for the same. Also fixes the PFC configuration issues. Signed-off-by: Sunil Kumar Kori --- drivers/

[PATCH v2 11/13] net/cnxk: remove unnecessary dptr update

2022-10-13 Thread Nithin Dabilpuram
Also remove ESN update from ucode command word 0 based on latest ucode. Signed-off-by: Nithin Dabilpuram Signed-off-by: Vidya Sagar Velumuri --- drivers/event/cnxk/cn9k_worker.h | 1 - drivers/net/cnxk/cn10k_tx.h | 4 2 files changed, 5 deletions(-) diff --git a/drivers/event/cnxk

  1   2   3   4   5   6   7   8   9   10   >