[dpdk-dev] [PATCH v3 15/27] net/cnxk: support meter ops get API

2021-09-30 Thread skori
From: Sunil Kumar Kori To enable support for ingress meter, supported operations are exposed for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention

[dpdk-dev] [PATCH v3 16/27] net/cnxk: support ops to get meter capabilities

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement ethdev operation to get meter capabilities for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention v2: - Rebase su

[dpdk-dev] [PATCH v3 17/27] net/cnxk: support ops to create meter profile

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to add meter profile for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention v2: - Rebase support on latest DP

[dpdk-dev] [PATCH v3 18/27] net/cnxk: support ops to delete meter profile

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to delete meter profile for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention v2: - Rebase support on latest

[dpdk-dev] [PATCH v3 19/27] net/cnxk: support ops to validate meter policy

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to validate meter policy for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention v2: - Rebase support on lates

[dpdk-dev] [PATCH v3 20/27] net/cnxk: support ops to create meter policy

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to add meter policy for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention v2: - Rebase support on latest DPD

[dpdk-dev] [PATCH v3 21/27] net/cnxk: support ops to delete meter policy

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to delete meter policy for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention v2: - Rebase support on latest

[dpdk-dev] [PATCH v3 22/27] net/cnxk: support ops to create meter

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to create meter instance for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention v2: - Rebase support on lates

[dpdk-dev] [PATCH v3 23/27] net/cnxk: support ops to delete meter

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to delete meter instance for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention v2: - Rebase support on lates

[dpdk-dev] [PATCH v3 24/27] net/cnxk: support ops to enable/disable meter

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to enable or disable meter instance for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming convention v2: - Rebase suppo

[dpdk-dev] [PATCH v3 25/27] net/cnxk: support ops to update precolor DSCP table

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to update DSCP table for pre-coloring for incoming packet per nixlf for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix namin

[dpdk-dev] [PATCH v3 26/27] net/cnxk: support ops to read/update meter stats

2021-09-30 Thread skori
From: Sunil Kumar Kori Implement API to read and update stats corresponding to given meter instance for CN10K platform. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy - Fix naming con

[dpdk-dev] [PATCH v3 27/27] net/cnxk: support meter action to flow create

2021-09-30 Thread skori
From: Sunil Kumar Kori Meters are configured per flow using rte_flow_create API. Implement support for meter action applied on the flow. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- v3: - Rebase support on latest DPDK - Handled multilevel chaining for tree hierarchy

[PATCH v3 1/1] ethdev: support congestion management

2022-09-29 Thread skori
From: Jerin Jacob NIC HW controllers often come with congestion management support on various HW objects such as Rx queue depth or mempool queue depth. Also, it can support various modes of operation such as RED (Random early discard), WRED etc on those HW objects. This patch adds a framework t

[PATCH v2 1/3] app/testpmd: support congestion management CLIs

2022-09-29 Thread skori
From: Sunil Kumar Kori Support congestion management CLIs. Depends-on: patch-24902 ("ethdev: support congestion management") Signed-off-by: Sunil Kumar Kori --- v1..v2: - Rebase on top of the dpdk-next-net-mrvl/for-next-net app/test-pmd/cmdline.c | 15 + app/test-pmd/c

[PATCH v2 3/3] net/cnxk: support congestion management ops

2022-09-29 Thread skori
From: Sunil Kumar Kori Support congestion management. Depends-on: patch-24902 ("ethdev: support congestion management") Signed-off-by: Sunil Kumar Kori --- v1..v2: - Rebase on top of the dpdk-next-net-mrvl/for-next-net - Aligned with congestion management v3 spec doc/guides/nics/features/c

[PATCH v2 2/3] common/cnxk: add congestion management ROC APIs

2022-09-29 Thread skori
From: Sunil Kumar Kori Add congestion management RoC APIs. Depends-on: patch-24902 ("ethdev: support congestion management") Signed-off-by: Sunil Kumar Kori --- v1..v2: - Rebase on top of the dpdk-next-net-mrvl/for-next-net drivers/common/cnxk/roc_nix.h | 5 ++ drivers/common/cnxk/r

