Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/140044/?format=api
http://patchwork.dpdk.org/api/patches/140044/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240513185448.120356-6-stephen@networkplumber.org/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20240513185448.120356-6-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20240513185448.120356-6-stephen@networkplumber.org", "date": "2024-05-13T18:52:15", "name": "[RFC,v2,5/7] net/pcap: use generic SW stats", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "ec6c1f8a14fb462375a6e7a643b45006fdf9f7e0", "submitter": { "id": 27, "url": "http://patchwork.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240513185448.120356-6-stephen@networkplumber.org/mbox/", "series": [ { "id": 31915, "url": "http://patchwork.dpdk.org/api/series/31915/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31915", "date": "2024-05-13T18:52:10", "name": "generic SW counters", "version": 2, "mbox": "http://patchwork.dpdk.org/series/31915/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/140044/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/140044/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 06A364401D;\n\tMon, 13 May 2024 20:55:36 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4828640A6B;\n\tMon, 13 May 2024 20:55:07 +0200 (CEST)", "from mail-oo1-f50.google.com (mail-oo1-f50.google.com\n [209.85.161.50]) by mails.dpdk.org (Postfix) with ESMTP id 7F5A540695\n for <dev@dpdk.org>; Mon, 13 May 2024 20:55:03 +0200 (CEST)", "by mail-oo1-f50.google.com with SMTP id\n 006d021491bc7-5b2baa24c2bso867442eaf.0\n for <dev@dpdk.org>; Mon, 13 May 2024 11:55:03 -0700 (PDT)", "from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226])\n by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-634103f7237sm8154680a12.71.2024.05.13.11.55.01\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 13 May 2024 11:55:02 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1715626503;\n x=1716231303; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=zQ+ooLtUkL2XITzIc3SCHv9JSV9L31lszmoiqikUo6c=;\n b=0fm+uWLEgmUGZboZa2FqIiiS6s5iQLrCib6Hu7xSWzjCS24MkrOVY2+LfCplDWwZ7W\n pjXHqAfn480WvCJn7Re8+8F10U4UtCNWseoNNIpkPCVFX1ty6a1MZBOl3oD2Ca1OmR7q\n Va8y/1bAMo6D29eoGeqqrLZbLzrHVfC40t4sZ2Z2jIqCA3Uc1fub1utp0pT6FTHXfb2L\n DwlS5RmECSxkHFuC3PsItcfca3hR02wbmK1UdkNL89d3yT1osGn/EBrn3BhGk8FaYLBc\n pxkCd7ag2LoishXruspQdbFc0wsB7p+N5iDB5mZsXlrdoHtT5uX+xz4X8k81xINXkAvz\n RMuA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1715626503; x=1716231303;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=zQ+ooLtUkL2XITzIc3SCHv9JSV9L31lszmoiqikUo6c=;\n b=nb0TM5k+8D5AT0pd8hnmKTTnT5RhDXVTIp1UwVVXVX1duoxT7NQ7XyA/BZBZ1NJCYs\n uoplAVyvrHy7zeJQ3HjglXWKKGMEss3K47ckA8SC+UhNcSdnZZ6Ko0uYrd0M6eDvKRbL\n WFY9k+YdiAI0XoTfc7BDW4juZdKTd7ns8hneedOQZ5/qBGUgWZhWeNss9gUpv8+tixZw\n BQ7DJcwBikRQJFNfMy3r3OXkMPgCT11qLI30RuUUIrNydST/vjyK/3dkww2hmx6C3Jqj\n fPKuCq88dGp9HYZsoBGwI0pi+RElJllab/DJXWidLYkgcAJY5re+QRqLp296O4SGzMaV\n g/hw==", "X-Gm-Message-State": "AOJu0YwxBF1RKK13WV0ACLZqnoXUeWoTnGyhIUNtoV1tyhOV5CkfOtq7\n Wfou07sxbndcOKO4qGWMZtmYGBsrD/dSUOKncMPzeJ7LKBnHmhX1DgmxrmfXavE9WBTMmAMUxJA\n 2YMs7lA==", "X-Google-Smtp-Source": "\n AGHT+IEiXpt2s7FWSddOmelAWywZnHlbKXjaiS1c2LR4JrXIAvUNixObC6BK8cEqFIyNTPbUQx9mkg==", "X-Received": "by 2002:a05:6358:418b:b0:186:1066:7aa0 with SMTP id\n e5c5f4694b2df-193bd00844emr1117508355d.29.1715626502516;\n Mon, 13 May 2024 11:55:02 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>", "Subject": "[RFC v2 5/7] net/pcap: use generic SW stats", "Date": "Mon, 13 May 2024 11:52:15 -0700", "Message-ID": "<20240513185448.120356-6-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20240513185448.120356-1-stephen@networkplumber.org>", "References": "<20240510050507.14381-1-stephen@networkplumber.org>\n <20240513185448.120356-1-stephen@networkplumber.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Use common statistics for SW drivers.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n drivers/net/pcap/pcap_ethdev.c | 146 +++++++++++----------------------\n 1 file changed, 47 insertions(+), 99 deletions(-)", "diff": "diff --git a/drivers/net/pcap/pcap_ethdev.c b/drivers/net/pcap/pcap_ethdev.c\nindex bfec085045..872a3ed9a4 100644\n--- a/drivers/net/pcap/pcap_ethdev.c\n+++ b/drivers/net/pcap/pcap_ethdev.c\n@@ -11,6 +11,7 @@\n \n #include <rte_cycles.h>\n #include <ethdev_driver.h>\n+#include <ethdev_swstats.h>\n #include <ethdev_vdev.h>\n #include <rte_kvargs.h>\n #include <rte_malloc.h>\n@@ -48,13 +49,6 @@ static uint8_t iface_idx;\n static uint64_t timestamp_rx_dynflag;\n static int timestamp_dynfield_offset = -1;\n \n-struct queue_stat {\n-\tvolatile unsigned long pkts;\n-\tvolatile unsigned long bytes;\n-\tvolatile unsigned long err_pkts;\n-\tvolatile unsigned long rx_nombuf;\n-};\n-\n struct queue_missed_stat {\n \t/* last value retrieved from pcap */\n \tunsigned int pcap;\n@@ -68,7 +62,7 @@ struct pcap_rx_queue {\n \tuint16_t port_id;\n \tuint16_t queue_id;\n \tstruct rte_mempool *mb_pool;\n-\tstruct queue_stat rx_stat;\n+\tstruct rte_eth_counters rx_stat;\n \tstruct queue_missed_stat missed_stat;\n \tchar name[PATH_MAX];\n \tchar type[ETH_PCAP_ARG_MAXLEN];\n@@ -80,7 +74,7 @@ struct pcap_rx_queue {\n struct pcap_tx_queue {\n \tuint16_t port_id;\n \tuint16_t queue_id;\n-\tstruct queue_stat tx_stat;\n+\tstruct rte_eth_counters tx_stat;\n \tchar name[PATH_MAX];\n \tchar type[ETH_PCAP_ARG_MAXLEN];\n };\n@@ -238,7 +232,6 @@ eth_pcap_rx_infinite(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n {\n \tint i;\n \tstruct pcap_rx_queue *pcap_q = queue;\n-\tuint32_t rx_bytes = 0;\n \n \tif (unlikely(nb_pkts == 0))\n \t\treturn 0;\n@@ -252,39 +245,35 @@ eth_pcap_rx_infinite(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \t\tif (err)\n \t\t\treturn i;\n \n+\t\trte_eth_count_mbuf(&pcap_q->rx_stat, pcap_buf);\n+\n \t\trte_memcpy(rte_pktmbuf_mtod(bufs[i], void *),\n \t\t\t\trte_pktmbuf_mtod(pcap_buf, void *),\n \t\t\t\tpcap_buf->data_len);\n \t\tbufs[i]->data_len = pcap_buf->data_len;\n \t\tbufs[i]->pkt_len = pcap_buf->pkt_len;\n \t\tbufs[i]->port = pcap_q->port_id;\n-\t\trx_bytes += pcap_buf->data_len;\n+\n \n \t\t/* Enqueue packet back on ring to allow infinite rx. */\n \t\trte_ring_enqueue(pcap_q->pkts, pcap_buf);\n \t}\n \n-\tpcap_q->rx_stat.pkts += i;\n-\tpcap_q->rx_stat.bytes += rx_bytes;\n-\n \treturn i;\n }\n \n static uint16_t\n eth_pcap_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n {\n+\tstruct pcap_rx_queue *pcap_q = queue;\n+\tstruct rte_eth_dev *dev = &rte_eth_devices[pcap_q->port_id];\n+\tstruct pmd_process_private *pp = dev->process_private;\n+\tpcap_t *pcap = pp->rx_pcap[pcap_q->queue_id];\n \tunsigned int i;\n \tstruct pcap_pkthdr header;\n-\tstruct pmd_process_private *pp;\n \tconst u_char *packet;\n \tstruct rte_mbuf *mbuf;\n-\tstruct pcap_rx_queue *pcap_q = queue;\n \tuint16_t num_rx = 0;\n-\tuint32_t rx_bytes = 0;\n-\tpcap_t *pcap;\n-\n-\tpp = rte_eth_devices[pcap_q->port_id].process_private;\n-\tpcap = pp->rx_pcap[pcap_q->queue_id];\n \n \tif (unlikely(pcap == NULL || nb_pkts == 0))\n \t\treturn 0;\n@@ -300,7 +289,7 @@ eth_pcap_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \n \t\tmbuf = rte_pktmbuf_alloc(pcap_q->mb_pool);\n \t\tif (unlikely(mbuf == NULL)) {\n-\t\t\tpcap_q->rx_stat.rx_nombuf++;\n+\t\t\t++dev->data->rx_mbuf_alloc_failed;\n \t\t\tbreak;\n \t\t}\n \n@@ -315,7 +304,7 @@ eth_pcap_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \t\t\t\t\t\t mbuf,\n \t\t\t\t\t\t packet,\n \t\t\t\t\t\t header.caplen) == -1)) {\n-\t\t\t\tpcap_q->rx_stat.err_pkts++;\n+\t\t\t\trte_eth_count_error(&pcap_q->rx_stat);\n \t\t\t\trte_pktmbuf_free(mbuf);\n \t\t\t\tbreak;\n \t\t\t}\n@@ -329,11 +318,10 @@ eth_pcap_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \t\tmbuf->ol_flags |= timestamp_rx_dynflag;\n \t\tmbuf->port = pcap_q->port_id;\n \t\tbufs[num_rx] = mbuf;\n+\n+\t\trte_eth_count_mbuf(&pcap_q->rx_stat, mbuf);\n \t\tnum_rx++;\n-\t\trx_bytes += header.caplen;\n \t}\n-\tpcap_q->rx_stat.pkts += num_rx;\n-\tpcap_q->rx_stat.bytes += rx_bytes;\n \n \treturn num_rx;\n }\n@@ -379,8 +367,6 @@ eth_pcap_tx_dumper(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \tstruct rte_mbuf *mbuf;\n \tstruct pmd_process_private *pp;\n \tstruct pcap_tx_queue *dumper_q = queue;\n-\tuint16_t num_tx = 0;\n-\tuint32_t tx_bytes = 0;\n \tstruct pcap_pkthdr header;\n \tpcap_dumper_t *dumper;\n \tunsigned char temp_data[RTE_ETH_PCAP_SNAPLEN];\n@@ -412,8 +398,7 @@ eth_pcap_tx_dumper(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \t\tpcap_dump((u_char *)dumper, &header,\n \t\t\trte_pktmbuf_read(mbuf, 0, caplen, temp_data));\n \n-\t\tnum_tx++;\n-\t\ttx_bytes += caplen;\n+\t\trte_eth_count_mbuf(&dumper_q->tx_stat, mbuf);\n \t\trte_pktmbuf_free(mbuf);\n \t}\n \n@@ -423,9 +408,6 @@ eth_pcap_tx_dumper(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \t * we flush the pcap dumper within each burst.\n \t */\n \tpcap_dump_flush(dumper);\n-\tdumper_q->tx_stat.pkts += num_tx;\n-\tdumper_q->tx_stat.bytes += tx_bytes;\n-\tdumper_q->tx_stat.err_pkts += nb_pkts - num_tx;\n \n \treturn nb_pkts;\n }\n@@ -437,20 +419,16 @@ static uint16_t\n eth_tx_drop(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n {\n \tunsigned int i;\n-\tuint32_t tx_bytes = 0;\n \tstruct pcap_tx_queue *tx_queue = queue;\n \n \tif (unlikely(nb_pkts == 0))\n \t\treturn 0;\n \n \tfor (i = 0; i < nb_pkts; i++) {\n-\t\ttx_bytes += bufs[i]->pkt_len;\n+\t\trte_eth_count_mbuf(&tx_queue->tx_stat, bufs[i]);\n \t\trte_pktmbuf_free(bufs[i]);\n \t}\n \n-\ttx_queue->tx_stat.pkts += nb_pkts;\n-\ttx_queue->tx_stat.bytes += tx_bytes;\n-\n \treturn i;\n }\n \n@@ -465,8 +443,6 @@ eth_pcap_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \tstruct rte_mbuf *mbuf;\n \tstruct pmd_process_private *pp;\n \tstruct pcap_tx_queue *tx_queue = queue;\n-\tuint16_t num_tx = 0;\n-\tuint32_t tx_bytes = 0;\n \tpcap_t *pcap;\n \tunsigned char temp_data[RTE_ETH_PCAP_SNAPLEN];\n \tsize_t len;\n@@ -497,15 +473,11 @@ eth_pcap_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\n \t\t\trte_pktmbuf_read(mbuf, 0, len, temp_data), len);\n \t\tif (unlikely(ret != 0))\n \t\t\tbreak;\n-\t\tnum_tx++;\n-\t\ttx_bytes += len;\n+\n+\t\trte_eth_count_mbuf(&tx_queue->tx_stat, mbuf);\n \t\trte_pktmbuf_free(mbuf);\n \t}\n \n-\ttx_queue->tx_stat.pkts += num_tx;\n-\ttx_queue->tx_stat.bytes += tx_bytes;\n-\ttx_queue->tx_stat.err_pkts += i - num_tx;\n-\n \treturn i;\n }\n \n@@ -746,41 +718,12 @@ static int\n eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n {\n \tunsigned int i;\n-\tunsigned long rx_packets_total = 0, rx_bytes_total = 0;\n-\tunsigned long rx_missed_total = 0;\n-\tunsigned long rx_nombuf_total = 0, rx_err_total = 0;\n-\tunsigned long tx_packets_total = 0, tx_bytes_total = 0;\n-\tunsigned long tx_packets_err_total = 0;\n-\tconst struct pmd_internals *internal = dev->data->dev_private;\n-\n-\tfor (i = 0; i < RTE_ETHDEV_QUEUE_STAT_CNTRS &&\n-\t\t\ti < dev->data->nb_rx_queues; i++) {\n-\t\tstats->q_ipackets[i] = internal->rx_queue[i].rx_stat.pkts;\n-\t\tstats->q_ibytes[i] = internal->rx_queue[i].rx_stat.bytes;\n-\t\trx_nombuf_total += internal->rx_queue[i].rx_stat.rx_nombuf;\n-\t\trx_err_total += internal->rx_queue[i].rx_stat.err_pkts;\n-\t\trx_packets_total += stats->q_ipackets[i];\n-\t\trx_bytes_total += stats->q_ibytes[i];\n-\t\trx_missed_total += queue_missed_stat_get(dev, i);\n-\t}\n \n-\tfor (i = 0; i < RTE_ETHDEV_QUEUE_STAT_CNTRS &&\n-\t\t\ti < dev->data->nb_tx_queues; i++) {\n-\t\tstats->q_opackets[i] = internal->tx_queue[i].tx_stat.pkts;\n-\t\tstats->q_obytes[i] = internal->tx_queue[i].tx_stat.bytes;\n-\t\ttx_packets_total += stats->q_opackets[i];\n-\t\ttx_bytes_total += stats->q_obytes[i];\n-\t\ttx_packets_err_total += internal->tx_queue[i].tx_stat.err_pkts;\n-\t}\n+\trte_eth_counters_stats_get(dev, offsetof(struct pcap_tx_queue, tx_stat),\n+\t\t\t\t offsetof(struct pcap_rx_queue, rx_stat), stats);\n \n-\tstats->ipackets = rx_packets_total;\n-\tstats->ibytes = rx_bytes_total;\n-\tstats->imissed = rx_missed_total;\n-\tstats->ierrors = rx_err_total;\n-\tstats->rx_nombuf = rx_nombuf_total;\n-\tstats->opackets = tx_packets_total;\n-\tstats->obytes = tx_bytes_total;\n-\tstats->oerrors = tx_packets_err_total;\n+\tfor (i = 0; i < dev->data->nb_rx_queues; i++)\n+\t\tstats->imissed += queue_missed_stat_get(dev, i);\n \n \treturn 0;\n }\n@@ -789,25 +732,34 @@ static int\n eth_stats_reset(struct rte_eth_dev *dev)\n {\n \tunsigned int i;\n-\tstruct pmd_internals *internal = dev->data->dev_private;\n \n-\tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n-\t\tinternal->rx_queue[i].rx_stat.pkts = 0;\n-\t\tinternal->rx_queue[i].rx_stat.bytes = 0;\n-\t\tinternal->rx_queue[i].rx_stat.err_pkts = 0;\n-\t\tinternal->rx_queue[i].rx_stat.rx_nombuf = 0;\n-\t\tqueue_missed_stat_reset(dev, i);\n-\t}\n+\trte_eth_counters_reset(dev, offsetof(struct pcap_tx_queue, tx_stat),\n+\t\t\t offsetof(struct pcap_rx_queue, rx_stat));\n \n-\tfor (i = 0; i < dev->data->nb_tx_queues; i++) {\n-\t\tinternal->tx_queue[i].tx_stat.pkts = 0;\n-\t\tinternal->tx_queue[i].tx_stat.bytes = 0;\n-\t\tinternal->tx_queue[i].tx_stat.err_pkts = 0;\n-\t}\n+\tfor (i = 0; i < dev->data->nb_rx_queues; i++)\n+\t\tqueue_missed_stat_reset(dev, i);\n \n \treturn 0;\n }\n \n+static int\n+eth_xstats_get_names(struct rte_eth_dev *dev,\n+\t\t struct rte_eth_xstat_name *names,\n+\t\t __rte_unused unsigned int limit)\n+{\n+\treturn rte_eth_counters_xstats_get_names(dev, names);\n+}\n+\n+static int\n+eth_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats,\n+\t unsigned int n)\n+{\n+\treturn rte_eth_counters_xstats_get(dev, offsetof(struct pcap_tx_queue, tx_stat),\n+\t\t\t\t\t offsetof(struct pcap_rx_queue, rx_stat),\n+\t\t\t\t\t xstats, n);\n+}\n+\n+\n static inline void\n infinite_rx_ring_free(struct rte_ring *pkts)\n {\n@@ -929,13 +881,6 @@ eth_rx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t\tpcap_pkt_count);\n \t\t\treturn -EINVAL;\n \t\t}\n-\n-\t\t/*\n-\t\t * Reset the stats for this queue since eth_pcap_rx calls above\n-\t\t * didn't result in the application receiving packets.\n-\t\t */\n-\t\tpcap_q->rx_stat.pkts = 0;\n-\t\tpcap_q->rx_stat.bytes = 0;\n \t}\n \n \treturn 0;\n@@ -1005,6 +950,9 @@ static const struct eth_dev_ops ops = {\n \t.link_update = eth_link_update,\n \t.stats_get = eth_stats_get,\n \t.stats_reset = eth_stats_reset,\n+\t.xstats_get_names = eth_xstats_get_names,\n+\t.xstats_get = eth_xstats_get,\n+\t.xstats_reset = eth_stats_reset,\n };\n \n static int\n", "prefixes": [ "RFC", "v2", "5/7" ] }{ "id": 140044, "url": "