Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/8800/?format=api
http://patches.dpdk.org/api/patches/8800/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1447101259-18972-5-git-send-email-declan.doherty@intel.com/", "project": { "id": 1, "url": "http://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": "<1447101259-18972-5-git-send-email-declan.doherty@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1447101259-18972-5-git-send-email-declan.doherty@intel.com", "date": "2015-11-09T20:34:13", "name": "[dpdk-dev,v5,04/10] mbuf: add new marcos to get the physical address of data", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "658b436e3d6152240fea273d454a6a93090494b0", "submitter": { "id": 11, "url": "http://patches.dpdk.org/api/people/11/?format=api", "name": "Doherty, Declan", "email": "declan.doherty@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1447101259-18972-5-git-send-email-declan.doherty@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/8800/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/8800/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 996B68E6E;\n\tMon, 9 Nov 2015 21:29:45 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 047835957\n\tfor <dev@dpdk.org>; Mon, 9 Nov 2015 21:29:38 +0100 (CET)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga102.fm.intel.com with ESMTP; 09 Nov 2015 12:29:38 -0800", "from dwdohert-dpdk-fedora-20.ir.intel.com ([163.33.213.96])\n\tby fmsmga002.fm.intel.com with ESMTP; 09 Nov 2015 12:29:37 -0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.20,267,1444719600\"; d=\"scan'208\";a=\"846973937\"", "From": "Declan Doherty <declan.doherty@intel.com>", "To": "dev@dpdk.org", "Date": "Mon, 9 Nov 2015 20:34:13 +0000", "Message-Id": "<1447101259-18972-5-git-send-email-declan.doherty@intel.com>", "X-Mailer": "git-send-email 2.4.3", "In-Reply-To": "<1447101259-18972-1-git-send-email-declan.doherty@intel.com>", "References": "<1446572746-26207-1-git-send-email-declan.doherty@intel.com>\n\t<1447101259-18972-1-git-send-email-declan.doherty@intel.com>", "Subject": "[dpdk-dev] [PATCH v5 04/10] mbuf: add new marcos to get the\n\tphysical address of data", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>\nSigned-off-by: Declan Doherty <declan.doherty@intel.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 23 +++++++++++++++++++++++\n 1 file changed, 23 insertions(+)", "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex 4a93189..e203c55 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -1622,6 +1622,29 @@ static inline struct rte_mbuf *rte_pktmbuf_lastseg(struct rte_mbuf *m)\n #define rte_pktmbuf_mtod(m, t) rte_pktmbuf_mtod_offset(m, t, 0)\n \n /**\n+ * A macro that returns the physical address that points to an offset of the\n+ * start of the data in the mbuf\n+ *\n+ * @param m\n+ * The packet mbuf.\n+ * @param o\n+ * The offset into the data to calculate address from.\n+ */\n+#define rte_pktmbuf_mtophys_offset(m, o) \\\n+\t((phys_addr_t)((char *)(m)->buf_physaddr + (m)->data_off) + (o))\n+\n+/**\n+ * A macro that returns the physical address that points to the start of the\n+ * data in the mbuf\n+ *\n+ * @param m\n+ * The packet mbuf.\n+ * @param o\n+ * The offset into the data to calculate address from.\n+ */\n+#define rte_pktmbuf_mtophys(m) rte_pktmbuf_mtophys_offset(m, 0)\n+\n+/**\n * A macro that returns the length of the packet.\n *\n * The value can be read or assigned.\n", "prefixes": [ "dpdk-dev", "v5", "04/10" ] }{ "id": 8800, "url": "