[dpdk-dev] [PATCH 01/27] common/cnxk: update policer MBOX APIs and HW definitions

2021-09-06 Thread skori
From: Sunil Kumar Kori To support ingress policer on CN10K, MBOX interfaces and HW definitions are synced. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/hw/nix.h | 13 ++--- drivers/common/cnxk/roc_mbox.h | 34 +- 2 files changed, 43 insertio

[dpdk-dev] [PATCH 02/27] common/cnxk: support RoC API to get level to index

2021-09-06 Thread skori
From: Sunil Kumar Kori CN10K platform supports policer up to 3 level of hierarchy. Implement RoC API to get corresponding index for given level. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_nix.h | 11 +++ drivers/common/cn

[dpdk-dev] [PATCH 03/27] common/cnxk: support RoC API to get profile count

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement interface to get available profile count for given nixlf. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 5 drivers/common/cnxk/roc_nix_bpf.c | 46 +++ drivers/common/cnxk/version.map | 1 + 3 files

[dpdk-dev] [PATCH 04/27] common/cnxk: support RoC API to alloc bandwidth profiles

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement RoC API to allocate HW resources i.e. bandwidth profiles for policer processing on CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 11 drivers/common/cnxk/roc_nix_bpf.c | 104 ++ drivers/

[dpdk-dev] [PATCH 05/27] common/cnxk: support RoC API to free bandwidth profiles

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement RoC interface to free HW bandwidth profiles on CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 6 + drivers/common/cnxk/roc_nix_bpf.c | 40 +++ drivers/common/cnxk/version.map | 2 ++ 3

[dpdk-dev] [PATCH 06/27] common/cnxk: support RoC API to configure bandwidth profile

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement RoC API to configure HW bandwidth profile for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 108 +++ drivers/common/cnxk/roc_nix_bpf.c | 223 ++ drivers/common/cnxk/version.map

[dpdk-dev] [PATCH 07/27] common/cnxk: support RoC API to toggle profile state

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement RoC API to enable or disable HW bandwidth profiles on CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 4 drivers/common/cnxk/roc_nix_bpf.c | 36 +++ drivers/common/cnxk/version.map | 1

[dpdk-dev] [PATCH 08/27] common/cnxk: support RoC API to dump bandwidth profile

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement RoC API to dump bandwidth profile on CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 3 ++ drivers/common/cnxk/roc_nix_bpf.c | 86 ++ drivers/common/cnxk/roc_platform.h | 1 + drivers/commo

[dpdk-dev] [PATCH 09/27] common/cnxk: support RoC API to setup precolor table

2021-09-06 Thread skori
From: Sunil Kumar Kori For initial coloring of input packet, CN10K platform maintains precolor table for VLAN, DSCP and Generic. Implement RoC interface to setup pre color table. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 20 drivers/common/cnxk/roc_nix_bpf.c

[dpdk-dev] [PATCH 10/27] common/cnxk: support RoC API to connect bandwidth profiles

2021-09-06 Thread skori
From: Sunil Kumar Kori To maintain chain of bandwidth profiles, they needs to be connected. Implement RoC API to connect two bandwidth profiles at different levels. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 6 ++ drivers/common/cnxk/roc_nix_bpf.c | 36 +++

[dpdk-dev] [PATCH 11/27] common/cnxk: support RoC API to get stats to index

2021-09-06 Thread skori
From: Sunil Kumar Kori CN10K platform supports different stats for HW bandwidth profiles. Implement RoC API to get index for given stats type. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 18 drivers/common/cnxk/roc_nix_bpf.c | 34 +++

[dpdk-dev] [PATCH 12/27] common/cnxk: support RoC API to read profile statistics

2021-09-06 Thread skori
From: Sunil Kumar Kori CN10K platform provides statistics per bandwidth profile and per nixlf. Implement RoC API to read stats for given bandwidth profile. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 9 ++ drivers/common/cnxk/roc_nix_bpf.c | 197 ++

