Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/114681/?format=api
https://patches.dpdk.org/api/patches/114681/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220805220029.1096212-8-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-8-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220805220029.1096212-8-cristian.dumitrescu@intel.com", "date": "2022-08-05T22:00:26", "name": "[07/10] port: free buffered packets on ring output port free", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "4d1fd5432066601acad681d81cdb548381f792cf", "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-8-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/114681/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/114681/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 9C3DFA00C4;\n\tSat, 6 Aug 2022 00:00:54 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DC5FB42C29;\n\tSat, 6 Aug 2022 00:00:39 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 85A1B400D6\n for <dev@dpdk.org>; Sat, 6 Aug 2022 00:00:36 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Aug 2022 15:00:35 -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:35 -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=1659736836; x=1691272836;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=fn9gdEuKHiYVYsvz9A14FD9hT0zZoolGH0ROrbe7DWs=;\n b=cHLmMRbBT1HN4oN0eoZDwj/CdH3qNAYMimUP+PIxVRGMP8OyOAJzWKhM\n XD0eje37QBYGUfxTM/F1Oo38/KpmZbvAapWDdITxio+LVN00nIxoCsWYx\n 0coXHiubto1LvrEJLUJoRSZMvh1+jxTel+yK7gIWKLNPtlwODp8UwOCVS\n o6ckRczaP5jmRm99sRhPoRSkauvVcaqHOHLHbhMPrqgQVfr/HiNgwdXhQ\n JjvTDb6CDqOYB0EtGbepccm6fd8ilKnm91uVVjAbf9eKlz/BHLNsixDvm\n bheHrcbr+oRZwHrHgKL5YzwlS7rjxfrMj1wU22BSDDGCbecMZtMnRqm5p A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10430\"; a=\"290308821\"", "E=Sophos;i=\"5.93,216,1654585200\"; d=\"scan'208\";a=\"290308821\"", "E=Sophos;i=\"5.93,217,1654585200\"; d=\"scan'208\";a=\"693137580\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Subject": "[PATCH 07/10] port: free buffered packets on ring output port free", "Date": "Fri, 5 Aug 2022 22:00:26 +0000", "Message-Id": "<20220805220029.1096212-8-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": "Free the buffered packets as opposed to retrying to send them when the\noutput port is freed.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n lib/port/rte_swx_port_ring.c | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/port/rte_swx_port_ring.c b/lib/port/rte_swx_port_ring.c\nindex 72ec7209bf..7cdcd4b638 100644\n--- a/lib/port/rte_swx_port_ring.c\n+++ b/lib/port/rte_swx_port_ring.c\n@@ -371,11 +371,17 @@ static void\n writer_free(void *port)\n {\n \tstruct writer *p = port;\n+\tint i;\n \n \tif (!p)\n \t\treturn;\n \n-\twriter_flush(p);\n+\tfor (i = 0; i < p->n_pkts; i++) {\n+\t\tstruct rte_mbuf *m = p->pkts[i];\n+\n+\t\trte_pktmbuf_free(m);\n+\t}\n+\n \tfree(p->pkts);\n \tfree(p->params.name);\n \tfree(port);\n", "prefixes": [ "07/10" ] }{ "id": 114681, "url": "