Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/21607/?format=api
https://patches.dpdk.org/api/patches/21607/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488966121-22853-9-git-send-email-olivier.matz@6wind.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": "<1488966121-22853-9-git-send-email-olivier.matz@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1488966121-22853-9-git-send-email-olivier.matz@6wind.com", "date": "2017-03-08T09:42:00", "name": "[dpdk-dev,8/9] mbuf: add a timestamp field", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "944ab84871d67f53b2ca87d23353fc7bb2905e1d", "submitter": { "id": 8, "url": "https://patches.dpdk.org/api/people/8/?format=api", "name": "Olivier Matz", "email": "olivier.matz@6wind.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/1488966121-22853-9-git-send-email-olivier.matz@6wind.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/21607/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/21607/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 F1AC7F94A;\n\tWed, 8 Mar 2017 10:43:20 +0100 (CET)", "from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com\n\t[62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 22FBD1BBE\n\tfor <dev@dpdk.org>; Wed, 8 Mar 2017 10:42:24 +0100 (CET)", "from glumotte.dev.6wind.com (unknown [10.16.0.195])\n\tby proxy.6wind.com (Postfix) with ESMTP id 5A9F524D23;\n\tWed, 8 Mar 2017 10:42:18 +0100 (CET)" ], "From": "Olivier Matz <olivier.matz@6wind.com>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com, konstantin.ananyev@intel.com,\n\tmb@smartsharesystems.com, andrey.chilikin@intel.com,\n\tjblunck@infradead.org, \n\tnelio.laranjeiro@6wind.com, arybchenko@solarflare.com", "Date": "Wed, 8 Mar 2017 10:42:00 +0100", "Message-Id": "<1488966121-22853-9-git-send-email-olivier.matz@6wind.com>", "X-Mailer": "git-send-email 2.8.1", "In-Reply-To": "<1488966121-22853-1-git-send-email-olivier.matz@6wind.com>", "References": "<1485271173-13408-1-git-send-email-olivier.matz@6wind.com>\n\t<1488966121-22853-1-git-send-email-olivier.matz@6wind.com>", "Subject": "[dpdk-dev] [PATCH 8/9] mbuf: add a timestamp field", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <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": "The field itself is not fully described yet, but this commit reserves\nthe room in the mbuf.\n\nSigned-off-by: Olivier Matz <olivier.matz@6wind.com>\n---\n lib/librte_mbuf/rte_mbuf.c | 2 ++\n lib/librte_mbuf/rte_mbuf.h | 12 ++++++++++++\n 2 files changed, 14 insertions(+)", "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c\nindex 0acc810..f679bce 100644\n--- a/lib/librte_mbuf/rte_mbuf.c\n+++ b/lib/librte_mbuf/rte_mbuf.c\n@@ -322,6 +322,7 @@ const char *rte_get_rx_ol_flag_name(uint64_t mask)\n \tcase PKT_RX_IEEE1588_TMST: return \"PKT_RX_IEEE1588_TMST\";\n \tcase PKT_RX_QINQ_STRIPPED: return \"PKT_RX_QINQ_STRIPPED\";\n \tcase PKT_RX_LRO: return \"PKT_RX_LRO\";\n+\tcase PKT_RX_TIMESTAMP: return \"PKT_RX_TIMESTAMP\";\n \tdefault: return NULL;\n \t}\n }\n@@ -356,6 +357,7 @@ rte_get_rx_ol_flag_list(uint64_t mask, char *buf, size_t buflen)\n \t\t{ PKT_RX_IEEE1588_TMST, PKT_RX_IEEE1588_TMST, NULL },\n \t\t{ PKT_RX_QINQ_STRIPPED, PKT_RX_QINQ_STRIPPED, NULL },\n \t\t{ PKT_RX_LRO, PKT_RX_LRO, NULL },\n+\t\t{ PKT_RX_TIMESTAMP, PKT_RX_TIMESTAMP, NULL },\n \t};\n \tconst char *name;\n \tunsigned int i;\ndiff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex c75a62a..fd97bd3 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -177,6 +177,11 @@ extern \"C\" {\n */\n #define PKT_RX_LRO (1ULL << 16)\n \n+/**\n+ * Indicate that the timestamp field in the mbuf is valid.\n+ */\n+#define PKT_RX_TIMESTAMP (1ULL << 17)\n+\n /* add new RX flags here */\n \n /* add new TX flags here */\n@@ -474,6 +479,12 @@ struct rte_mbuf {\n \tuint16_t vlan_tci_outer;\n \n \tuint16_t buf_len; /**< Length of segment buffer. */\n+\n+\t/** Valid if PKT_RX_TIMESTAMP is set. The unit and time reference\n+\t * are not normalized but are always the same for a given port.\n+\t */\n+\tuint64_t timestamp;\n+\n \t/* second cache line - fields only used in slow path or on TX */\n \tMARKER cacheline1 __rte_cache_min_aligned;\n \n@@ -1201,6 +1212,7 @@ static inline void rte_pktmbuf_attach(struct rte_mbuf *mi, struct rte_mbuf *m)\n \tmi->nb_segs = 1;\n \tmi->ol_flags = m->ol_flags | IND_ATTACHED_MBUF;\n \tmi->packet_type = m->packet_type;\n+\tmi->timestamp = m->timestamp;\n \n \t__rte_mbuf_sanity_check(mi, 1);\n \t__rte_mbuf_sanity_check(m, 0);\n", "prefixes": [ "dpdk-dev", "8/9" ] }{ "id": 21607, "url": "