Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/74801/?format=api
http://patches.dpdk.org/api/patches/74801/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/aa072ca31fe60bc5bed9725792932fc4c9d2a508.1595648149.git.cloud.wangxiaoyun@huawei.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": "<aa072ca31fe60bc5bed9725792932fc4c9d2a508.1595648149.git.cloud.wangxiaoyun@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/aa072ca31fe60bc5bed9725792932fc4c9d2a508.1595648149.git.cloud.wangxiaoyun@huawei.com", "date": "2020-07-25T03:48:25", "name": "[v1,4/4] net/hinic/base: make timeout not affected by system time jump", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "5c6a998853b21350e4d93f8e2ff7d4b2dd7891ac", "submitter": { "id": 1446, "url": "http://patches.dpdk.org/api/people/1446/?format=api", "name": "Wangxiaoyun (Cloud)", "email": "cloud.wangxiaoyun@huawei.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/aa072ca31fe60bc5bed9725792932fc4c9d2a508.1595648149.git.cloud.wangxiaoyun@huawei.com/mbox/", "series": [ { "id": 11298, "url": "http://patches.dpdk.org/api/series/11298/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11298", "date": "2020-07-25T03:48:22", "name": "some bugs fixes", "version": 1, "mbox": "http://patches.dpdk.org/series/11298/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/74801/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/74801/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 887ADA0527;\n\tSat, 25 Jul 2020 05:49:33 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 724031C0BC;\n\tSat, 25 Jul 2020 05:49:04 +0200 (CEST)", "from huawei.com (szxga07-in.huawei.com [45.249.212.35])\n by dpdk.org (Postfix) with ESMTP id 2D41C1C0B1;\n Sat, 25 Jul 2020 05:49:02 +0200 (CEST)", "from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58])\n by Forcepoint Email with ESMTP id C5FF72968B4B83FECBAD;\n Sat, 25 Jul 2020 11:48:59 +0800 (CST)", "from tester.localdomain (10.175.119.39) by\n DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id\n 14.3.487.0; Sat, 25 Jul 2020 11:48:49 +0800" ], "From": "Xiaoyun wang <cloud.wangxiaoyun@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<ferruh.yigit@intel.com>, <bluca@debian.org>, <luoxianjun@huawei.com>,\n <luoxingyu@huawei.com>, <zhouguoyang@huawei.com>, <yin.yinshi@huawei.com>,\n <david.yangxiaoliang@huawei.com>, <zhaohui8@huawei.com>,\n <zhengjingzhou@huawei.com>, <guojian365@huawei.com>, Xiaoyun wang\n <cloud.wangxiaoyun@huawei.com>, <stable@dpdk.org>", "Date": "Sat, 25 Jul 2020 11:48:25 +0800", "Message-ID": "\n <aa072ca31fe60bc5bed9725792932fc4c9d2a508.1595648149.git.cloud.wangxiaoyun@huawei.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<cover.1595648149.git.cloud.wangxiaoyun@huawei.com>", "References": "<cover.1595648149.git.cloud.wangxiaoyun@huawei.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.175.119.39]", "X-CFilter-Loop": "Reflected", "Subject": "[dpdk-dev] [PATCH v1 4/4] net/hinic/base: make timeout not affected\n\tby system time jump", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC_RAW, &now),\nthe reason is same with this patch \"make alarm not affected by\nsystem time jump\".\n\nFixes: 81d53291a466 (\"net/hinic/base: add various headers\")\n\nCc: stable@dpdk.org\nSigned-off-by: Xiaoyun wang <cloud.wangxiaoyun@huawei.com>\n---\n drivers/net/hinic/base/hinic_compat.h | 11 ++++++-----\n 1 file changed, 6 insertions(+), 5 deletions(-)", "diff": "diff --git a/drivers/net/hinic/base/hinic_compat.h b/drivers/net/hinic/base/hinic_compat.h\nindex 2d21b7b..7036b03 100644\n--- a/drivers/net/hinic/base/hinic_compat.h\n+++ b/drivers/net/hinic/base/hinic_compat.h\n@@ -166,16 +166,17 @@ static inline u32 readl(const volatile void *addr)\n #define spin_lock(spinlock_prt)\t\trte_spinlock_lock(spinlock_prt)\n #define spin_unlock(spinlock_prt)\trte_spinlock_unlock(spinlock_prt)\n \n-static inline unsigned long get_timeofday_ms(void)\n+static inline unsigned long clock_gettime_ms(void)\n {\n-\tstruct timeval tv;\n+\tstruct timespec tv;\n \n-\t(void)gettimeofday(&tv, NULL);\n+\t(void)clock_gettime(CLOCK_MONOTONIC, &tv);\n \n-\treturn (unsigned long)tv.tv_sec * 1000 + tv.tv_usec / 1000;\n+\treturn (unsigned long)tv.tv_sec * 1000 +\n+\t (unsigned long)tv.tv_nsec / 1000000;\n }\n \n-#define jiffies\tget_timeofday_ms()\n+#define jiffies\tclock_gettime_ms()\n #define msecs_to_jiffies(ms)\t(ms)\n #define time_before(now, end)\t((now) < (end))\n \n", "prefixes": [ "v1", "4/4" ] }{ "id": 74801, "url": "