[dpdk-dev] [PATCH 13/27] common/cnxk: support RoC API to reset profile stats

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement RoC API to reset stats per bandwidth profile or per nixlf. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 7 ++ drivers/common/cnxk/roc_nix_bpf.c | 113 ++ drivers/common/cnxk/version.map | 2 + 3 files

[dpdk-dev] [PATCH 14/27] common/cnxk: support meter in action list

2021-09-06 Thread skori
From: Sunil Kumar Kori Meter action is added in supported action list. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_npc.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h index bab25fd72e..085

[dpdk-dev] [PATCH 15/27] net/cnxk: support meter ops get API

2021-09-06 Thread skori
From: Sunil Kumar Kori To enable support for ingress meter, supported operations are exposed for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev.c | 1 + drivers/net/cnxk/cn10k_ethdev.h | 2 ++ drivers/net/cnxk/cn10k_ethdev_mtr.c | 18 +++

[dpdk-dev] [PATCH 16/27] net/cnxk: support ops to get meter capabilities

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement ethdev operation to get meter capabilities for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 48 + 1 file changed, 48 insertions(+) diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c b/driv

[dpdk-dev] [PATCH 17/27] net/cnxk: support ops to create meter profile

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to add meter profile for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 104 drivers/net/cnxk/cnxk_ethdev.h | 13 2 files changed, 117 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH 18/27] net/cnxk: support ops to delete meter profile

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to delete meter profile for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 30 + 1 file changed, 30 insertions(+) diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c b/drivers/net/cnxk/cn

[dpdk-dev] [PATCH 19/27] net/cnxk: support ops to validate meter policy

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to validate meter policy for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 63 + 1 file changed, 63 insertions(+) diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c b/drivers/net/cnxk/c

[dpdk-dev] [PATCH 20/27] net/cnxk: support ops to create meter policy

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to add meter policy for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 47 + drivers/net/cnxk/cnxk_ethdev.h | 12 2 files changed, 59 insertions(+) diff --git a/drivers/ne

[dpdk-dev] [PATCH 21/27] net/cnxk: support ops to delete meter policy

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to delete meter policy for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c b/drivers/net/cnxk/cn10k_

[dpdk-dev] [PATCH 22/27] net/cnxk: support ops to create meter

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to create meter instance for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 75 + drivers/net/cnxk/cnxk_ethdev.h | 20 2 files changed, 95 insertions(+) diff --git a/drive

[dpdk-dev] [PATCH 23/27] net/cnxk: support ops to delete meter

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to delete meter instance for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 82 + 1 file changed, 82 insertions(+) diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c b/drivers/net/cnxk/c

[dpdk-dev] [PATCH 24/27] net/cnxk: support ops to enable/disable meter

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to enable or disable meter instance for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 60 + 1 file changed, 60 insertions(+) diff --git a/drivers/net/cnxk/cn10k_ethdev_mtr.c b/drivers

[dpdk-dev] [PATCH 25/27] net/cnxk: support ops to update precolor DSCP table

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to update DSCP table for pre-coloring for incoming packet per nixlf for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 43 + drivers/net/cnxk/cnxk_ethdev.h | 1 + 2 files changed,

[dpdk-dev] [PATCH 26/27] net/cnxk: support ops to read/update meter stats

2021-09-06 Thread skori
From: Sunil Kumar Kori Implement API to read and update stats corresponding to given meter instance for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cn10k_ethdev_mtr.c | 141 1 file changed, 141 insertions(+) diff --git a/drivers/net/cnxk/c

[dpdk-dev] [PATCH 27/27] net/cnxk: support meter action to flow create

2021-09-06 Thread skori
From: Sunil Kumar Kori Meters are configured per flow using rte_flow_create API. Implement support for meter action applied on the flow. Signed-off-by: Sunil Kumar Kori --- doc/guides/nics/features/cnxk.ini| 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cn10k_ethdev

[PATCH v3 1/1] app/testpmd: support congestion management CLIs

2022-11-29 Thread skori
From: Sunil Kumar Kori Support congestion management CLIs. Signed-off-by: Sunil Kumar Kori Acked-by: Aman Singh --- v2..v3: - Move Congestion management document section near TM section - Rebase on top of the dpdk/main v1..v2: - Rebase on top of the dpdk-next-net-mrvl/for-next-net app/tes

