Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/60016/?format=api
http://patchwork.dpdk.org/api/patches/60016/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20190927100513.105674-2-mb@smartsharesystems.com/", "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": "<20190927100513.105674-2-mb@smartsharesystems.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190927100513.105674-2-mb@smartsharesystems.com", "date": "2019-09-27T10:05:11", "name": "[v3,1/3] mbuf: add bulk free function", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "034aa4faa1700b0dd31ee289546920d5ab748c62", "submitter": { "id": 591, "url": "http://patchwork.dpdk.org/api/people/591/?format=api", "name": "Morten Brørup", "email": "mb@smartsharesystems.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20190927100513.105674-2-mb@smartsharesystems.com/mbox/", "series": [ { "id": 6580, "url": "http://patchwork.dpdk.org/api/series/6580/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=6580", "date": "2019-09-27T10:05:10", "name": "mbuf: add bulk free function", "version": 3, "mbox": "http://patchwork.dpdk.org/series/6580/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/60016/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/60016/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E2B561BECF;\n\tFri, 27 Sep 2019 12:05:29 +0200 (CEST)", "from smartserver.smartsharesystems.com\n\t(smartserver.smartsharesystems.com [77.243.40.215])\n\tby dpdk.org (Postfix) with ESMTP id 3C0661BEC9\n\tfor <dev@dpdk.org>; Fri, 27 Sep 2019 12:05:27 +0200 (CEST)", "from dkrd2.smartsharesys.local ([192.168.4.12]) by\n\tsmartserver.smartsharesystems.com with Microsoft\n\tSMTPSVC(6.0.3790.4675); Fri, 27 Sep 2019 12:05:26 +0200" ], "From": "=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>", "To": "olivier.matz@6wind.com", "Cc": "stephen@networkplumber.org, harry.van.haaren@intel.com,\n\tkonstantin.ananyev@intel.com, mattias.ronnblom@ericsson.com, \n\tbruce.richardson@intel.com, arybchenko@solarflare.com, dev@dpdk.org, \n\t=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>", "Date": "Fri, 27 Sep 2019 10:05:11 +0000", "Message-Id": "<20190927100513.105674-2-mb@smartsharesystems.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190927100513.105674-1-mb@smartsharesystems.com>", "References": "<20190927100513.105674-1-mb@smartsharesystems.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-OriginalArrivalTime": "27 Sep 2019 10:05:26.0798 (UTC)\n\tFILETIME=[15D27AE0:01D5751B]", "Subject": "[dpdk-dev] [PATCH v3 1/3] mbuf: add bulk free function", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add function for freeing a bulk of mbufs.\n\nSigned-off-by: Morten Brørup <mb@smartsharesystems.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)", "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex 98225ec80..f2e174da1 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -1907,6 +1907,23 @@ static inline void rte_pktmbuf_free(struct rte_mbuf *m)\n \t}\n }\n \n+/**\n+ * Free a bulk of mbufs back into their original mempool.\n+ *\n+ * @param mbufs\n+ * Array of pointers to mbufs\n+ * @param count\n+ * Array size\n+ */\n+static inline void\n+rte_pktmbuf_free_bulk(struct rte_mbuf **mbufs, unsigned count)\n+{\n+\tunsigned idx = 0;\n+\n+\tfor (idx = 0; idx < count; idx++)\n+\t\trte_pktmbuf_free(mbufs[idx]);\n+}\n+\n /**\n * Creates a \"clone\" of the given packet mbuf.\n *\n", "prefixes": [ "v3", "1/3" ] }{ "id": 60016, "url": "