Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/57387/?format=api
https://patches.dpdk.org/api/patches/57387/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1564736244-5906-2-git-send-email-s.rodon@mail.nexatech.local/", "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": "<1564736244-5906-2-git-send-email-s.rodon@mail.nexatech.local>", "list_archive_url": "https://inbox.dpdk.org/dev/1564736244-5906-2-git-send-email-s.rodon@mail.nexatech.local", "date": "2019-08-02T08:57:24", "name": "[v2] net/pcap: propagate timestamp from pcap_pkthdr to mbuf", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "81a214a3a2a2a7ecdc0e8938f1b80ff1c476cc34", "submitter": { "id": 1378, "url": "https://patches.dpdk.org/api/people/1378/?format=api", "name": "Sylvain Rodon", "email": "srn@nexatech.fr" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1564736244-5906-2-git-send-email-s.rodon@mail.nexatech.local/mbox/", "series": [ { "id": 5889, "url": "https://patches.dpdk.org/api/series/5889/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=5889", "date": "2019-08-02T08:57:24", "name": "[v2] net/pcap: propagate timestamp from pcap_pkthdr to mbuf", "version": 2, "mbox": "https://patches.dpdk.org/series/5889/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/57387/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/57387/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 8F78E1C238;\n\tFri, 2 Aug 2019 11:00:43 +0200 (CEST)", "from mail-wr1-f66.google.com (mail-wr1-f66.google.com\n\t[209.85.221.66]) by dpdk.org (Postfix) with ESMTP id 9FE7C1C236\n\tfor <dev@dpdk.org>; Fri, 2 Aug 2019 11:00:42 +0200 (CEST)", "by mail-wr1-f66.google.com with SMTP id z1so76337205wru.13\n\tfor <dev@dpdk.org>; Fri, 02 Aug 2019 02:00:42 -0700 (PDT)", "from cyrodiil.nexatech.local (128.60.136.77.rev.sfr.net.\n\t[77.136.60.128]) by smtp.googlemail.com with ESMTPSA id\n\to20sm191996296wrh.8.2019.08.02.02.00.41\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 02 Aug 2019 02:00:41 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=nexatech-fr.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=jB5imSYxXuVCdBBkww1X9ah/FpgNAEE242/nHoCl9N8=;\n\tb=LGXeY8b+dpQ7+OGjBPgyoCc9OD87T1S228Y7zJ8S5xGqigMUqPXcz4w85IAsZaFh29\n\tJqQyqmzGdHHWm4aTFdDvpYksnmvzWzimOYMnpix46icToakUSPnxByBIfVWteTZ69HgX\n\tIlFm6l2OTTXFspjncWNKfHBMBygNkgKYixdx7g0s/FU3nGh3XOkZ/On4NA/hAMv14Hz8\n\t9unhd8YM0SeR6KgREBuzH/AJCMRULhB8eBm34wZ2HNj4HX8sqmsvSVBxMjqtzRBGQXY+\n\tOBeS9DaxjmrhNYHMTvxiZrRBcoVj1ifopehVYxMcggbzTEX0rQQBmEodlGtqca+eH2UM\n\tl6cA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=jB5imSYxXuVCdBBkww1X9ah/FpgNAEE242/nHoCl9N8=;\n\tb=WiKeaW1o9A/MQXeY6iO8nqTjT2pM6UXMj1oLLqZ0/gGDQRSpMIiA+iWk2Dx2EI6WSW\n\twfjc1heR4QFAOw119aIhal1zSd4ZWnEAXyDkV+/NNil3dotJTmZD6C0tvi8wP6gIebI/\n\tntNLTH/OGaEi2c9QP0y3hcC54AHM5SbDiqiXSLM9QFULUdrYRmH7WiiYWwfd/s1DJ9V0\n\tI5d6vFztWiK2xVFjY5rQkH11ZMdXcQuEccStnvqvlA0cq5+TkvyOrnuXcxn8LHoq4+Gt\n\tpGkzzXsNYOAV54M796TJ3gic+93gq45e3gysrOrqgWriqIlXXx0uFP0XTZ0Za8XW7l8J\n\tKwZw==", "X-Gm-Message-State": "APjAAAVAc24IfBhEY5qIr94mgNYBvQY3/Lbzhak/s4JfnUdUtsLZyQ8E\n\tfODFWTD8TpGP9LYRf2YtgQzGGOu1YXe2EA==", "X-Google-Smtp-Source": "APXvYqxeQj9grDzyUPxh7y4LkzRUdZQ4+Ihn4XQyh5w2Fu5hM1LCsYHDpL5bnbvG2XqgIvLllSLvKw==", "X-Received": "by 2002:adf:ed11:: with SMTP id\n\ta17mr58058424wro.112.1564736442451; \n\tFri, 02 Aug 2019 02:00:42 -0700 (PDT)", "From": "Sylvain Rodon <srn@nexatech.fr>", "X-Google-Original-From": "Sylvain Rodon <s.rodon@mail.nexatech.local>", "To": "ferruh.yigit@intel.com", "Cc": "dev@dpdk.org,\n\tSylvain Rodon <srn@nexatech.fr>", "Date": "Fri, 2 Aug 2019 10:57:24 +0200", "Message-Id": "<1564736244-5906-2-git-send-email-s.rodon@mail.nexatech.local>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1564736244-5906-1-git-send-email-s.rodon@mail.nexatech.local>", "References": "<1564586321-22818-1-git-send-email-s.rodon@mail.nexatech.local>\n\t<1564736244-5906-1-git-send-email-s.rodon@mail.nexatech.local>", "Subject": "[dpdk-dev] [PATCH v2] net/pcap: propagate timestamp from\n\tpcap_pkthdr to mbuf", "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": "From: Sylvain Rodon <srn@nexatech.fr>\n\nTimestamp is always set in PCAP header, whether it reads a file or\nlisten on an interface. This information can be important for some\napplications and it cannot be obtained otherwise (especially when\nreading a PCAP file, where the timestamp is not the current time).\nTimestamp here is the number of microseconds since epoch.\n\nSigned-off-by: Sylvain Rodon <srn@nexatech.fr>\n---\n drivers/net/pcap/rte_eth_pcap.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c\nindex 95d4b5b..5489010 100644\n--- a/drivers/net/pcap/rte_eth_pcap.c\n+++ b/drivers/net/pcap/rte_eth_pcap.c\n@@ -265,6 +265,9 @@ struct pmd_devargs_all {\n \t\t}\n \n \t\tmbuf->pkt_len = (uint16_t)header.caplen;\n+\t\tmbuf->timestamp = (uint64_t)header.ts.tv_sec * 1000000\n+\t\t\t\t\t\t\t+ header.ts.tv_usec;\n+\t\tmbuf->ol_flags |= PKT_RX_TIMESTAMP;\n \t\tmbuf->port = pcap_q->port_id;\n \t\tbufs[num_rx] = mbuf;\n \t\tnum_rx++;\n", "prefixes": [ "v2" ] }{ "id": 57387, "url": "