Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/114685/?format=api
https://patches.dpdk.org/api/patches/114685/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220805220029.1096212-3-cristian.dumitrescu@intel.com/", "project": { "id": 1, "url": "https://patches.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": "<20220805220029.1096212-3-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220805220029.1096212-3-cristian.dumitrescu@intel.com", "date": "2022-08-05T22:00:21", "name": "[02/10] port: adjust the sink port counters", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "e0d1de5b465837b2c8265d7194f814f1a69912ba", "submitter": { "id": 19, "url": "https://patches.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220805220029.1096212-3-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 24217, "url": "https://patches.dpdk.org/api/series/24217/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24217", "date": "2022-08-05T22:00:23", "name": "port: implement output port non-blocking behavior", "version": 1, "mbox": "https://patches.dpdk.org/series/24217/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/114685/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/114685/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 63145A00C4;\n\tSat, 6 Aug 2022 00:01:18 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9CEC742C9C;\n\tSat, 6 Aug 2022 00:00:44 +0200 (CEST)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id AECA640697\n for <dev@dpdk.org>; Sat, 6 Aug 2022 00:00:37 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Aug 2022 15:00:32 -0700", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com.) ([10.237.223.157])\n by FMSMGA003.fm.intel.com with ESMTP; 05 Aug 2022 15:00:31 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1659736837; x=1691272837;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=KwJoE32OviBspvMQplNuoy8xoKheS55ft5ouYGAvgJE=;\n b=JIQITuteZV5vQCz7rBeR8z0R2hOAPMBC6nysJE3sqDGsCS467iZPgo95\n o4GZPFuRd7l3dVayv2OXeZ8RHIwG/MFYMWJfY+9M1Ab9i5ukogLRRiMmZ\n u7TX/0xlu7BpoQpRBJ1GPqQfoJWc9eLWYDu4nSGm3eNd7/P0PVEfF1oFv\n +UBjceLR3cV2Y2wSjD0fsA+rpRTEXABTfDRIvKmSnAB8ky3Trx0uyLvQ0\n 3D3eqKMmyePkXLzHbosGqECKEy9CkaTRDTdFDC2c41aCLMz1kqVWHOzcU\n PGli9j5gZExdXOhjrbxSpuPJPnifh9Qihkwz9zQt9eacOoS1MWWxqvpFY w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10430\"; a=\"273348511\"", "E=Sophos;i=\"5.93,217,1654585200\"; d=\"scan'208\";a=\"273348511\"", "E=Sophos;i=\"5.93,217,1654585200\"; d=\"scan'208\";a=\"693137546\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Subject": "[PATCH 02/10] port: adjust the sink port counters", "Date": "Fri, 5 Aug 2022 22:00:21 +0000", "Message-Id": "<20220805220029.1096212-3-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20220805220029.1096212-1-cristian.dumitrescu@intel.com>", "References": "<20220805220029.1096212-1-cristian.dumitrescu@intel.com>", "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": "The sink port is tasked to drop all packets, hence the packet and byte\ncounters should be named to reflect the drop operation.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n lib/port/rte_swx_port_source_sink.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/lib/port/rte_swx_port_source_sink.c b/lib/port/rte_swx_port_source_sink.c\nindex d3cf42c30b..757a2c4a2e 100644\n--- a/lib/port/rte_swx_port_source_sink.c\n+++ b/lib/port/rte_swx_port_source_sink.c\n@@ -299,8 +299,8 @@ sink_pkt_tx(void *port, struct rte_swx_pkt *pkt)\n \tm->pkt_len = pkt->length;\n \tm->data_off = (uint16_t)pkt->offset;\n \n-\tp->stats.n_pkts++;\n-\tp->stats.n_bytes += pkt->length;\n+\tp->stats.n_pkts_drop++;\n+\tp->stats.n_bytes_drop += pkt->length;\n \n #ifdef RTE_PORT_PCAP\n \tif (p->f_dump) {\n@@ -335,8 +335,8 @@ __sink_pkt_clone_tx(void *port, struct rte_swx_pkt *pkt, uint32_t truncation_len\n \tm->pkt_len = pkt->length;\n \tm->data_off = (uint16_t)pkt->offset;\n \n-\tp->stats.n_pkts++;\n-\tp->stats.n_bytes += pkt->length;\n+\tp->stats.n_pkts_drop++;\n+\tp->stats.n_bytes_drop += pkt->length;\n \tp->stats.n_pkts_clone++;\n \n #ifdef RTE_PORT_PCAP\n", "prefixes": [ "02/10" ] }{ "id": 114685, "url": "