[PATCH v4 1/1] app/testpmd: support congestion management CLIs

2022-12-01 Thread skori
From: Sunil Kumar Kori Support congestion management CLIs. Signed-off-by: Sunil Kumar Kori Acked-by: Aman Singh --- v3..v4: - Fix build error v2..v3: - Move Congestion management document section near TM section - Rebase on top of the dpdk/main v1..v2: - Rebase on top of the dpdk-next-net-

[PATCH] net/cnxk: add threshold validation for RED config

2023-01-02 Thread skori
From: Sunil Kumar Kori Validation is added to check minimum and maximum RED threshold values, passed by user. Fixes: b7d3a0fe71eb ("net/cnxk: support congestion management operations") Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev_cman.c | 5 + 1 file changed, 5 inserti

[PATCH] common/cnxk: reduce channel count per LMAC

2023-01-03 Thread skori
From: Sunil Kumar Kori Due to limitation, imposed by latest kernel, maximum number of channel supported per LMAC is reduced to 8. Because of this change application gets failed to initialize for more channels. Also this limitation impacts PFC functional behaviour. So patch just aligns the suppo

[PATCH v2 1/1] ethdev: add protocol param to color table update

2022-08-23 Thread skori
From: Sunil Kumar Kori Using rte_mtr_color_in_protocol_set(), user can configure combination of protocol headers, like outer_vlan and outer_ip, can be enabled on given meter object. But rte_mtr_meter_vlan_table_update() and rte_mtr_meter_dscp_table_update() do not have information that which tab

[PATCH v10 2/2] net/cnxk: support priority flow control

2022-02-22 Thread skori
From: Sunil Kumar Kori Adds support for priority flow control support for CNXK platforms. Signed-off-by: Sunil Kumar Kori --- v1..v2: - fix application restart issue. v2..v3: - fix pause quanta configuration for cn10k. - fix review comments. v3..v4: - fix PFC configuration with other ty

[PATCH v10 1/2] common/cnxk: support priority flow ctrl config API

2022-02-22 Thread skori
From: Sunil Kumar Kori CNXK platforms support priority flow control(802.1qbb) to pause respective traffic per class on that link. Adds RoC interface to configure priority flow control on MAC block i.e. CGX on cn9k and RPM on cn10k. Signed-off-by: Sunil Kumar Kori --- v1..v2: - fix RoC API nam

[PATCH v11 2/2] net/cnxk: support priority flow control

2022-02-22 Thread skori
From: Sunil Kumar Kori Adds support for priority flow control support for CNXK platforms. Signed-off-by: Sunil Kumar Kori --- v1..v2: - fix application restart issue. v2..v3: - fix pause quanta configuration for cn10k. - fix review comments. v3..v4: - fix PFC configuration with other ty

[PATCH v11 1/2] common/cnxk: support priority flow ctrl config API

2022-02-22 Thread skori
From: Sunil Kumar Kori CNXK platforms support priority flow control(802.1qbb) to pause respective traffic per class on that link. Adds RoC interface to configure priority flow control on MAC block i.e. CGX on cn9k and RPM on cn10k. Signed-off-by: Sunil Kumar Kori --- v1..v2: - fix RoC API nam

[PATCH v3 1/1] ethdev: mtr: support input color selection

2022-03-01 Thread skori
From: Jerin Jacob Currently, meter object supports only DSCP based on input color table, The patch enhance that to support VLAN based input color table, color table based on inner field for the tunnel use case, and support for fallback color per meter if packet based on a different field. All of

[PATCH v1 1/3] common/cnxk: update precolor table setup for VLAN

2022-03-01 Thread skori
From: Sunil Kumar Kori As per new spec in DPDK, VLAN priority is supported for precoloring of input packet. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h

[PATCH v1 2/3] net/cnxk: support ops to update precolor VLAN table

2022-03-01 Thread skori
From: Sunil Kumar Kori Implement API to update VLAN table for pre-coloring for incoming packet per nixlf for CN10K platform. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.h | 2 +- drivers/net/cnxk/cnxk_ethdev_mtr.c | 214 + 2 files changed,

