Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/138859/?format=api
http://patchwork.dpdk.org/api/patches/138859/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240327164726.68732-4-stephen@networkplumber.org/", "project": { "id": 1, "url": "http://patchwork.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": "<20240327164726.68732-4-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20240327164726.68732-4-stephen@networkplumber.org", "date": "2024-03-27T16:45:21", "name": "[v16,03/15] windows: add os shim for localtime_r", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e3d098f47dbeed0147ab37fca370638cca6bf5dc", "submitter": { "id": 27, "url": "http://patchwork.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240327164726.68732-4-stephen@networkplumber.org/mbox/", "series": [ { "id": 31630, "url": "http://patchwork.dpdk.org/api/series/31630/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31630", "date": "2024-03-27T16:45:18", "name": "Logging unification and improvements", "version": 16, "mbox": "http://patchwork.dpdk.org/series/31630/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/138859/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/138859/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 6FC6943D55;\n\tWed, 27 Mar 2024 17:47:59 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C16D8410E6;\n\tWed, 27 Mar 2024 17:47:41 +0100 (CET)", "from mail-pf1-f178.google.com (mail-pf1-f178.google.com\n [209.85.210.178])\n by mails.dpdk.org (Postfix) with ESMTP id DCC0F40A84\n for <dev@dpdk.org>; Wed, 27 Mar 2024 17:47:38 +0100 (CET)", "by mail-pf1-f178.google.com with SMTP id\n d2e1a72fcca58-6ea9a605ca7so66637b3a.0\n for <dev@dpdk.org>; Wed, 27 Mar 2024 09:47:38 -0700 (PDT)", "from hermes.local (204-195-123-203.wavecable.com. [204.195.123.203])\n by smtp.gmail.com with ESMTPSA id\n a33-20020a056a0011e100b006e580678dfbsm5160873pfu.193.2024.03.27.09.47.37\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 27 Mar 2024 09:47:37 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1711558058;\n x=1712162858; 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=QNKFfUEKW7/sRg4LeJO+WfQO+sv+Lamt6ihIijGEcd3a2HTfitPXzskXaLrXk9gb5B\n AkyfBDizEy5E97k7mf9YIhc92sobfvjQEVNirQt5oBvHOKfoYZeOPLZDoFzJC3+6Hxxp\n oya81htxrD9iX0aWk/DTFjG9C8EMg/itmshAXc4eHaNCIYBC/6z8IemBDIdA4I6BSW82\n UA5oK7wViRwvXmQs94sAJ5GqD3ry7zKCLIlM11YuDNDxo4ec041DQC0lPo6Wwp6Ph9f5\n rJ9/anc16VxA1ktsij/4xQ9bbYAX1/FdRWknnXiiePzPQnFKuLMnOO/3NiOI5rHZa4/5\n tfuA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1711558058; x=1712162858;\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=MkV/O12PlhSNwBBiiaFz8kErt3SdJuSrxjJAOasjeCjCc9W63lG3dvsens6LyfeUH/\n ik2nZD5Kjdi55BTbOM2p2ajo2JeeXyczXKiPAPLLBPM7/aOxu6e+d4s1k2SHMEd4RJsc\n BBIwMH+IK7nmV8QLJjH3Z5qBxfZgKl0Gdkx4tPQwlOWxB0qNk8jAI5RLLPLyJvSgcFc7\n fOld/hIA9499Ff65aNaTA+PbJxcewYSyttMIpTBcfJe8MGPEII2ZxzYGNUhs7dDSAgI4\n Sk6uleVhX1ytXf6gMnJMQM+v7xbUePw3aDfCb2INr3nueDsuME/XAE1rW96qw7VqSS6W\n ytIg==", "X-Gm-Message-State": "AOJu0Yy8Vv/V4gvmtIXeBHY2qhI8N7b7sg/SLOLsf2ykxEhuxFhvDO/8\n i3aCRwc0bHC+sAVFkr8cq3IqMER2Z0J8MtdwCWNNfWmnYQMuQrSGtgHieg8/6TwvCZ/3yVXorvi\n n", "X-Google-Smtp-Source": "\n AGHT+IFYUYSFJ4FCv5mzRBKIx7slGyyPfXRSK9NKOAWE4GBDE5FLDxRHwuogz7ri/VBAoitGh6ic3Q==", "X-Received": "by 2002:a05:6a20:3d16:b0:1a3:b173:1a97 with SMTP id\n y22-20020a056a203d1600b001a3b1731a97mr265918pzi.1.1711558058060;\n Wed, 27 Mar 2024 09:47:38 -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 v16 03/15] windows: add os shim for localtime_r", "Date": "Wed, 27 Mar 2024 09:45:21 -0700", "Message-ID": "<20240327164726.68732-4-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20240327164726.68732-1-stephen@networkplumber.org>", "References": "<20200814173441.23086-1-stephen@networkplumber.org>\n <20240327164726.68732-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": [ "v16", "03/15" ] }{ "id": 138859, "url": "