From: <skori@marvell.com>
To: Sunil Kumar Kori <skori@marvell.com>,
Rakesh Kudurumalla <rkudurumalla@marvell.com>
Cc: <dev@dpdk.org>, Jerin Jacob <jerinj@marvell.com>
Subject: [PATCH v9 05/12] app/graph: support ethdev command line interfaces
Date: Wed, 18 Oct 2023 12:03:40 +0530 [thread overview]
Message-ID: <20231018063347.68081-6-skori@marvell.com> (raw)
In-Reply-To: <20231018063347.68081-1-skori@marvell.com>
From: Sunil Kumar Kori <skori@marvell.com>
Adds ethdev module to configure ethernet devices.
Following commands are exposed:
- ethdev <ethdev_name> rxq <n_queues> txq <n_queues> <mempool_name>
- ethdev <ethdev_name> mtu <mtu_sz>
- ethdev <ethdev_name> promiscuous <on/off>
- ethdev <ethdev_name> show
- ethdev <ethdev_name> stats
- ethdev <ethdev_name> ip4 addr add <ip> netmask <mask>
- ethdev <ethdev_name> ip6 addr add <ip> netmask <mask>
- help ethdev
Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
---
app/graph/cli.c | 8 +
app/graph/ethdev.c | 882 +++++++++++++++++++++++++++++++++++++
app/graph/ethdev.h | 40 ++
app/graph/ethdev_priv.h | 112 +++++
app/graph/main.c | 1 +
app/graph/meson.build | 1 +
app/graph/module_api.h | 1 +
doc/guides/tools/graph.rst | 47 ++
8 files changed, 1092 insertions(+)
create mode 100644 app/graph/ethdev.c
create mode 100644 app/graph/ethdev.h
create mode 100644 app/graph/ethdev_priv.h
diff --git a/app/graph/cli.c b/app/graph/cli.c
index cf544d5f8f..fa394fade6 100644
--- a/app/graph/cli.c
+++ b/app/graph/cli.c
@@ -22,6 +22,14 @@
cmdline_parse_ctx_t modules_ctx[] = {
(cmdline_parse_inst_t *)&mempool_config_cmd_ctx,
(cmdline_parse_inst_t *)&mempool_help_cmd_ctx,
+ (cmdline_parse_inst_t *)ðdev_show_cmd_ctx,
+ (cmdline_parse_inst_t *)ðdev_stats_cmd_ctx,
+ (cmdline_parse_inst_t *)ðdev_mtu_cmd_ctx,
+ (cmdline_parse_inst_t *)ðdev_prom_mode_cmd_ctx,
+ (cmdline_parse_inst_t *)ðdev_ip4_cmd_ctx,
+ (cmdline_parse_inst_t *)ðdev_ip6_cmd_ctx,
+ (cmdline_parse_inst_t *)ðdev_cmd_ctx,
+ (cmdline_parse_inst_t *)ðdev_help_cmd_ctx,
NULL,
};
diff --git a/app/graph/ethdev.c b/app/graph/ethdev.c
new file mode 100644
index 0000000000..74e80679d9
--- /dev/null
+++ b/app/graph/ethdev.c
@@ -0,0 +1,882 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2023 Marvell.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <cmdline_parse.h>
+#include <cmdline_parse_num.h>
+#include <cmdline_parse_string.h>
+#include <cmdline_socket.h>
+#include <rte_bitops.h>
+#include <rte_ethdev.h>
+#include <rte_mempool.h>
+
+#include "ethdev_priv.h"
+#include "module_api.h"
+
+static const char
+cmd_ethdev_mtu_help[] = "ethdev <ethdev_name> mtu <mtu_sz>";
+
+static const char
+cmd_ethdev_prom_mode_help[] = "ethdev <ethdev_name> promiscuous <on/off>";
+
+static const char
+cmd_ethdev_help[] = "ethdev <ethdev_name> rxq <n_queues> txq <n_queues> <mempool_name>";
+static const char
+cmd_ethdev_show_help[] = "ethdev <ethdev_name> show";
+
+static const char
+cmd_ethdev_ip4_addr_help[] = "ethdev <ethdev_name> ip4 addr add <ip> netmask <mask>";
+
+static const char
+cmd_ethdev_ip6_addr_help[] = "ethdev <ethdev_name> ip6 addr add <ip> netmask <mask>";
+
+static struct rte_eth_conf port_conf_default = {
+ .link_speeds = 0,
+ .rxmode = {
+ .mq_mode = RTE_ETH_MQ_RX_NONE,
+ .mtu = 9000 - (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN), /* Jumbo frame MTU */
+ },
+ .rx_adv_conf = {
+ .rss_conf = {
+ .rss_key = NULL,
+ .rss_key_len = 40,
+ .rss_hf = 0,
+ },
+ },
+ .txmode = {
+ .mq_mode = RTE_ETH_MQ_TX_NONE,
+ },
+ .lpbk_mode = 0,
+};
+
+uint32_t enabled_port_mask;
+static struct ethdev_head eth_node = TAILQ_HEAD_INITIALIZER(eth_node);
+
+
+static struct ethdev*
+ethdev_port_by_id(uint16_t port_id)
+{
+ struct ethdev *port;
+
+ TAILQ_FOREACH(port, ð_node, next) {
+ if (port->config.port_id == port_id)
+ return port;
+ }
+ return NULL;
+}
+
+void *
+ethdev_mempool_list_by_portid(uint16_t portid)
+{
+ struct ethdev *port;
+
+ if (portid >= RTE_MAX_ETHPORTS)
+ return NULL;
+
+ port = ethdev_port_by_id(portid);
+ if (port)
+ return &(port->config.rx.mp);
+ else
+ return NULL;
+}
+
+int16_t
+ethdev_portid_by_ip4(uint32_t ip, uint32_t mask)
+{
+ int portid = -EINVAL;
+ struct ethdev *port;
+
+ TAILQ_FOREACH(port, ð_node, next) {
+ if (mask == 0) {
+ if ((port->ip4_addr.ip & port->ip4_addr.mask) == (ip & port->ip4_addr.mask))
+ return port->config.port_id;
+ } else {
+ if ((port->ip4_addr.ip & port->ip4_addr.mask) == (ip & mask))
+ return port->config.port_id;
+ }
+ }
+
+ return portid;
+}
+
+int16_t
+ethdev_portid_by_ip6(uint8_t *ip, uint8_t *mask)
+{
+ int portid = -EINVAL;
+ struct ethdev *port;
+ int j;
+
+ TAILQ_FOREACH(port, ð_node, next) {
+ for (j = 0; j < ETHDEV_IPV6_ADDR_LEN; j++) {
+ if (mask == NULL) {
+ if ((port->ip6_addr.ip[j] & port->ip6_addr.mask[j]) !=
+ (ip[j] & port->ip6_addr.mask[j]))
+ break;
+
+ } else {
+ if ((port->ip6_addr.ip[j] & port->ip6_addr.mask[j]) !=
+ (ip[j] & mask[j]))
+ break;
+ }
+ }
+ if (j == ETHDEV_IPV6_ADDR_LEN)
+ return port->config.port_id;
+ }
+
+ return portid;
+}
+
+void
+ethdev_list_clean(void)
+{
+ struct ethdev *port;
+
+ while (!TAILQ_EMPTY(ð_node)) {
+ port = TAILQ_FIRST(ð_node);
+ TAILQ_REMOVE(ð_node, port, next);
+ }
+}
+
+void
+ethdev_stop(void)
+{
+ uint16_t portid;
+ int rc;
+
+ RTE_ETH_FOREACH_DEV(portid) {
+ if ((enabled_port_mask & (1 << portid)) == 0)
+ continue;
+ printf("Closing port %d...", portid);
+ rc = rte_eth_dev_stop(portid);
+ if (rc != 0)
+ printf("Failed to stop port %u: %s\n",
+ portid, rte_strerror(-rc));
+ rte_eth_dev_close(portid);
+ printf(" Done\n");
+ }
+
+ ethdev_list_clean();
+ rte_eal_cleanup();
+ printf("Bye...\n");
+}
+
+void
+ethdev_start(void)
+{
+ uint16_t portid;
+ int rc;
+
+ RTE_ETH_FOREACH_DEV(portid)
+ {
+ if ((enabled_port_mask & (1 << portid)) == 0)
+ continue;
+
+ rc = rte_eth_dev_start(portid);
+ if (rc < 0)
+ rte_exit(EXIT_FAILURE, "rte_eth_dev_start: err=%d, port=%d\n", rc, portid);
+ }
+}
+
+
+static int
+ethdev_show(const char *name)
+{
+ uint16_t mtu = 0, port_id = 0;
+ struct rte_eth_dev_info info;
+ struct rte_eth_stats stats;
+ struct rte_ether_addr addr;
+ struct rte_eth_link link;
+ uint32_t length;
+ int rc;
+
+ rc = rte_eth_dev_get_port_by_name(name, &port_id);
+ if (rc < 0)
+ return rc;
+
+ rte_eth_dev_info_get(port_id, &info);
+ rte_eth_stats_get(port_id, &stats);
+ rte_eth_macaddr_get(port_id, &addr);
+ rte_eth_link_get(port_id, &link);
+ rte_eth_dev_get_mtu(port_id, &mtu);
+
+ length = strlen(conn->msg_out);
+ conn->msg_out += length;
+ snprintf(conn->msg_out, conn->msg_out_len_max,
+ "%s: flags=<%s> mtu %u\n"
+ "\tether " RTE_ETHER_ADDR_PRT_FMT " rxqueues %u txqueues %u\n"
+ "\tport# %u speed %s\n"
+ "\tRX packets %" PRIu64" bytes %" PRIu64"\n"
+ "\tRX errors %" PRIu64" missed %" PRIu64" no-mbuf %" PRIu64"\n"
+ "\tTX packets %" PRIu64" bytes %" PRIu64"\n"
+ "\tTX errors %" PRIu64"\n\n",
+ name,
+ link.link_status ? "UP" : "DOWN",
+ mtu,
+ RTE_ETHER_ADDR_BYTES(&addr),
+ info.nb_rx_queues,
+ info.nb_tx_queues,
+ port_id,
+ rte_eth_link_speed_to_str(link.link_speed),
+ stats.ipackets,
+ stats.ibytes,
+ stats.ierrors,
+ stats.imissed,
+ stats.rx_nombuf,
+ stats.opackets,
+ stats.obytes,
+ stats.oerrors);
+
+ length = strlen(conn->msg_out);
+ conn->msg_out_len_max -= length;
+ return 0;
+}
+
+static int
+ethdev_ip4_addr_add(const char *name, struct ipv4_addr_config *config)
+{
+ struct ethdev *eth_hdl;
+ uint16_t portid = 0;
+ int rc;
+
+ rc = rte_eth_dev_get_port_by_name(name, &portid);
+ if (rc < 0)
+ return rc;
+
+ eth_hdl = ethdev_port_by_id(portid);
+
+ if (eth_hdl) {
+ eth_hdl->ip4_addr.ip = config->ip;
+ eth_hdl->ip4_addr.mask = config->mask;
+ return 0;
+ }
+
+ rc = -EINVAL;
+ return rc;
+}
+
+static int
+ethdev_ip6_addr_add(const char *name, struct ipv6_addr_config *config)
+{
+ struct ethdev *eth_hdl;
+ uint16_t portid = 0;
+ int rc, i;
+
+ rc = rte_eth_dev_get_port_by_name(name, &portid);
+ if (rc < 0)
+ return rc;
+
+ eth_hdl = ethdev_port_by_id(portid);
+
+ if (eth_hdl) {
+ for (i = 0; i < ETHDEV_IPV6_ADDR_LEN; i++) {
+ eth_hdl->ip6_addr.ip[i] = config->ip[i];
+ eth_hdl->ip6_addr.mask[i] = config->mask[i];
+ }
+ return 0;
+ }
+ rc = -EINVAL;
+ return rc;
+}
+
+static int
+ethdev_prom_mode_config(const char *name, bool enable)
+{
+ struct ethdev *eth_hdl;
+ uint16_t portid = 0;
+ int rc;
+
+ rc = rte_eth_dev_get_port_by_name(name, &portid);
+ if (rc < 0)
+ return rc;
+
+ eth_hdl = ethdev_port_by_id(portid);
+
+ if (eth_hdl) {
+ if (enable)
+ rc = rte_eth_promiscuous_enable(portid);
+ else
+ rc = rte_eth_promiscuous_disable(portid);
+ if (rc < 0)
+ return rc;
+
+ eth_hdl->config.promiscuous = enable;
+ return 0;
+ }
+
+ rc = -EINVAL;
+ return rc;
+}
+
+static int
+ethdev_mtu_config(const char *name, uint32_t mtu)
+{
+ struct ethdev *eth_hdl;
+ uint16_t portid = 0;
+ int rc;
+
+ rc = rte_eth_dev_get_port_by_name(name, &portid);
+ if (rc < 0)
+ return rc;
+
+ eth_hdl = ethdev_port_by_id(portid);
+
+ if (eth_hdl) {
+ rc = rte_eth_dev_set_mtu(portid, mtu);
+ if (rc < 0)
+ return rc;
+
+ eth_hdl->config.mtu = mtu;
+ return 0;
+ }
+
+ rc = -EINVAL;
+ return rc;
+}
+
+
+static int
+ethdev_process(const char *name, struct ethdev_config *params)
+{
+ struct rte_eth_dev_info port_info;
+ struct rte_eth_conf port_conf;
+ struct ethdev_rss_config *rss;
+ struct rte_mempool *mempool;
+ struct ethdev *ethdev_port;
+ struct rte_ether_addr smac;
+ uint16_t port_id = 0;
+ int numa_node, rc;
+ uint32_t i;
+
+ /* Check input params */
+ if (!name || !name[0] || !params || !params->rx.n_queues || !params->rx.queue_size ||
+ !params->tx.n_queues || !params->tx.queue_size)
+ return -EINVAL;
+
+ rc = rte_eth_dev_get_port_by_name(name, &port_id);
+ if (rc)
+ return -EINVAL;
+
+ if (!ethdev_port_by_id(port_id)) {
+ ethdev_port = malloc(sizeof(struct ethdev));
+ if (!ethdev_port)
+ return -EINVAL;
+ } else {
+ return 0;
+ }
+
+ rc = rte_eth_dev_info_get(port_id, &port_info);
+ if (rc) {
+ rc = -EINVAL;
+ goto exit;
+ }
+
+ mempool = rte_mempool_lookup(params->rx.mempool_name);
+ if (!mempool) {
+ rc = -EINVAL;
+ goto exit;
+ }
+
+ params->rx.mp = mempool;
+
+ rss = params->rx.rss;
+ if (rss) {
+ if (!port_info.reta_size || port_info.reta_size > RTE_ETH_RSS_RETA_SIZE_512) {
+ rc = -EINVAL;
+ goto exit;
+ }
+
+ if (!rss->n_queues || rss->n_queues >= ETHDEV_RXQ_RSS_MAX) {
+ rc = -EINVAL;
+ goto exit;
+ }
+
+ for (i = 0; i < rss->n_queues; i++)
+ if (rss->queue_id[i] >= port_info.max_rx_queues) {
+ rc = -EINVAL;
+ goto exit;
+ }
+ }
+
+ /* Port */
+ memcpy(&port_conf, &port_conf_default, sizeof(struct rte_eth_conf));
+ if (rss) {
+ uint64_t rss_hf = RTE_ETH_RSS_IP | RTE_ETH_RSS_TCP | RTE_ETH_RSS_UDP;
+
+ port_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_RSS;
+ port_conf.rx_adv_conf.rss_conf.rss_hf = rss_hf & port_info.flow_type_rss_offloads;
+ }
+
+ numa_node = rte_eth_dev_socket_id(port_id);
+ if (numa_node == SOCKET_ID_ANY)
+ numa_node = 0;
+
+ if (params->mtu)
+ port_conf.rxmode.mtu = params->mtu;
+
+ rc = rte_eth_dev_configure(port_id, params->rx.n_queues, params->tx.n_queues,
+ &port_conf);
+ if (rc < 0) {
+ rc = -EINVAL;
+ goto exit;
+ }
+
+ rc = rte_eth_macaddr_get(port_id, &smac);
+ if (rc < 0) {
+ rc = -EINVAL;
+ goto exit;
+ }
+
+ printf("Port_id = %d srcmac = %x:%x:%x:%x:%x:%x\n", port_id,
+ smac.addr_bytes[0], smac.addr_bytes[1],
+ smac.addr_bytes[2], smac.addr_bytes[3],
+ smac.addr_bytes[4], smac.addr_bytes[5]);
+
+ /* Port RX */
+ for (i = 0; i < params->rx.n_queues; i++) {
+ rc = rte_eth_rx_queue_setup(port_id, i, params->rx.queue_size, numa_node, NULL,
+ mempool);
+ if (rc < 0) {
+ rc = -EINVAL;
+ goto exit;
+ }
+ }
+
+ /* Port TX */
+ for (i = 0; i < params->tx.n_queues; i++) {
+ rc = rte_eth_tx_queue_setup(port_id, i, params->tx.queue_size, numa_node, NULL);
+ if (rc < 0) {
+ rc = -EINVAL;
+ goto exit;
+ }
+ }
+
+ memcpy(ðdev_port->config, params, sizeof(struct ethdev_config));
+ memcpy(ethdev_port->config.dev_name, name, strlen(name));
+ ethdev_port->config.port_id = port_id;
+ enabled_port_mask |= RTE_BIT32(port_id);
+
+ TAILQ_INSERT_TAIL(ð_node, ethdev_port, next);
+ return 0;
+exit:
+ free(ethdev_port);
+ return rc;
+
+}
+
+static int
+ethdev_stats_show(const char *name)
+{
+ uint64_t diff_pkts_rx, diff_pkts_tx, diff_bytes_rx, diff_bytes_tx;
+ static uint64_t prev_pkts_rx[RTE_MAX_ETHPORTS];
+ static uint64_t prev_pkts_tx[RTE_MAX_ETHPORTS];
+ static uint64_t prev_bytes_rx[RTE_MAX_ETHPORTS];
+ static uint64_t prev_bytes_tx[RTE_MAX_ETHPORTS];
+ static uint64_t prev_cycles[RTE_MAX_ETHPORTS];
+ uint64_t mpps_rx, mpps_tx, mbps_rx, mbps_tx;
+ uint64_t diff_ns, diff_cycles, curr_cycles;
+ struct rte_eth_stats stats;
+ static const char *nic_stats_border = "########################";
+ uint16_t port_id, len;
+ int rc;
+
+ rc = rte_eth_dev_get_port_by_name(name, &port_id);
+ if (rc < 0)
+ return rc;
+
+ rc = rte_eth_stats_get(port_id, &stats);
+ if (rc != 0) {
+ fprintf(stderr,
+ "%s: Error: failed to get stats (port %u): %d",
+ __func__, port_id, rc);
+ return rc;
+ }
+
+ len = strlen(conn->msg_out);
+ conn->msg_out += len;
+ snprintf(conn->msg_out, conn->msg_out_len_max,
+ "\n %s NIC statistics for port %-2d %s\n"
+ " RX-packets: %-10"PRIu64" RX-missed: %-10"PRIu64" RX-bytes: ""%-"PRIu64"\n"
+ " RX-errors: %-"PRIu64"\n"
+ " RX-nombuf: %-10"PRIu64"\n"
+ " TX-packets: %-10"PRIu64" TX-errors: %-10"PRIu64" TX-bytes: ""%-"PRIu64"\n",
+ nic_stats_border, port_id, nic_stats_border, stats.ipackets, stats.imissed,
+ stats.ibytes, stats.ierrors, stats.rx_nombuf, stats.opackets, stats.oerrors,
+ stats.obytes);
+
+ len = strlen(conn->msg_out) - len;
+ conn->msg_out_len_max -= len;
+
+ diff_ns = 0;
+ diff_cycles = 0;
+
+ curr_cycles = rte_rdtsc();
+ if (prev_cycles[port_id] != 0)
+ diff_cycles = curr_cycles - prev_cycles[port_id];
+
+ prev_cycles[port_id] = curr_cycles;
+ diff_ns = diff_cycles > 0 ?
+ diff_cycles * (1 / (double)rte_get_tsc_hz()) * NS_PER_SEC : 0;
+
+ diff_pkts_rx = (stats.ipackets > prev_pkts_rx[port_id]) ?
+ (stats.ipackets - prev_pkts_rx[port_id]) : 0;
+ diff_pkts_tx = (stats.opackets > prev_pkts_tx[port_id]) ?
+ (stats.opackets - prev_pkts_tx[port_id]) : 0;
+ prev_pkts_rx[port_id] = stats.ipackets;
+ prev_pkts_tx[port_id] = stats.opackets;
+ mpps_rx = diff_ns > 0 ?
+ (double)diff_pkts_rx / diff_ns * NS_PER_SEC : 0;
+ mpps_tx = diff_ns > 0 ?
+ (double)diff_pkts_tx / diff_ns * NS_PER_SEC : 0;
+
+ diff_bytes_rx = (stats.ibytes > prev_bytes_rx[port_id]) ?
+ (stats.ibytes - prev_bytes_rx[port_id]) : 0;
+ diff_bytes_tx = (stats.obytes > prev_bytes_tx[port_id]) ?
+ (stats.obytes - prev_bytes_tx[port_id]) : 0;
+ prev_bytes_rx[port_id] = stats.ibytes;
+ prev_bytes_tx[port_id] = stats.obytes;
+ mbps_rx = diff_ns > 0 ?
+ (double)diff_bytes_rx / diff_ns * NS_PER_SEC : 0;
+ mbps_tx = diff_ns > 0 ?
+ (double)diff_bytes_tx / diff_ns * NS_PER_SEC : 0;
+
+ len = strlen(conn->msg_out);
+ snprintf(conn->msg_out + len, conn->msg_out_len_max,
+ "\n Throughput (since last show)\n"
+ " Rx-pps: %12"PRIu64" Rx-bps: %12"PRIu64"\n Tx-pps: %12"
+ PRIu64" Tx-bps: %12"PRIu64"\n"
+ " %s############################%s\n",
+ mpps_rx, mbps_rx * 8, mpps_tx, mbps_tx * 8, nic_stats_border, nic_stats_border);
+ return 0;
+}
+
+static void
+cli_ethdev_mtu(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
+{
+ struct ethdev_mtu_cmd_tokens *res = parsed_result;
+ int rc = -EINVAL;
+
+ rc = ethdev_mtu_config(res->dev, res->size);
+ if (rc < 0)
+ printf(MSG_CMD_FAIL, res->cmd);
+}
+
+static void
+cli_ethdev_prom_mode(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
+{
+ struct ethdev_prom_mode_cmd_tokens *res = parsed_result;
+ bool enable = false;
+ int rc = -EINVAL;
+
+ if (!strcmp(res->enable, "on"))
+ enable = true;
+
+ rc = ethdev_prom_mode_config(res->dev, enable);
+ if (rc < 0)
+ printf(MSG_CMD_FAIL, res->cmd);
+}
+
+static void
+cli_ip4_addr(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
+{
+ struct ethdev_ip4_cmd_tokens *res = parsed_result;
+ struct ipv4_addr_config config;
+ int rc = -EINVAL;
+
+ if (parser_ip4_read(&config.ip, res->ip)) {
+ printf(MSG_ARG_INVALID, "ip");
+ return;
+ }
+
+ if (parser_ip4_read(&config.mask, res->mask)) {
+ printf(MSG_ARG_INVALID, "netmask");
+ return;
+ }
+
+ rc = ethdev_ip4_addr_add(res->dev, &config);
+ if (rc < 0)
+ printf(MSG_CMD_FAIL, res->cmd);
+}
+
+static void
+cli_ip6_addr(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
+{
+ struct ethdev_ip6_cmd_tokens *res = parsed_result;
+ struct ipv6_addr_config config;
+ int rc = -EINVAL;
+
+ if (parser_ip6_read(config.ip, res->ip)) {
+ printf(MSG_ARG_INVALID, "ip");
+ return;
+ }
+
+ if (parser_ip6_read(config.mask, res->mask)) {
+ printf(MSG_ARG_INVALID, "netmask");
+ return;
+ }
+
+ rc = ethdev_ip6_addr_add(res->dev, &config);
+ if (rc < 0)
+ printf(MSG_CMD_FAIL, res->cmd);
+}
+
+static void
+cli_ethdev_show(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
+{
+ struct ethdev_show_cmd_tokens *res = parsed_result;
+ int rc = -EINVAL;
+
+ rc = ethdev_show(res->dev);
+ if (rc < 0)
+ printf(MSG_ARG_INVALID, res->dev);
+}
+
+static void
+cli_ethdev_stats(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
+{
+ struct ethdev_stats_cmd_tokens *res = parsed_result;
+ int rc = -EINVAL;
+
+ rc = ethdev_stats_show(res->dev);
+ if (rc < 0)
+ printf(MSG_ARG_INVALID, res->dev);
+}
+
+static void
+cli_ethdev(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
+{
+ struct ethdev_cmd_tokens *res = parsed_result;
+ struct ethdev_config config;
+ int rc;
+
+ memset(&config, 0, sizeof(struct ethdev_config));
+ config.rx.n_queues = res->nb_rxq;
+ config.rx.queue_size = ETHDEV_RX_DESC_DEFAULT;
+ memcpy(config.rx.mempool_name, res->mempool, strlen(res->mempool));
+
+ config.tx.n_queues = res->nb_txq;
+ config.tx.queue_size = ETHDEV_TX_DESC_DEFAULT;
+
+ config.mtu = port_conf_default.rxmode.mtu;
+
+ rc = ethdev_process(res->dev, &config);
+ if (rc < 0)
+ printf(MSG_CMD_FAIL, res->cmd);
+}
+
+static void
+cli_ethdev_help(__rte_unused void *parsed_result, __rte_unused struct cmdline *cl,
+ __rte_unused void *data)
+{
+ size_t len;
+
+ len = strlen(conn->msg_out);
+ conn->msg_out += len;
+ snprintf(conn->msg_out, conn->msg_out_len_max, "\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
+ "----------------------------- ethdev command help -----------------------------",
+ cmd_ethdev_help, cmd_ethdev_ip4_addr_help, cmd_ethdev_ip6_addr_help,
+ cmd_ethdev_prom_mode_help, cmd_ethdev_mtu_help, cmd_ethdev_show_help);
+
+ len = strlen(conn->msg_out);
+ conn->msg_out_len_max -= len;
+}
+
+cmdline_parse_token_string_t ethdev_stats_cmd =
+ TOKEN_STRING_INITIALIZER(struct ethdev_stats_cmd_tokens, cmd, "ethdev");
+cmdline_parse_token_string_t ethdev_stats_dev =
+ TOKEN_STRING_INITIALIZER(struct ethdev_stats_cmd_tokens, dev, NULL);
+cmdline_parse_token_string_t ethdev_stats_stats =
+ TOKEN_STRING_INITIALIZER(struct ethdev_stats_cmd_tokens, stats, "stats");
+
+cmdline_parse_inst_t ethdev_stats_cmd_ctx = {
+ .f = cli_ethdev_stats,
+ .data = NULL,
+ .help_str = "",
+ .tokens = {
+ (void *)ðdev_stats_cmd,
+ (void *)ðdev_stats_dev,
+ (void *)ðdev_stats_stats,
+ NULL,
+ },
+};
+
+cmdline_parse_token_string_t ethdev_show_cmd =
+ TOKEN_STRING_INITIALIZER(struct ethdev_show_cmd_tokens, cmd, "ethdev");
+cmdline_parse_token_string_t ethdev_show_dev =
+ TOKEN_STRING_INITIALIZER(struct ethdev_show_cmd_tokens, dev, NULL);
+cmdline_parse_token_string_t ethdev_show_show =
+ TOKEN_STRING_INITIALIZER(struct ethdev_show_cmd_tokens, show, "show");
+
+cmdline_parse_inst_t ethdev_show_cmd_ctx = {
+ .f = cli_ethdev_show,
+ .data = NULL,
+ .help_str = cmd_ethdev_show_help,
+ .tokens = {
+ (void *)ðdev_show_cmd,
+ (void *)ðdev_show_dev,
+ (void *)ðdev_show_show,
+ NULL,
+ },
+};
+
+cmdline_parse_token_string_t ethdev_mtu_cmd =
+ TOKEN_STRING_INITIALIZER(struct ethdev_mtu_cmd_tokens, cmd, "ethdev");
+cmdline_parse_token_string_t ethdev_mtu_dev =
+ TOKEN_STRING_INITIALIZER(struct ethdev_mtu_cmd_tokens, dev, NULL);
+cmdline_parse_token_string_t ethdev_mtu_mtu =
+ TOKEN_STRING_INITIALIZER(struct ethdev_mtu_cmd_tokens, mtu, "mtu");
+cmdline_parse_token_num_t ethdev_mtu_size =
+ TOKEN_NUM_INITIALIZER(struct ethdev_mtu_cmd_tokens, size, RTE_UINT16);
+
+cmdline_parse_inst_t ethdev_mtu_cmd_ctx = {
+ .f = cli_ethdev_mtu,
+ .data = NULL,
+ .help_str = cmd_ethdev_mtu_help,
+ .tokens = {
+ (void *)ðdev_mtu_cmd,
+ (void *)ðdev_mtu_dev,
+ (void *)ðdev_mtu_mtu,
+ (void *)ðdev_mtu_size,
+ NULL,
+ },
+};
+
+cmdline_parse_token_string_t ethdev_prom_mode_cmd =
+ TOKEN_STRING_INITIALIZER(struct ethdev_prom_mode_cmd_tokens, cmd, "ethdev");
+cmdline_parse_token_string_t ethdev_prom_mode_dev =
+ TOKEN_STRING_INITIALIZER(struct ethdev_prom_mode_cmd_tokens, dev, NULL);
+cmdline_parse_token_string_t ethdev_prom_mode_prom =
+ TOKEN_STRING_INITIALIZER(struct ethdev_prom_mode_cmd_tokens, prom, "promiscuous");
+cmdline_parse_token_string_t ethdev_prom_mode_enable =
+ TOKEN_STRING_INITIALIZER(struct ethdev_prom_mode_cmd_tokens, enable, "on#off");
+
+cmdline_parse_inst_t ethdev_prom_mode_cmd_ctx = {
+ .f = cli_ethdev_prom_mode,
+ .data = NULL,
+ .help_str = cmd_ethdev_prom_mode_help,
+ .tokens = {
+ (void *)ðdev_prom_mode_cmd,
+ (void *)ðdev_prom_mode_dev,
+ (void *)ðdev_prom_mode_prom,
+ (void *)ðdev_prom_mode_enable,
+ NULL,
+ },
+};
+
+cmdline_parse_token_string_t ethdev_ip4_cmd =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip4_cmd_tokens, cmd, "ethdev");
+cmdline_parse_token_string_t ethdev_ip4_dev =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip4_cmd_tokens, dev, NULL);
+cmdline_parse_token_string_t ethdev_ip4_ip4 =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip4_cmd_tokens, ip4, "ip4");
+cmdline_parse_token_string_t ethdev_ip4_addr =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip4_cmd_tokens, addr, "addr");
+cmdline_parse_token_string_t ethdev_ip4_add =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip4_cmd_tokens, add, "add");
+cmdline_parse_token_string_t ethdev_ip4_ip =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip4_cmd_tokens, ip, NULL);
+cmdline_parse_token_string_t ethdev_ip4_netmask =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip4_cmd_tokens, netmask, "netmask");
+cmdline_parse_token_string_t ethdev_ip4_mask =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip4_cmd_tokens, mask, NULL);
+
+cmdline_parse_inst_t ethdev_ip4_cmd_ctx = {
+ .f = cli_ip4_addr,
+ .data = NULL,
+ .help_str = cmd_ethdev_ip4_addr_help,
+ .tokens = {
+ (void *)ðdev_ip4_cmd,
+ (void *)ðdev_ip4_dev,
+ (void *)ðdev_ip4_ip4,
+ (void *)ðdev_ip4_addr,
+ (void *)ðdev_ip4_add,
+ (void *)ðdev_ip4_ip,
+ (void *)ðdev_ip4_netmask,
+ (void *)ðdev_ip4_mask,
+ NULL,
+ },
+};
+
+cmdline_parse_token_string_t ethdev_ip6_cmd =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip6_cmd_tokens, cmd, "ethdev");
+cmdline_parse_token_string_t ethdev_ip6_dev =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip6_cmd_tokens, dev, NULL);
+cmdline_parse_token_string_t ethdev_ip6_ip6 =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip6_cmd_tokens, ip6, "ip6");
+cmdline_parse_token_string_t ethdev_ip6_addr =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip6_cmd_tokens, addr, "addr");
+cmdline_parse_token_string_t ethdev_ip6_add =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip6_cmd_tokens, add, "add");
+cmdline_parse_token_string_t ethdev_ip6_ip =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip6_cmd_tokens, ip, NULL);
+cmdline_parse_token_string_t ethdev_ip6_netmask =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip6_cmd_tokens, netmask, "netmask");
+cmdline_parse_token_string_t ethdev_ip6_mask =
+ TOKEN_STRING_INITIALIZER(struct ethdev_ip6_cmd_tokens, mask, NULL);
+
+cmdline_parse_inst_t ethdev_ip6_cmd_ctx = {
+ .f = cli_ip6_addr,
+ .data = NULL,
+ .help_str = cmd_ethdev_ip6_addr_help,
+ .tokens = {
+ (void *)ðdev_ip6_cmd,
+ (void *)ðdev_ip6_dev,
+ (void *)ðdev_ip6_ip6,
+ (void *)ðdev_ip6_addr,
+ (void *)ðdev_ip6_add,
+ (void *)ðdev_ip6_ip,
+ (void *)ðdev_ip6_netmask,
+ (void *)ðdev_ip6_mask,
+ NULL,
+ },
+};
+
+cmdline_parse_token_string_t ethdev_cmd =
+ TOKEN_STRING_INITIALIZER(struct ethdev_cmd_tokens, cmd, "ethdev");
+cmdline_parse_token_string_t ethdev_dev =
+ TOKEN_STRING_INITIALIZER(struct ethdev_cmd_tokens, dev, NULL);
+cmdline_parse_token_string_t ethdev_rxq =
+ TOKEN_STRING_INITIALIZER(struct ethdev_cmd_tokens, rxq, "rxq");
+cmdline_parse_token_num_t ethdev_nb_rxq =
+ TOKEN_NUM_INITIALIZER(struct ethdev_cmd_tokens, nb_rxq, RTE_UINT16);
+cmdline_parse_token_string_t ethdev_txq =
+ TOKEN_STRING_INITIALIZER(struct ethdev_cmd_tokens, txq, "txq");
+cmdline_parse_token_num_t ethdev_nb_txq =
+ TOKEN_NUM_INITIALIZER(struct ethdev_cmd_tokens, nb_txq, RTE_UINT16);
+cmdline_parse_token_string_t ethdev_mempool =
+ TOKEN_STRING_INITIALIZER(struct ethdev_cmd_tokens, mempool, NULL);
+
+cmdline_parse_inst_t ethdev_cmd_ctx = {
+ .f = cli_ethdev,
+ .data = NULL,
+ .help_str = cmd_ethdev_help,
+ .tokens = {
+ (void *)ðdev_cmd,
+ (void *)ðdev_dev,
+ (void *)ðdev_rxq,
+ (void *)ðdev_nb_rxq,
+ (void *)ðdev_txq,
+ (void *)ðdev_nb_txq,
+ (void *)ðdev_mempool,
+ NULL,
+ },
+};
+
+cmdline_parse_token_string_t ethdev_help_cmd =
+ TOKEN_STRING_INITIALIZER(struct ethdev_help_cmd_tokens, help, "help");
+cmdline_parse_token_string_t ethdev_help_ethdev =
+ TOKEN_STRING_INITIALIZER(struct ethdev_help_cmd_tokens, ethdev, "ethdev");
+
+cmdline_parse_inst_t ethdev_help_cmd_ctx = {
+ .f = cli_ethdev_help,
+ .data = NULL,
+ .help_str = "",
+ .tokens = {
+ (void *)ðdev_help_cmd,
+ (void *)ðdev_help_ethdev,
+ NULL,
+ },
+};
diff --git a/app/graph/ethdev.h b/app/graph/ethdev.h
new file mode 100644
index 0000000000..94d3247a2c
--- /dev/null
+++ b/app/graph/ethdev.h
@@ -0,0 +1,40 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2023 Marvell.
+ */
+
+#ifndef APP_GRAPH_ETHDEV_H
+#define APP_GRAPH_ETHDEV_H
+
+#include <cmdline_parse.h>
+
+#define ETHDEV_IPV6_ADDR_LEN 16
+
+extern cmdline_parse_inst_t ethdev_show_cmd_ctx;
+extern cmdline_parse_inst_t ethdev_stats_cmd_ctx;
+extern cmdline_parse_inst_t ethdev_mtu_cmd_ctx;
+extern cmdline_parse_inst_t ethdev_prom_mode_cmd_ctx;
+extern cmdline_parse_inst_t ethdev_ip4_cmd_ctx;
+extern cmdline_parse_inst_t ethdev_ip6_cmd_ctx;
+extern cmdline_parse_inst_t ethdev_cmd_ctx;
+extern cmdline_parse_inst_t ethdev_help_cmd_ctx;
+
+struct ipv4_addr_config {
+ uint32_t ip;
+ uint32_t mask;
+};
+
+struct ipv6_addr_config {
+ uint8_t ip[ETHDEV_IPV6_ADDR_LEN];
+ uint8_t mask[ETHDEV_IPV6_ADDR_LEN];
+};
+
+extern uint32_t enabled_port_mask;
+
+void ethdev_start(void);
+void ethdev_stop(void);
+void *ethdev_mempool_list_by_portid(uint16_t portid);
+int16_t ethdev_portid_by_ip4(uint32_t ip, uint32_t mask);
+int16_t ethdev_portid_by_ip6(uint8_t *ip, uint8_t *mask);
+void ethdev_list_clean(void);
+
+#endif
diff --git a/app/graph/ethdev_priv.h b/app/graph/ethdev_priv.h
new file mode 100644
index 0000000000..f231f3f3e1
--- /dev/null
+++ b/app/graph/ethdev_priv.h
@@ -0,0 +1,112 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2023 Marvell.
+ */
+
+#ifndef APP_GRAPH_ETHDEV_PRIV_H
+#define APP_GRAPH_ETHDEV_PRIV_H
+
+#include "ethdev.h"
+
+#define NS_PER_SEC 1E9
+
+#define ETHDEV_RXQ_RSS_MAX 16
+#define ETHDEV_RX_DESC_DEFAULT 1024
+#define ETHDEV_TX_DESC_DEFAULT 1024
+
+struct ethdev_show_cmd_tokens {
+ cmdline_fixed_string_t cmd;
+ cmdline_fixed_string_t dev;
+ cmdline_fixed_string_t show;
+};
+
+struct ethdev_stats_cmd_tokens {
+ cmdline_fixed_string_t cmd;
+ cmdline_fixed_string_t dev;
+ cmdline_fixed_string_t stats;
+};
+
+struct ethdev_mtu_cmd_tokens {
+ cmdline_fixed_string_t cmd;
+ cmdline_fixed_string_t dev;
+ cmdline_fixed_string_t mtu;
+ uint16_t size;
+};
+
+struct ethdev_prom_mode_cmd_tokens {
+ cmdline_fixed_string_t cmd;
+ cmdline_fixed_string_t dev;
+ cmdline_fixed_string_t prom;
+ cmdline_fixed_string_t enable;
+};
+
+struct ethdev_ip4_cmd_tokens {
+ cmdline_fixed_string_t cmd;
+ cmdline_fixed_string_t dev;
+ cmdline_fixed_string_t ip4;
+ cmdline_fixed_string_t addr;
+ cmdline_fixed_string_t add;
+ cmdline_fixed_string_t ip;
+ cmdline_fixed_string_t netmask;
+ cmdline_fixed_string_t mask;
+};
+
+struct ethdev_ip6_cmd_tokens {
+ cmdline_fixed_string_t cmd;
+ cmdline_fixed_string_t dev;
+ cmdline_fixed_string_t ip6;
+ cmdline_fixed_string_t addr;
+ cmdline_fixed_string_t add;
+ cmdline_fixed_string_t ip;
+ cmdline_fixed_string_t netmask;
+ cmdline_fixed_string_t mask;
+};
+
+struct ethdev_cmd_tokens {
+ cmdline_fixed_string_t cmd;
+ cmdline_fixed_string_t dev;
+ cmdline_fixed_string_t rxq;
+ cmdline_fixed_string_t txq;
+ cmdline_fixed_string_t mempool;
+ uint16_t nb_rxq;
+ uint16_t nb_txq;
+};
+
+struct ethdev_help_cmd_tokens {
+ cmdline_fixed_string_t help;
+ cmdline_fixed_string_t ethdev;
+};
+
+struct ethdev_rss_config {
+ uint32_t queue_id[ETHDEV_RXQ_RSS_MAX];
+ uint32_t n_queues;
+};
+
+struct ethdev_config {
+ char dev_name[RTE_ETH_NAME_MAX_LEN];
+ uint16_t port_id;
+
+ struct {
+ uint32_t n_queues;
+ uint32_t queue_size;
+ char mempool_name[RTE_MEMPOOL_NAMESIZE];
+ struct rte_mempool *mp;
+ struct ethdev_rss_config *rss;
+ } rx;
+
+ struct {
+ uint32_t n_queues;
+ uint32_t queue_size;
+ } tx;
+
+ int promiscuous;
+ uint32_t mtu;
+};
+
+struct ethdev {
+ TAILQ_ENTRY(ethdev) next;
+ struct ethdev_config config;
+ struct ipv4_addr_config ip4_addr;
+ struct ipv6_addr_config ip6_addr;
+};
+TAILQ_HEAD(ethdev_head, ethdev);
+#endif
diff --git a/app/graph/main.c b/app/graph/main.c
index 96548f49e7..c1cb435588 100644
--- a/app/graph/main.c
+++ b/app/graph/main.c
@@ -215,6 +215,7 @@ main(int argc, char **argv)
exit:
conn_free(conn);
+ ethdev_stop();
cli_exit();
rte_eal_cleanup();
return 0;
diff --git a/app/graph/meson.build b/app/graph/meson.build
index 5dc23c875b..c17e0cc63e 100644
--- a/app/graph/meson.build
+++ b/app/graph/meson.build
@@ -12,6 +12,7 @@ deps += ['graph', 'eal', 'lpm', 'ethdev', 'node', 'cmdline']
sources = files(
'cli.c',
'conn.c',
+ 'ethdev.c',
'main.c',
'mempool.c',
'utils.c',
diff --git a/app/graph/module_api.h b/app/graph/module_api.h
index b45419811b..e8a6ccb562 100644
--- a/app/graph/module_api.h
+++ b/app/graph/module_api.h
@@ -10,6 +10,7 @@
#include "cli.h"
#include "conn.h"
+#include "ethdev.h"
#include "mempool.h"
#include "utils.h"
/*
diff --git a/doc/guides/tools/graph.rst b/doc/guides/tools/graph.rst
index ee5b3d48a5..adf15b8e59 100644
--- a/doc/guides/tools/graph.rst
+++ b/doc/guides/tools/graph.rst
@@ -86,6 +86,42 @@ file to express the requested use case configuration.
- Command to dump mempool help message
- Yes
- Yes
+ * - ethdev <ethdev_name> rxq <n_queues> txq <n_queues> <mempool_name>
+ - Command to create DPDK port with given number of Rx and Tx queues. Also attached
+ RxQ with given mempool. Each port can have single mempool only i.e. all RxQs will
+ share the same mempool.
+ - No
+ - No
+ * - ethdev <ethdev_name> mtu <mtu_sz>
+ - Command to configure MTU of DPDK port
+ - Yes
+ - Yes
+ * - ethdev <ethdev_name> promiscuous <on/off>
+ - Command to enable/disable promiscuous mode on DPDK port
+ - Yes
+ - Yes
+ * - ethdev <ethdev_name> show
+ - Command to dump current ethdev configuration
+ - Yes
+ - Yes
+ * - ethdev <ethdev_name> stats
+ - Command to dump current ethdev statistics
+ - Yes
+ - Yes
+ * - ethdev <ethdev_name> ip4 addr add <ip> netmask <mask>
+ - Command to configure IPv4 address on given PCI device. It is needed if user
+ wishes to use ``ipv4_lookup`` node
+ - Yes
+ - Yes
+ * - ethdev <ethdev_name> ip6 addr add <ip> netmask <mask>
+ - Command to configure IPv6 address on given PCI device. It is needed if user
+ wishes to use ``ipv6_lookup`` node
+ - Yes
+ - Yes
+ * - help ethdev
+ - Command to dump ethdev help message
+ - Yes
+ - Yes
Runtime configuration
---------------------
@@ -119,6 +155,17 @@ Example: ``dpdk-graph`` is started with -h 10.28.35.207 and -p 50000 then
graph>
graph>
+ graph> help ethdev
+
+ ----------------------------- ethdev command help -----------------------------
+ ethdev <ethdev_name> rxq <n_queues> txq <n_queues> <mempool_name>
+ ethdev <ethdev_name> ip4 addr add <ip> netmask <mask>
+ ethdev <ethdev_name> ip6 addr add <ip> netmask <mask>
+ ethdev <ethdev_name> promiscuous <on/off>
+ ethdev <ethdev_name> mtu <mtu_sz>
+ ethdev <ethdev_name> show
+ graph>
+
Created graph for use case
--------------------------
--
2.25.1
next prev parent reply other threads:[~2023-10-18 6:34 UTC|newest]
Thread overview: 182+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-21 6:02 [PATCH 0/4] app: introduce testgraph application Vamsi Attunuru
2023-04-21 6:02 ` [PATCH 1/4] node: add pkt punt to kernel node Vamsi Attunuru
2023-05-29 17:29 ` Jerin Jacob
2023-05-31 12:36 ` [EXT] " Vamsi Krishna Attunuru
2023-04-21 6:02 ` [PATCH 2/4] node: add a node to receive pkts from kernel Vamsi Attunuru
2023-05-29 17:39 ` Jerin Jacob
2023-06-01 2:40 ` [EXT] " Vamsi Krishna Attunuru
2023-04-21 6:02 ` [PATCH 3/4] node: remove hardcoded node next details Vamsi Attunuru
2023-04-21 6:02 ` [PATCH 4/4] app: add testgraph application Vamsi Attunuru
2023-05-09 6:09 ` Jerin Jacob
2023-04-25 13:15 ` [PATCH v2 0/4] app: introduce " Vamsi Attunuru
2023-04-25 13:15 ` [PATCH v2 1/4] node: add pkt punt to kernel node Vamsi Attunuru
2023-05-30 8:16 ` Nithin Dabilpuram
2023-05-31 12:35 ` [EXT] " Vamsi Krishna Attunuru
2023-04-25 13:15 ` [PATCH v2 2/4] node: add a node to receive pkts from kernel Vamsi Attunuru
2023-04-25 13:15 ` [PATCH v2 3/4] node: remove hardcoded node next details Vamsi Attunuru
2023-04-25 13:15 ` [PATCH v2 4/4] app: add testgraph application Vamsi Attunuru
2023-05-09 2:34 ` [EXT] " Sunil Kumar Kori
2023-05-09 3:39 ` Vamsi Krishna Attunuru
2023-05-09 8:53 ` Sunil Kumar Kori
2023-05-09 12:24 ` Vamsi Krishna Attunuru
2023-05-12 11:08 ` Yan, Zhirun
2023-05-22 7:07 ` Vamsi Krishna Attunuru
2023-05-30 7:34 ` Jerin Jacob
2023-06-01 2:44 ` [EXT] " Vamsi Krishna Attunuru
2023-07-20 15:52 ` Rakesh Kudurumalla
2023-07-21 6:48 ` Jerin Jacob
2023-07-21 7:01 ` Sunil Kumar Kori
2023-07-21 7:39 ` Rakesh Kudurumalla
2023-09-08 11:00 ` Sunil Kumar Kori
2023-09-08 10:49 ` [PATCH v3 1/1] app/graph: add example for different usecases skori
2023-09-09 1:18 ` [EXT] " Nithin Kumar Dabilpuram
2023-09-19 16:04 ` [PATCH v4 01/14] app/graph: add application framework to read CLI skori
2023-09-19 16:04 ` [PATCH v4 02/14] app/graph: add telnet connectivity framework skori
2023-09-20 4:34 ` Jerin Jacob
2023-09-20 8:14 ` Bruce Richardson
2023-09-19 16:04 ` [PATCH v4 03/14] app/graph: add parser utility APIs skori
2023-09-19 16:04 ` [PATCH v4 04/14] app/graph: add mempool command line interfaces skori
2023-09-19 16:04 ` [PATCH v4 05/14] app/graph: add ethdev " skori
2023-09-19 16:04 ` [PATCH v4 06/14] app/graph: add ipv4_lookup " skori
2023-09-19 16:04 ` [PATCH v4 07/14] app/graph: add ipv6_lookup " skori
2023-09-19 16:04 ` [PATCH v4 08/14] app/graph: add neigh " skori
2023-09-19 16:04 ` [PATCH v4 09/14] app/graph: add ethdev_rx " skori
2023-09-19 16:04 ` [PATCH v4 10/14] app/graph: add graph " skori
2023-09-19 16:04 ` [PATCH v4 11/14] app/graph: add CLI option to enable graph stats skori
2023-09-19 16:04 ` [PATCH v4 12/14] app/graph: add l3fwd usecase skori
2023-09-19 16:04 ` [PATCH v4 13/14] doc: add graph application user guide skori
2023-09-20 4:28 ` Jerin Jacob
2023-09-19 16:04 ` [PATCH v4 14/14] maintainers: add maintainers for graph app skori
2023-09-20 4:40 ` [PATCH v4 01/14] app/graph: add application framework to read CLI Jerin Jacob
2023-09-21 10:08 ` [PATCH v5 00/12] add CLI based graph application skori
2023-09-21 10:08 ` [PATCH v5 01/12] app/graph: add application framework to read CLI skori
2023-09-21 10:08 ` [PATCH v5 02/12] app/graph: add telnet connectivity framework skori
2023-09-21 10:08 ` [PATCH v5 03/12] app/graph: add parser utility APIs skori
2023-09-21 10:08 ` [PATCH v5 04/12] app/graph: add mempool command line interfaces skori
2023-09-21 10:08 ` [PATCH v5 05/12] app/graph: add ethdev " skori
2023-09-21 10:08 ` [PATCH v5 06/12] app/graph: add ipv4_lookup " skori
2023-09-21 10:08 ` [PATCH v5 07/12] app/graph: add ipv6_lookup " skori
2023-09-21 10:08 ` [PATCH v5 08/12] app/graph: add neigh " skori
2023-09-21 10:08 ` [PATCH v5 09/12] app/graph: add ethdev_rx " skori
2023-09-21 10:08 ` [PATCH v5 10/12] app/graph: add graph " skori
2023-09-21 10:08 ` [PATCH v5 11/12] app/graph: add CLI option to enable graph stats skori
2023-09-21 10:08 ` [PATCH v5 12/12] app/graph: add l3fwd usecase skori
2023-09-26 10:57 ` [PATCH v6 00/12] add CLI based graph application skori
2023-09-26 10:57 ` [PATCH v6 01/12] app/graph: add application framework to read CLI skori
2023-09-26 10:57 ` [PATCH v6 02/12] app/graph: add telnet connectivity framework skori
2023-09-26 10:57 ` [PATCH v6 03/12] app/graph: add parser utility APIs skori
2023-09-26 10:57 ` [PATCH v6 04/12] app/graph: add mempool command line interfaces skori
2023-09-26 10:57 ` [PATCH v6 05/12] app/graph: add ethdev " skori
2023-09-26 10:57 ` [PATCH v6 06/12] app/graph: add ipv4_lookup " skori
2023-09-26 10:57 ` [PATCH v6 07/12] app/graph: add ipv6_lookup " skori
2023-09-26 10:57 ` [PATCH v6 08/12] app/graph: add neigh " skori
2023-09-26 10:57 ` [PATCH v6 09/12] app/graph: add ethdev_rx " skori
2023-09-26 10:57 ` [PATCH v6 10/12] app/graph: add graph " skori
2023-09-26 10:57 ` [PATCH v6 11/12] app/graph: add CLI option to enable graph stats skori
2023-09-26 10:57 ` [PATCH v6 12/12] app/graph: add l3fwd use case skori
2023-09-27 11:54 ` [PATCH v7 00/12] add CLI based graph application skori
2023-09-27 11:54 ` [PATCH v7 01/12] app/graph: add application framework to read CLI skori
2023-09-27 11:54 ` [PATCH v7 02/12] app/graph: add telnet connectivity framework skori
2023-09-27 11:54 ` [PATCH v7 03/12] app/graph: add parser utility APIs skori
2023-09-27 11:54 ` [PATCH v7 04/12] app/graph: add mempool command line interfaces skori
2023-09-27 11:54 ` [PATCH v7 05/12] app/graph: add ethdev " skori
2023-09-27 11:54 ` [PATCH v7 06/12] app/graph: add ipv4_lookup " skori
2023-09-27 11:54 ` [PATCH v7 07/12] app/graph: add ipv6_lookup " skori
2023-09-27 11:54 ` [PATCH v7 08/12] app/graph: add neigh " skori
2023-09-27 11:54 ` [PATCH v7 09/12] app/graph: add ethdev_rx " skori
2023-09-27 11:54 ` [PATCH v7 10/12] app/graph: add graph " skori
2023-09-27 11:54 ` [PATCH v7 11/12] app/graph: add CLI option to enable graph stats skori
2023-09-27 11:54 ` [PATCH v7 12/12] app/graph: add l3fwd use case skori
2023-09-29 9:58 ` [PATCH v8 00/12] add CLI based graph application skori
2023-09-29 9:58 ` [PATCH v8 01/12] app/graph: add application framework to read CLI skori
2023-10-16 9:00 ` Jerin Jacob
2023-10-17 6:19 ` [EXT] " Sunil Kumar Kori
2023-10-18 6:33 ` [PATCH v9 00/12] add CLI based graph application skori
2023-10-18 6:33 ` [PATCH v9 01/12] app/graph: support application CLI framework skori
2023-10-18 6:33 ` [PATCH v9 02/12] app/graph: support telnet connectivity framework skori
2023-10-18 6:33 ` [PATCH v9 03/12] app/graph: support parser utility APIs skori
2023-10-18 6:33 ` [PATCH v9 04/12] app/graph: support mempool command line interfaces skori
2023-10-18 6:33 ` skori [this message]
2023-10-18 6:33 ` [PATCH v9 06/12] app/graph: support IPv4 lookup " skori
2023-10-18 6:33 ` [PATCH v9 07/12] app/graph: support IPv6 " skori
2023-10-18 6:33 ` [PATCH v9 08/12] app/graph: support neigh " skori
2023-10-18 6:33 ` [PATCH v9 09/12] app/graph: support ethdev Rx " skori
2023-10-18 6:33 ` [PATCH v9 10/12] app/graph: support graph " skori
2023-10-18 6:33 ` [PATCH v9 11/12] app/graph: support CLI option to enable graph stats skori
2023-10-18 6:33 ` [PATCH v9 12/12] app/graph: support l3fwd use case skori
2023-10-18 10:38 ` Jerin Jacob
2023-10-19 10:49 ` [PATCH v10 00/12] add CLI based graph application skori
2023-10-19 10:49 ` [PATCH v10 01/12] app/graph: support application CLI framework skori
2023-10-19 10:49 ` [PATCH v10 02/12] app/graph: support telnet connectivity framework skori
2023-10-19 10:49 ` [PATCH v10 03/12] app/graph: support parser utility APIs skori
2023-10-19 10:49 ` [PATCH v10 04/12] app/graph: support mempool command line interfaces skori
2023-10-19 10:49 ` [PATCH v10 05/12] app/graph: support ethdev " skori
2023-10-19 10:49 ` [PATCH v10 06/12] app/graph: support IPv4 lookup " skori
2023-10-19 10:49 ` [PATCH v10 07/12] app/graph: support IPv6 " skori
2023-10-19 10:49 ` [PATCH v10 08/12] app/graph: support neigh " skori
2023-10-19 10:49 ` [PATCH v10 09/12] app/graph: support ethdev Rx " skori
2023-10-19 10:49 ` [PATCH v10 10/12] app/graph: support graph " skori
2023-10-19 10:49 ` [PATCH v10 11/12] app/graph: support CLI option to enable graph stats skori
2023-10-19 10:50 ` [PATCH v10 12/12] app/graph: support l3fwd use case skori
2023-10-19 12:28 ` [EXT] " Jerin Jacob Kollanukkaran
2023-10-23 7:06 ` Nithin Dabilpuram
2023-10-19 17:29 ` [PATCH v11 00/12] add CLI based graph application skori
2023-10-19 17:30 ` [PATCH v11 01/12] app/graph: support application CLI framework skori
2023-10-23 7:03 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 02/12] app/graph: support telnet connectivity framework skori
2023-10-23 7:03 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 03/12] app/graph: support parser utility APIs skori
2023-10-23 7:03 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 04/12] app/graph: support mempool command line interfaces skori
2023-10-23 7:04 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 05/12] app/graph: support ethdev " skori
2023-10-23 7:04 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 06/12] app/graph: support IPv4 lookup " skori
2023-10-23 7:04 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 07/12] app/graph: support IPv6 " skori
2023-10-23 7:04 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 08/12] app/graph: support neigh " skori
2023-10-23 7:05 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 09/12] app/graph: support ethdev Rx " skori
2023-10-23 7:05 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 10/12] app/graph: support graph " skori
2023-10-23 7:06 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 11/12] app/graph: support CLI option to enable graph stats skori
2023-10-23 7:06 ` Nithin Dabilpuram
2023-10-19 17:30 ` [PATCH v11 12/12] app/graph: support l3fwd use case skori
2023-10-23 13:03 ` [PATCH v11 00/12] add CLI based graph application Sunil Kumar Kori
2023-11-03 16:44 ` Thomas Monjalon
2023-09-29 9:58 ` [PATCH v8 02/12] app/graph: add telnet connectivity framework skori
2023-10-16 9:04 ` Jerin Jacob
2023-10-17 6:21 ` [EXT] " Sunil Kumar Kori
2023-09-29 9:58 ` [PATCH v8 03/12] app/graph: add parser utility APIs skori
2023-10-16 9:05 ` Jerin Jacob
2023-09-29 9:58 ` [PATCH v8 04/12] app/graph: add mempool command line interfaces skori
2023-10-16 9:09 ` Jerin Jacob
2023-10-17 6:22 ` [EXT] " Sunil Kumar Kori
2023-09-29 9:58 ` [PATCH v8 05/12] app/graph: add ethdev " skori
2023-10-16 13:20 ` Jerin Jacob
2023-10-16 14:10 ` Bruce Richardson
2023-10-17 6:26 ` [EXT] " Sunil Kumar Kori
2023-09-29 9:58 ` [PATCH v8 06/12] app/graph: add ipv4_lookup " skori
2023-10-16 15:47 ` Jerin Jacob
2023-10-17 6:30 ` [EXT] " Sunil Kumar Kori
2023-09-29 9:58 ` [PATCH v8 07/12] app/graph: add ipv6_lookup " skori
2023-09-29 9:58 ` [PATCH v8 08/12] app/graph: add neigh " skori
2023-09-29 9:58 ` [PATCH v8 09/12] app/graph: add ethdev_rx " skori
2023-09-29 9:58 ` [PATCH v8 10/12] app/graph: add graph " skori
2023-09-29 9:58 ` [PATCH v8 11/12] app/graph: add CLI option to enable graph stats skori
2023-10-16 15:55 ` Jerin Jacob
2023-09-29 9:58 ` [PATCH v8 12/12] app/graph: add l3fwd use case skori
2023-10-16 16:01 ` [PATCH v8 00/12] add CLI based graph application Jerin Jacob
2023-10-16 16:27 ` Stephen Hemminger
2023-06-02 16:22 ` [PATCH v3 0/3] node: Introduce kernel_rx & kernel_tx nodes Vamsi Attunuru
2023-06-02 16:22 ` [PATCH v3 1/3] node/kernel_tx: support packet transmit to kernel Vamsi Attunuru
2023-06-05 12:47 ` Nithin Dabilpuram
2023-06-12 19:32 ` Thomas Monjalon
2023-06-02 16:22 ` [PATCH v3 2/3] node/kernel_rx: support receiving packets from kernel Vamsi Attunuru
2023-06-05 12:50 ` Nithin Dabilpuram
2023-06-02 16:22 ` [PATCH v3 3/3] node/ethdev_rx: remove hardcoded node next details Vamsi Attunuru
2023-06-05 12:51 ` Nithin Dabilpuram
2023-06-12 16:12 ` [PATCH v3 0/3] node: Introduce kernel_rx & kernel_tx nodes Vamsi Krishna Attunuru
2023-06-12 19:31 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231018063347.68081-6-skori@marvell.com \
--to=skori@marvell.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=rkudurumalla@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).