[PATCH v1 3/3] app/testpmd: support different input color method

2022-03-01 Thread skori
From: Sunil Kumar Kori Support for input coloring is added based on VLAN. Patch adds support for the same. Signed-off-by: Sunil Kumar Kori --- app/test-pmd/cmdline.c | 1 + app/test-pmd/cmdline_mtr.c | 348 - app/test-pmd/cmdline_mtr.h | 1 + 3 files

[PATCH] net/cnxk: fix crash during hotplug detach operation

2022-03-29 Thread skori
From: Sunil Kumar Kori hot_plug application does not perform any port setup configuration via rte_eth_dev_configure() API. All the probed Ethernet ports do not contain any Rx and Tx queues. While detaching a device via rte_eal_hotplug_remove(), CNXK driver expects Rx and Tx queues structures pop

[dpdk-dev] [PATCH] net/octeontx2: fix corruption in segments list

2020-12-21 Thread skori
From: Sunil Kumar Kori On Tx, lastseg->next is not being reset to null for multi segmented packet and same mbuf can be used on Rx which has a stale mbuf entry into mbuf->next. On Rx, application receives mbuf with mbuf->next uninitialized though mbuf->nb_segs is correct. Application iterates ove

[dpdk-dev] [PATCH v3] trace: fix compilation with C++

