Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/138786/?format=api
http://patches.dpdk.org/api/patches/138786/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240326015827.825648-3-stephen@networkplumber.org/", "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": "<20240326015827.825648-3-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20240326015827.825648-3-stephen@networkplumber.org", "date": "2024-03-26T01:56:57", "name": "[v13,02/11] windows: add os shim for localtime_r", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e3d098f47dbeed0147ab37fca370638cca6bf5dc", "submitter": { "id": 27, "url": "http://patches.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240326015827.825648-3-stephen@networkplumber.org/mbox/", "series": [ { "id": 31617, "url": "http://patches.dpdk.org/api/series/31617/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31617", "date": "2024-03-26T01:56:55", "name": "Logging unification and improvements", "version": 13, "mbox": "http://patches.dpdk.org/series/31617/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/138786/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/138786/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 0D5FB43D4E;\n\tTue, 26 Mar 2024 02:58:52 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 271CC40A8A;\n\tTue, 26 Mar 2024 02:58:44 +0100 (CET)", "from mail-oo1-f51.google.com (mail-oo1-f51.google.com\n [209.85.161.51]) by mails.dpdk.org (Postfix) with ESMTP id 360D840A6F\n for <dev@dpdk.org>; Tue, 26 Mar 2024 02:58:41 +0100 (CET)", "by mail-oo1-f51.google.com with SMTP id\n 006d021491bc7-5a4b35ff84eso2748000eaf.2\n for <dev@dpdk.org>; Mon, 25 Mar 2024 18:58:41 -0700 (PDT)", "from hermes.local (204-195-123-203.wavecable.com. [204.195.123.203])\n by smtp.gmail.com with ESMTPSA id\n u19-20020a63d353000000b005dc88b232a5sm6571541pgi.26.2024.03.25.18.58.39\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 25 Mar 2024 18:58:39 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1711418320;\n x=1712023120; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=Ml0gchs9dNogvSJKCUa91H765fGAaDYpR/DhR359d/Q=;\n b=xbiYW24kIG7Qwc0ImikXW0nIWKac6V+ifayNXjSVd79yJNqUtjKWUBWSQUcyR66qYh\n XAKmck3Nismb15NoLyYLdUYPW9dYKmgFO27ej7NG5e5NYaQFG6heDq9OedyRO25p03Mn\n AbaCzLCt3K0H9HviS+CgkIlbHkSBWco2x3uX8EEiIxM4wEi4QhGpBw0vEo7Eg5wezueJ\n 8xbS+tQ0a3Qq0anZGr0kKCXtlZrhGT8KIM81utxcYh1ZXpHX/pnOdnpQfGBpHhs3RB/G\n L+cWJxLTtT5sKjTbWNbWY65RZw/639P5dRv6arN3vm/ER15FMEL49lvKp/TwG6RmFfK6\n AL+Q==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1711418320; x=1712023120;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=Ml0gchs9dNogvSJKCUa91H765fGAaDYpR/DhR359d/Q=;\n b=INNramOu1xw9zj9kJnRwfOC0M9hAn4XCCv7oc2yIexCWb1c4Mt4JAPMK7GoVR88pJb\n pytca32qMuzsIt/k5l0iSRlAK4uOFpaGmF5H9H6uoMwWw9X0L2Zl5VQ1nJBp5FazTcyW\n YTFTxrFZYmnarIoR7BlqhRa1T5KkEMla+3yq07+QUb5hzlwQomwo8cxvjveZmI0o6x52\n TMFVeC2t8+OlWrfSA75er8kGHafokVNiVs7L4TPb42hmkFKjTJp1PO1qxDN3i31Ek8vA\n hI8z7gAgm0CQB++r6oFM9bU/4KQu90mLh37GWpA2WnGpD5XGtQ6rQYvImLgdogiSLXIa\n oSEg==", "X-Gm-Message-State": "AOJu0Yz4Gz5uwTsk7VDc5KO+Il/zTA5O1C36kBye0vdT/KbTI+nYaGrB\n wsqHuwqA0JS81tZ2vs1Zu7aGkiz3rTovtSpaxRyCaFWoZIBjNsWPvRP1byK3Gxu63pbA2IDDEvb\n W", "X-Google-Smtp-Source": "\n AGHT+IF6L6WkqUMKJ+Y5UerCrx0bDpv3LIkgYrkzj6Ij6wUet1rdqS5UYfKGTSa+v5DXcZjgssynEg==", "X-Received": "by 2002:a05:6358:6184:b0:17c:1e44:a489 with SMTP id\n w4-20020a056358618400b0017c1e44a489mr9182614rww.32.1711418320241;\n Mon, 25 Mar 2024 18:58:40 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>,\n Pallavi Kadam <pallavi.kadam@intel.com>", "Subject": "[PATCH v13 02/11] windows: add os shim for localtime_r", "Date": "Mon, 25 Mar 2024 18:56:57 -0700", "Message-ID": "<20240326015827.825648-3-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20240326015827.825648-1-stephen@networkplumber.org>", "References": "<20200814173441.23086-1-stephen@networkplumber.org>\n <20240326015827.825648-1-stephen@networkplumber.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "Windows does not have localtime_r but it does have a similar\nfunction that can be used instead.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/eal/windows/include/rte_os_shim.h | 10 ++++++++++\n 1 file changed, 10 insertions(+)", "diff": "diff --git a/lib/eal/windows/include/rte_os_shim.h b/lib/eal/windows/include/rte_os_shim.h\nindex eda8113662..e9741a9df2 100644\n--- a/lib/eal/windows/include/rte_os_shim.h\n+++ b/lib/eal/windows/include/rte_os_shim.h\n@@ -110,4 +110,14 @@ rte_clock_gettime(clockid_t clock_id, struct timespec *tp)\n }\n #define clock_gettime(clock_id, tp) rte_clock_gettime(clock_id, tp)\n \n+static inline struct tm *\n+rte_localtime_r(const time_t *timer, struct tm *buf)\n+{\n+\tif (localtime_s(buf, timer) == 0)\n+\t\treturn buf;\n+\telse\n+\t\treturn NULL;\n+}\n+#define localtime_r(timer, buf) rte_localtime_r(timer, buf)\n+\n #endif /* _RTE_OS_SHIM_ */\n", "prefixes": [ "v13", "02/11" ] }{ "id": 138786, "url": "