[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 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 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 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 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 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] 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 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 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 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 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 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 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 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 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 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 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 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 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] 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] 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 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 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 v2 1/1] net/cnxk: fix RSS config via ethdev configure API

2024-05-23 Thread skori
From: Sunil Kumar Kori Currently user passed RSS configuration is ignored via rte_eth_dev_configure() API. Instead default RSS setup is done by driver. Adding handling for user passed RSS configuration too via rte_eth_dev_configure(). Fixes: b75e0aca84b0 ("net/cnxk: add device configuration ope

[PATCH] net/cnxk: add RSS config via ethdev configure API

2024-04-10 Thread skori
From: Sunil Kumar Kori Currently user passed RSS configuration is ignored via rte_eth_dev_configure() API. Instead default RSS setup is done by driver. Adding handling for user passed RSS configuration too via rte_eth_dev_configure(). Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_

[PATCH v2 1/1] doc: update command scope information

2024-03-07 Thread skori
From: Sunil Kumar Kori Set of CLI commands are classified into following types; - Commands which must be used in script only. - Commands which must be used via telnet session only. - Commands which can be used either in script or via telnet session. Rename "Dynamic" column to "Scope" to provide

[PATCH v3 1/1] app/graph: generate cmdline boilerplate

2024-03-07 Thread skori
From: Sunil Kumar Kori Use the dpdk-cmdline-gen script to autogenerate all the boilerplate structs and defines for the commandline part of the application. Signed-off-by: Sunil Kumar Kori Acked-by: Bruce Richardson Acked-by: Nithin Dabilpuram --- v2..v3: - Rebase on top of the tree. v1..v2:

[PATCH] doc: update command scope information

2024-01-07 Thread skori
From: Sunil Kumar Kori Set of CLI commands are classified into following types; - Commands which must be used in script only. - Commands which must be used via telnet session only. - Commands which can be used either in script or via telnet session. Rename "Dynamic" column to "Scope" to provide

[PATCH v2 1/1] app/graph: generate cmdline boilerplate

2023-12-12 Thread skori
From: Sunil Kumar Kori Use the dpdk-cmdline-gen script to autogenerate all the boilerplate structs and defines for the commandline part of the application. Signed-off-by: Sunil Kumar Kori Acked-by: Bruce Richardson --- v1..v2: - Rebase and remove Depends-On: tag as dependent series is applied

[PATCH] app/graph: generate cmdline boilerplate

2023-12-06 Thread skori
From: Sunil Kumar Kori Use the dpdk-cmdline-gen script to autogenerate all the boilerplate structs and defines for the commandline part of the application. Depends-on: series-30459 ("enhancements for dpdk-cmdline-gen script") Signed-off-by: Sunil Kumar Kori --- app/graph/cli.c

[PATCH v11 12/12] app/graph: support l3fwd use case

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds an use case l3fwd. It contains a dedicated l3fwd.cli file mentioning commands to configure the required resources. Once application successfully parses the l3fwd.cli then a graph is created having below nodes: - ethdev_rx -> pkt_cls - pkt_cls -> ip4_lookup - pkt

[PATCH v11 11/12] app/graph: support CLI option to enable graph stats

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds application's command line parameter "--enable-graph-stats" to enable dumping graph stats on console. By default, no graph stats will be printed on console but same can be dumped via telnet session using "graph stats show" command. Signed-off-by: Sunil Kumar Kori Si

[PATCH v11 10/12] app/graph: support graph command line interfaces

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds graph module to create a graph for a given use case like l3fwd. Following commands are exposed: - graph [bsz ] [tmo ] [coremask ] \ model pcap_enable <0 | 1> num_pcap_pkts \ pcap_file - graph start - graph stats show - help graph Signed-off-

[PATCH v11 09/12] app/graph: support ethdev Rx command line interfaces

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds ethdev_rx module to create port-queue-core mapping. Mapping will be used to launch graph worker thread and dequeue packets on mentioned core from desired port/queue. Following commands are exposed: - ethdev_rx map port queue core - help ethdev_rx Signed-off-b

[PATCH v11 08/12] app/graph: support neigh command line interfaces

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds neigh module to configure arp/neigh. This module uses ipv4_rewrite and ipv6_rewrite node to write neigh information. Following commands are exposed: - neigh add ipv4 - neigh add ipv6 - help neigh Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumal

[PATCH v11 07/12] app/graph: support IPv6 lookup command line interfaces

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds ipv6_lookup module to configure LPM6 table. This LPM6 table will be used for IPv6 lookup and forwarding. Following commands are exposed: - ipv6_lookup route add ipv6 netmask via - help ipv6_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kuduruma

[PATCH v11 06/12] app/graph: support IPv4 lookup command line interfaces

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds ipv4_lookup module to configure LPM table. This LPM table will be used for IPv4 lookup and forwarding. Following commands are exposed: - ipv4_lookup route add ipv4 netmask via - help ipv4_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla

[PATCH v11 05/12] app/graph: support ethdev command line interfaces

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds ethdev module to configure ethernet devices. Following commands are exposed: - ethdev rxq txq - ethdev mtu - ethdev promiscuous - ethdev show - ethdev stats - ethdev ip4 addr add netmask - ethdev ip6 addr add netmask - help ethdev Signed-off-b

[PATCH v11 04/12] app/graph: support mempool command line interfaces

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds mempool module which will be creating mempools. Following commands are exposed: - mempool size buffers \ cache numa - help mempool User will add this command in .cli file according to its need. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh

[PATCH v11 03/12] app/graph: support parser utility APIs

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds some helper functions to parse IPv4, IPv6 and MAC addresses string into respective datatype. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla Acked-by: Jerin Jacob --- app/graph/meson.build | 1 + app/graph/module_api.h | 1 + app/graph/utils

[PATCH v11 02/12] app/graph: support telnet connectivity framework

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds framework to initiate a telnet session with application. Some configurations and debug commands are exposed as runtime APIs. Those commands can be invoked using telnet session. Application initiates a telnet server with host address 0.0.0.0 and port number 8086 by de

[PATCH v11 01/12] app/graph: support application CLI framework

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds base framework to read a given .cli file as a command line parameter "-s". Example: # ./dpdk-graph -c 0xff -- -s ./app/graph/examples/dummy.cli Each .cli file will contain commands to configure different module like mempool, ethdev, lookup tables, graph etc. Command

[PATCH v11 00/12] add CLI based graph application

2023-10-19 Thread skori
From: Sunil Kumar Kori In the continuation of following feedback https://patches.dpdk.org/project/dpdk/patch/20230425131516.3308612-5-vattun...@marvell.com/ this patch series adds dpdk-graph application to exercise various usecases using graph. 1. Each use case is defined in terms of .cli file w

[PATCH v10 12/12] app/graph: support l3fwd use case

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds an use case l3fwd. It contains a dedicated l3fwd.cli file mentioning commands to configure the required resources. Once application successfully parses the l3fwd.cli then a graph is created having below nodes: - ethdev_rx -> pkt_cls - pkt_cls -> ip4_lookup - pkt

[PATCH v10 11/12] app/graph: support CLI option to enable graph stats

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds application's command line parameter "--enable-graph-stats" to enable dumping graph stats on console. By default, no graph stats will be printed on console but same can be dumped via telnet session using "graph stats show" command. Signed-off-by: Sunil Kumar Kori Si

[PATCH v10 10/12] app/graph: support graph command line interfaces

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds graph module to create a graph for a given use case like l3fwd. Following commands are exposed: - graph [bsz ] [tmo ] [coremask ] \ model pcap_enable <0 | 1> num_pcap_pkts \ pcap_file - graph start - graph stats show - help graph Signed-off-

[PATCH v10 09/12] app/graph: support ethdev Rx command line interfaces

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds ethdev_rx module to create port-queue-core mapping. Mapping will be used to launch graph worker thread and dequeue packets on mentioned core from desired port/queue. Following commands are exposed: - ethdev_rx map port queue core - help ethdev_rx Signed-off-b

[PATCH v10 08/12] app/graph: support neigh command line interfaces

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds neigh module to configure arp/neigh. This module uses ipv4_rewrite and ipv6_rewrite node to write neigh information. Following commands are exposed: - neigh add ipv4 - neigh add ipv6 - help neigh Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumal

[PATCH v10 07/12] app/graph: support IPv6 lookup command line interfaces

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds ipv6_lookup module to configure LPM6 table. This LPM6 table will be used for IPv6 lookup and forwarding. Following commands are exposed: - ipv6_lookup route add ipv6 netmask via - help ipv6_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kuduruma

[PATCH v10 06/12] app/graph: support IPv4 lookup command line interfaces

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds ipv4_lookup module to configure LPM table. This LPM table will be used for IPv4 lookup and forwarding. Following commands are exposed: - ipv4_lookup route add ipv4 netmask via - help ipv4_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla

[PATCH v10 05/12] app/graph: support ethdev command line interfaces

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds ethdev module to configure ethernet devices. Following commands are exposed: - ethdev rxq txq - ethdev mtu - ethdev promiscuous - ethdev show - ethdev stats - ethdev ip4 addr add netmask - ethdev ip6 addr add netmask - help ethdev Signed-off-b

[PATCH v10 04/12] app/graph: support mempool command line interfaces

2023-10-19 Thread skori
From: Rakesh Kudurumalla Adds mempool module which will be creating mempools. Following commands are exposed: - mempool size buffers \ cache numa - help mempool User will add this command in .cli file according to its need. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh

[PATCH v10 03/12] app/graph: support parser utility APIs

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds some helper functions to parse IPv4, IPv6 and MAC addresses string into respective datatype. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla Acked-by: Jerin Jacob --- app/graph/meson.build | 1 + app/graph/module_api.h | 1 + app/graph/utils

[PATCH v10 02/12] app/graph: support telnet connectivity framework

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds framework to initiate a telnet session with application. Some configurations and debug commands are exposed as runtime APIs. Those commands can be invoked using telnet session. Application initiates a telnet server with host address 0.0.0.0 and port number 8086 by de

[PATCH v10 01/12] app/graph: support application CLI framework

2023-10-19 Thread skori
From: Sunil Kumar Kori Adds base framework to read a given .cli file as a command line parameter "-s". Example: # ./dpdk-graph -c 0xff -- -s ./app/graph/examples/dummy.cli Each .cli file will contain commands to configure different module like mempool, ethdev, lookup tables, graph etc. Command

[PATCH v10 00/12] add CLI based graph application

2023-10-19 Thread skori
From: Sunil Kumar Kori In the continuation of following feedback https://patches.dpdk.org/project/dpdk/patch/20230425131516.3308612-5-vattun...@marvell.com/ this patch series adds dpdk-graph application to exercise various usecases using graph. 1. Each use case is defined in terms of .cli file w

[PATCH v3 1/1] usertools/rss: add CNXK RSS key

2023-10-18 Thread skori
From: Sunil Kumar Kori This patch adds RSS key for CNXK platforms. CNXK platform uses 48 bytes long key for hash calculations. For the same patch also updates help mesaages to provide range information for supporting NICs/platforms. Also CNXK uses reta size as 64 so to get correct offset to ret

[PATCH v9 12/12] app/graph: support l3fwd use case

2023-10-17 Thread skori
From: Rakesh Kudurumalla Adds an use case l3fwd. It contains a dedicated l3fwd.cli file mentioning commands to configure the required resources. Once application successfully parses the l3fwd.cli then a graph is created having below nodes: - ethdev_rx -> pkt_cls - pkt_cls -> ip4_lookup - pkt

[PATCH v9 11/12] app/graph: support CLI option to enable graph stats

2023-10-17 Thread skori
From: Sunil Kumar Kori Adds application's command line parameter "--enable-graph-stats" to enable dumping graph stats on console. By default, no graph stats will be printed on console but same can be dumped via telnet session using "graph stats show" command. Signed-off-by: Sunil Kumar Kori Si

[PATCH v9 10/12] app/graph: support graph command line interfaces

2023-10-17 Thread skori
From: Rakesh Kudurumalla Adds graph module to create a graph for a given use case like l3fwd. Following commands are exposed: - graph [bsz ] [tmo ] [coremask ] \ model pcap_enable <0 | 1> num_pcap_pkts \ pcap_file - graph start - graph stats show - help graph Signed-off-

[PATCH v9 09/12] app/graph: support ethdev Rx command line interfaces

2023-10-17 Thread skori
From: Rakesh Kudurumalla Adds ethdev_rx module to create port-queue-core mapping. Mapping will be used to launch graph worker thread and dequeue packets on mentioned core from desired port/queue. Following commands are exposed: - ethdev_rx map port queue core - help ethdev_rx Signed-off-b

[PATCH v9 08/12] app/graph: support neigh command line interfaces

2023-10-17 Thread skori
From: Sunil Kumar Kori Adds neigh module to configure arp/neigh. This module uses ipv4_rewrite and ipv6_rewrite node to write neigh information. Following commands are exposed: - neigh add ipv4 - neigh add ipv6 - help neigh Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumal

[PATCH v9 07/12] app/graph: support IPv6 lookup command line interfaces

2023-10-17 Thread skori
From: Rakesh Kudurumalla Adds ipv6_lookup module to configure LPM6 table. This LPM6 table will be used for IPv6 lookup and forwarding. Following commands are exposed: - ipv6_lookup route add ipv6 netmask via - help ipv6_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kuduruma

[PATCH v9 06/12] app/graph: support IPv4 lookup command line interfaces

2023-10-17 Thread skori
From: Sunil Kumar Kori Adds ipv4_lookup module to configure LPM table. This LPM table will be used for IPv4 lookup and forwarding. Following commands are exposed: - ipv4_lookup route add ipv4 netmask via - help ipv4_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla

[PATCH v9 05/12] app/graph: support ethdev command line interfaces

2023-10-17 Thread skori
From: Sunil Kumar Kori Adds ethdev module to configure ethernet devices. Following commands are exposed: - ethdev rxq txq - ethdev mtu - ethdev promiscuous - ethdev show - ethdev stats - ethdev ip4 addr add netmask - ethdev ip6 addr add netmask - help ethdev Signed-off-b

[PATCH v9 04/12] app/graph: support mempool command line interfaces

2023-10-17 Thread skori
From: Rakesh Kudurumalla Adds mempool module which will be creating mempools. Following commands are exposed: - mempool size buffers \ cache numa - help mempool User will add this command in .cli file according to its need. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh

[PATCH v9 03/12] app/graph: support parser utility APIs

2023-10-17 Thread skori
From: Sunil Kumar Kori Adds some helper functions to parse IPv4, IPv6 and MAC addresses string into respective datatype. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla Acked-by: Jerin Jacob --- app/graph/meson.build | 1 + app/graph/module_api.h | 1 + app/graph/utils

[PATCH v9 02/12] app/graph: support telnet connectivity framework

2023-10-17 Thread skori
From: Sunil Kumar Kori Adds framework to initiate a telnet session with application. Some configurations and debug commands are exposed as runtime APIs. Those commands can be invoked using telnet session. Application initiates a telnet server with host address 0.0.0.0 and port number 8086 by de

[PATCH v9 01/12] app/graph: support application CLI framework

2023-10-17 Thread skori
From: Sunil Kumar Kori Adds base framework to read a given .cli file as a command line parameter "-s". Example: # ./dpdk-graph -c 0xff -- -s ./app/graph/examples/dummy.cli Each .cli file will contain commands to configure different module like mempool, ethdev, lookup tables, graph etc. Command

[PATCH v9 00/12] add CLI based graph application

2023-10-17 Thread skori
From: Sunil Kumar Kori In the continuation of following feedback https://patches.dpdk.org/project/dpdk/patch/20230425131516.3308612-5-vattun...@marvell.com/ this patch series adds dpdk-graph application to exercise various usecases using graph. 1. Each use case is defined in terms of .cli file w

[PATCH v2 1/1] usertools/rss: add CNXK RSS key

2023-10-09 Thread skori
From: Sunil Kumar Kori This patch adds RSS key for CNXK platforms. CNXK platform uses 48 bytes long key for hash calculations. For the same patch also updates help mesaages to provide range information for supporting NICs/platforms. Also CNXK uses reta size as 64 so to get correct offset to ret

[PATCH] usertools/rss: add CNXK RSS key

2023-10-09 Thread skori
From: Sunil Kumar Kori This patch adds RSS key for CNXK platforms. CNXK platform uses 48 bytes long key for hash calculations. For the same patch also updates help mesaages to provide range information for supporting NICs/platforms. Also CNXK uses reta size as 64 so to get correct offset to ret

[PATCH v8 12/12] app/graph: add l3fwd use case

2023-09-29 Thread skori
From: Rakesh Kudurumalla It adds an use case l3fwd. It contains a dedicated l3fwd.cli file mentioning commands to configure the required resources. Once application successfully parses the l3fwd.cli then a graph is created having below nodes: - ethdev_rx -> pkt_cls - pkt_cls -> ip4_lookup -

[PATCH v8 11/12] app/graph: add CLI option to enable graph stats

2023-09-29 Thread skori
From: Sunil Kumar Kori It adds application's command line parameter "--enable-graph-stats" to enable dumping graph stats on console. By default, no graph stats will be printed on console but same can be dumped via telnet session using "graph stats show" command. Signed-off-by: Sunil Kumar Kori

[PATCH v8 10/12] app/graph: add graph command line interfaces

2023-09-29 Thread skori
From: Rakesh Kudurumalla It adds graph module to create a graph for a given use case like l3fwd. Following commands are exposed: - graph [bsz ] [tmo ] [coremask ] \ model pcap_enable <0 | 1> num_pcap_pkts \ pcap_file - graph start - graph stats show - help graph Signed-o

[PATCH v8 09/12] app/graph: add ethdev_rx command line interfaces

2023-09-29 Thread skori
From: Rakesh Kudurumalla It adds ethdev_rx module to create port-queue-core mapping. Mapping will be used to launch graph worker thread and dequeue packets on mentioned core from desired port/queue. Following commands are exposed: - ethdev_rx map port queue core - help ethdev_rx Signed-of

[PATCH v8 08/12] app/graph: add neigh command line interfaces

2023-09-29 Thread skori
From: Sunil Kumar Kori It adds neigh module to configure arp/neigh. This module uses ipv4_rewrite and ipv6_rewrite node to write neigh information. Following commands are exposed: - neigh add ipv4 - neigh add ipv6 - help neigh Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kuduru

[PATCH v8 07/12] app/graph: add ipv6_lookup command line interfaces

2023-09-29 Thread skori
From: Rakesh Kudurumalla It adds ipv6_lookup module to configure LPM6 table. This LPM6 table will be used for IPv6 lookup and forwarding. Following commands are exposed: - ipv6_lookup route add ipv6 netmask via - help ipv6_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudur

[PATCH v8 06/12] app/graph: add ipv4_lookup command line interfaces

2023-09-29 Thread skori
From: Sunil Kumar Kori It adds ipv4_lookup module to configure LPM table. This LPM table will be used for IPv4 lookup and forwarding. Following commands are exposed: - ipv4_lookup route add ipv4 netmask via - help ipv4_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumal

[PATCH v8 05/12] app/graph: add ethdev command line interfaces

2023-09-29 Thread skori
From: Sunil Kumar Kori It adds ethdev module to configure ethernet devices. Following commands are exposed: - ethdev rxq txq - ethdev mtu - ethdev promiscuous - ethdev show - ethdev stats - ethdev ip4 addr add netmask - ethdev ip6 addr add netmask - help ethdev Signed-of

[PATCH v8 04/12] app/graph: add mempool command line interfaces

2023-09-29 Thread skori
From: Rakesh Kudurumalla It adds mempool module which will be creating mempools. Following commands are exposed: - mempool size buffers \ cache numa - help mempool User will add this command in .cli file according to its need. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rake

[PATCH v8 03/12] app/graph: add parser utility APIs

2023-09-29 Thread skori
From: Sunil Kumar Kori It adds some helper functions to parse IPv4, IPv6 and MAC addresses string into respective datatype. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- app/graph/meson.build | 1 + app/graph/module_api.h | 1 + app/graph/utils.c | 156 ++

[PATCH v8 02/12] app/graph: add telnet connectivity framework

2023-09-29 Thread skori
From: Sunil Kumar Kori It adds framework to initiate a telnet session with application. Some configurations and debug commands are exposed as runtime APIs. Those commands can be invoked using telnet session. Application initiates a telnet server with host address 0.0.0.0 and port number 8086 by

[PATCH v8 01/12] app/graph: add application framework to read CLI

2023-09-29 Thread skori
From: Sunil Kumar Kori It adds base framework to read a given .cli file as a command line parameter "-s". Example: # ./dpdk-graph -c 0xff -- -s ./app/graph/examples/dummy.cli Each .cli file will contain commands to configure different module like mempool, ethdev, lookup tables, graph etc. Comm

[PATCH v8 00/12] add CLI based graph application

2023-09-29 Thread skori
From: Sunil Kumar Kori In the continuation of following feedback https://patches.dpdk.org/project/dpdk/patch/20230425131516.3308612-5-vattun...@marvell.com/ this patch series adds dpdk-graph application to exercise various usecases using graph. 1. Each use case is defined in terms of .cli file w

[PATCH v7 12/12] app/graph: add l3fwd use case

2023-09-27 Thread skori
From: Rakesh Kudurumalla It adds an use case l3fwd. It contains a dedicated l3fwd.cli file mentioning commands to configure the required resources. Once application successfully parses the l3fwd.cli then a graph is created having below nodes: - ethdev_rx -> pkt_cls - pkt_cls -> ip4_lookup -

[PATCH v7 11/12] app/graph: add CLI option to enable graph stats

2023-09-27 Thread skori
From: Sunil Kumar Kori It adds application's command line parameter "--enable-graph-stats" to enable dumping graph stats on console. By default, no graph stats will be printed on console but same can be dumped via telnet session using "graph stats show" command. Signed-off-by: Sunil Kumar Kori

[PATCH v7 10/12] app/graph: add graph command line interfaces

2023-09-27 Thread skori
From: Rakesh Kudurumalla It adds graph module to create a graph for a given use case like l3fwd. Following commands are exposed: - graph [bsz ] [tmo ] [coremask ] \ model pcap_enable <0 | 1> num_pcap_pkts \ pcap_file - graph start - graph stats show - help graph Signed-o

[PATCH v7 09/12] app/graph: add ethdev_rx command line interfaces

2023-09-27 Thread skori
From: Rakesh Kudurumalla It adds ethdev_rx module to create port-queue-core mapping. Mapping will be used to launch graph worker thread and dequeue packets on mentioned core from desired port/queue. Following commands are exposed: - ethdev_rx map port queue core - help ethdev_rx Signed-of

[PATCH v7 08/12] app/graph: add neigh command line interfaces

2023-09-27 Thread skori
From: Sunil Kumar Kori It adds neigh module to configure arp/neigh. This module uses ipv4_rewrite and ipv6_rewrite node to write neigh information. Following commands are exposed: - neigh add ipv4 - neigh add ipv6 - help neigh Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kuduru

[PATCH v7 07/12] app/graph: add ipv6_lookup command line interfaces

2023-09-27 Thread skori
From: Rakesh Kudurumalla It adds ipv6_lookup module to configure LPM6 table. This LPM6 table will be used for IPv6 lookup and forwarding. Following commands are exposed: - ipv6_lookup route add ipv6 netmask via - help ipv6_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudur

[PATCH v7 06/12] app/graph: add ipv4_lookup command line interfaces

2023-09-27 Thread skori
From: Sunil Kumar Kori It adds ipv4_lookup module to configure LPM table. This LPM table will be used for IPv4 lookup and forwarding. Following commands are exposed: - ipv4_lookup route add ipv4 netmask via - help ipv4_lookup Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumal

[PATCH v7 05/12] app/graph: add ethdev command line interfaces

2023-09-27 Thread skori
From: Sunil Kumar Kori It adds ethdev module to configure ethernet devices. Following commands are exposed: - ethdev rxq txq - ethdev mtu - ethdev promiscuous - ethdev show - ethdev stats - ethdev ip4 addr add netmask - ethdev ip6 addr add netmask - help ethdev Signed-of

[PATCH v7 04/12] app/graph: add mempool command line interfaces

2023-09-27 Thread skori
From: Rakesh Kudurumalla It adds mempool module which will be creating mempools. Following commands are exposed: - mempool size buffers \ cache numa - help mempool User will add this command in .cli file according to its need. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rake

[PATCH v7 03/12] app/graph: add parser utility APIs

2023-09-27 Thread skori
From: Sunil Kumar Kori It adds some helper functions to parse IPv4, IPv6 and MAC addresses string into respective datatype. Signed-off-by: Sunil Kumar Kori Signed-off-by: Rakesh Kudurumalla --- app/graph/meson.build | 1 + app/graph/module_api.h | 1 + app/graph/utils.c | 156 ++

[PATCH v7 02/12] app/graph: add telnet connectivity framework

2023-09-27 Thread skori
From: Sunil Kumar Kori It adds framework to initiate a telnet session with application. Some configurations and debug commands are exposed as runtime APIs. Those commands can be invoked using telnet session. Application initiates a telnet server with host address 0.0.0.0 and port number 8086 by

  1   2   3   4   >