2020-08-12 Thread skori
From: Pawel Wodkowski trace_mem is declared as 'void *' which triggers following error: '...invalid conversion from ‘void*’ to ‘__rte_trace_header*’ [-fpermissive]...' Fix this by adding proper typecast to 'struct __rte_trace_header *'. Fixes: ebaee6409702 ("trace: simplify trace point headers"

[PATCH 1/3] common/cnxk: fix build warnings on ubuntu 24.04

2024-11-13 Thread skori
From: Sunil Kumar Kori Bugzilla ID: 1513 Fixes: 39ac394aa7a8 ("common/cnxk: fix device MSI-X greater than default value") Cc: sta...@dpdk.org Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnx

[PATCH 3/3] net/cnxk: fix build warnings on ubuntu 24.04

2024-11-13 Thread skori
From: Sunil Kumar Kori Bugzilla ID: 1513 Fixes: 03b152389fb1 ("net/cnxk: add option to enable custom inbound SA") Fixes: 7df4ead35436 ("net/cnxk: support parsing custom SA action") Fixes: 47cca253d605 ("net/cnxk: support Rx inject") Cc: sta...@dpdk.org Signed-off-by: Sunil Kumar Kori --- drive

[PATCH 2/3] regex/cn9k: fix build warnings on ubuntu 24.04

2024-11-13 Thread skori
From: Sunil Kumar Kori Bugzilla ID: 1513 Fixes: 72c00ae9dba7 ("regex/cn9k: use cnxk infrastructure") Cc: sta...@dpdk.org Signed-off-by: Sunil Kumar Kori --- drivers/regex/cn9k/cn9k_regexdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regex/cn9k/cn9k_regexdev.c

[PATCH] net/cnxk: restore MAC address table during port reset

2025-04-08 Thread skori
From: Sunil Kumar Kori When user requests to configure a device which is already in configured state then first device gets resets to default and then reconfigured with latest parameters. While resetting the device, MAC address table is left stale which causes entry update in later state. Hence

[PATCH] ethdev: remove callback checks from fast path

2025-04-29 Thread skori
From: Sunil Kumar Kori rte_eth_fp_ops contains ops for fast path APIs. Each API validates availability of callback and then invoke it. Removing these NULL checks instead using dummy callbacks. Signed-off-by: Sunil Kumar Kori --- lib/ethdev/ethdev_driver.c | 47 ++ lib/ethd

[PATCH v2 1/2] ethdev: remove unnecessary type conversion

2025-05-12 Thread skori
From: Sunil Kumar Kori As rte_eth_rx_queue_count() returns signed value to represent the error cases but internally invoked callback is returning unsigned value. Hence unnecessary type conversion is done. To avoid this typecasting from signed to unsigned, fixed return type of callback functions.

[PATCH v2 2/2] ethdev: remove callback checks from fast path

2025-05-12 Thread skori
From: Sunil Kumar Kori rte_eth_fp_ops contains ops for fast path APIs. Each API validates availability of callback and then invoke it. These checks impact data path performace. Hence removing these NULL checks instead using dummy callbacks. Signed-off-by: Sunil Kumar Kori --- lib/ethdev/ethde

[PATCH v2 2/2] app/testpmd: clear stale internal len information

2025-05-20 Thread skori
From: Sunil Kumar Kori hdr_lens is used to maintain header lengths after parsing packets. When port receives different type of packets (say first is VXLAN packet and second is GRE packet). For first packet, L2/L3/L4 lengths are set for inner and outer header alongwith tunnel_len. Now for second

[PATCH v2 1/2] net: fix offset calculation for GENEVE packet

2025-05-21 Thread skori
From: Sunil Kumar Kori While parsing packet headers, offset must be added to get next header but for geneve header parsing offset is overwritten. Also inner_l2_len is not set in case of geneve packets. Fixes: 64ed7f854cf4 ("net: add tunnel packet type parsing") Signed-off-by: Sunil Kumar Kori

[PATCH 1/2] net: fix offset calculation for GENEVE packet

2025-05-19 Thread skori
From: Sunil Kumar Kori While parsing packet headers, offset must be added to get next header but for geneve header parsing offset is overwritten. Also inner_l2_len is not set in case of geneve packets. Fixes: 64ed7f854cf4 ("net: add tunnel packet type parsing") Signed-off-by: Sunil Kumar Kori

[PATCH 2/2] app/testpmd: clear stale internal len information

2025-05-19 Thread skori
From: Sunil Kumar Kori hdr_lens is used to maintain header lengths after parsing packets. When port receives different type of packets (say first is VXLAN packet and second is GRE packet). For first packet, L2/L3/L4 lengths are set for inner and outer header alongwith tunnel_len. Now for second

[PATCH v2 1/1] net/cnxk: mark invalid MAC address if it doesn't exist

2025-05-27 Thread skori
From: Sunil Kumar Kori When user requests to configure a device which is already in configured state then first device gets resets to default and then reconfigured with latest parameters. While resetting the device, MAC address table is left stale which causes entry update in later state. Hence

[PATCH 4/7] net/cnxk: get speed capability from firmware

2025-06-05 Thread skori
From: Sunil Kumar Kori Currently speed capability is hardcoded to support defined modes and speeds but MAC can support others modes and speed too. This information is populated by firmware. Hence fetching firmware data to provide actual supported modes and speeds by the port. Signed-off-by: Nit

[PATCH 7/7] net/cnxk: report link mode

2025-06-05 Thread skori
From: Sunil Kumar Kori Reports link mode whether fixed or autonegotiation Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/cnxk/cnxk_link.c b/drivers/net/cnxk/c

[PATCH 5/7] net/cnxk: support link mode configuration

2025-06-05 Thread skori
From: Sunil Kumar Kori As a port can be configured to operate on specific mode and speed via struct rte_eth_conf::link_speeds in rte_eth_dev_configure() API. Implement mentioned configuration passed by user. Signed-off-by: Sunil Kumar Kori Signed-off-by: Nithin Dabilpuram --- drivers/net/cnx

[PATCH] ethdev: add support to provide link type

2025-06-05 Thread skori
From: Sunil Kumar Kori As a port can be configured at one of the supported speed which can be part of specific link mode. Port type helps to translate speed into the respective mode. Hence add support to provide link type as part of link status if available from ethdev driver. Signed-off-by: N

[PATCH 1/6] common/cnxk: support link mode configuration

2025-06-05 Thread skori
From: Sunil Kumar Kori CGX MAC can be configured into different modes and speeds as mentioned below: - fixed/autoneg - half/full duplex - 10M/100M/1G/10G etc speeds. Sync mailbox and implement that to configure above mentioned settings. Signed-off-by: Sunil Kumar Kori Signed-off-by: Nithin

[PATCH 2/6] common/cnxk: provide port type from fwdata

2025-06-05 Thread skori
From: Sunil Kumar Kori Retrieves type of port from firmware data. Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/hw/nix.h | 12 drivers/common/cnxk/roc_mbox.h| 13 +++-- drivers/common/cnxk/roc_nix.h | 1 + drivers/c

[PATCH 4/6] net/cnxk: support link mode configuration

2025-06-05 Thread skori
From: Sunil Kumar Kori As a port can be configured to operate on specific mode and speed via struct rte_eth_conf::link_speeds in rte_eth_dev_configure() API. Implement mentioned configuration passed by user. Signed-off-by: Sunil Kumar Kori Signed-off-by: Nithin Dabilpuram --- drivers/net/cnx

[PATCH 3/6] net/cnxk: get speed capability from firmware

2025-06-05 Thread skori
From: Sunil Kumar Kori Currently speed capability is hardcoded to support defined modes and speeds but MAC can support others modes and speed too. This information is populated by firmware. Hence fetching firmware data to provide actual supported modes and speeds by the port. Signed-off-by: Nit

[PATCH v2 1/1] ethdev: add support to provide link type

2025-06-06 Thread skori
From: Sunil Kumar Kori Adding link type parameter to provide the type of port like twisted pair, fibre etc. Also added an API to convert the RTE_ETH_LINK_TYPE_XXX to a readable string. Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori --- v1..v2: - Updated the commit message.

[PATCH 1/7] ethdev: add support to provide link type

2025-06-05 Thread skori
From: Sunil Kumar Kori Add support to provide link type as part of link status if available from ethdev driver. Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori --- lib/ethdev/ethdev_trace.h| 7 + lib/ethdev/ethdev_trace_points.c | 3 +++ lib/ethdev/rte_ethdev.c

[PATCH 2/7] common/cnxk: support link mode configuration

2025-06-05 Thread skori
From: Sunil Kumar Kori CGX MAC can be configured into different modes and speeds as mentioned below: - fixed/autoneg - half/full duplex - 10M/100M/1G/10G etc speeds. Sync mailbox and implement that to configure above mentioned settings. Signed-off-by: Sunil Kumar Kori Signed-off-by: Nithin

[PATCH 3/7] common/cnxk: provide port type from fwdata

2025-06-05 Thread skori
From: Sunil Kumar Kori Retrieves type of port from firmware data. Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/hw/nix.h | 12 drivers/common/cnxk/roc_mbox.h| 13 +++-- drivers/common/cnxk/roc_nix.h | 1 + drivers/c

[PATCH 6/7] net/cnxk: report link type and status

2025-06-05 Thread skori
From: Sunil Kumar Kori Retrieves type of port i.e. twisted pair, fibre etc from firmware and reports the same to user. Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 19 +++ drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/n

[PATCH 5/6] net/cnxk: report link type and status

2025-06-05 Thread skori
From: Sunil Kumar Kori Retrieves type of port i.e. twisted pair, fibre etc from firmware and reports the same to user. Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 19 +++ drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/n

[PATCH 6/6] net/cnxk: report link mode

2025-06-05 Thread skori
From: Sunil Kumar Kori Reports link mode whether fixed or autonegotiation Depends-on: patch-35378 ("ethdev: add support to provide link type") Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[PATCH v3 1/2] ethdev: remove unnecessary type conversion

2025-08-04 Thread skori
From: Sunil Kumar Kori As rte_eth_rx_queue_count() returns signed value to represent the error cases but internally invoked callback is returning unsigned value. Hence unnecessary type conversion is done. To avoid this typecasting from signed to unsigned, fixed return type of callback functions.

[PATCH v3 2/2] ethdev: remove callback checks from fast path

2025-08-04 Thread skori
From: Sunil Kumar Kori rte_eth_fp_ops contains ops for fast path APIs. Each API validates availability of callback and then invoke it. These checks impact data path performace. Hence removing these NULL checks instead using dummy callbacks. Signed-off-by: Sunil Kumar Kori Acked-by: Morten Brør

<    1   2   3   4