get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1528126/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1528126,
    "url": "http://patchwork.ozlabs.org/api/patches/1528126/",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/20210914202447.1850-1-sergey.madaminov@gmail.com/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/",
        "name": "Open vSwitch",
        "link_name": "openvswitch",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "git@github.com:openvswitch/ovs.git",
        "webscm_url": "https://github.com/openvswitch/ovs",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20210914202447.1850-1-sergey.madaminov@gmail.com>",
    "list_archive_url": null,
    "date": "2021-09-14T20:24:47",
    "name": "[ovs-dev] sflow functions: fix unused parameter warnings for sflow functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "775688a71b56b807f20e401af130d5e8430faff9",
    "submitter": {
        "id": 82265,
        "url": "http://patchwork.ozlabs.org/api/people/82265/",
        "name": "Sergey Madaminov",
        "email": "sergey.madaminov@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/20210914202447.1850-1-sergey.madaminov@gmail.com/mbox/",
    "series": [
        {
            "id": 262337,
            "url": "http://patchwork.ozlabs.org/api/series/262337/",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=262337",
            "date": "2021-09-14T20:24:47",
            "name": "[ovs-dev] sflow functions: fix unused parameter warnings for sflow functions",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/262337/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1528126/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/1528126/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20210112 header.b=nuHR2axz;\n\tdkim-atps=neutral",
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.133; helo=smtp2.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
            "smtp4.osuosl.org (amavisd-new);\n dkim=pass (2048-bit key) header.d=gmail.com"
        ],
        "Received": [
            "from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4H8FFy2Vttz9sRN\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Sep 2021 06:25:10 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp2.osuosl.org (Postfix) with ESMTP id E8ED640389;\n\tTue, 14 Sep 2021 20:25:07 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n\tby localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id g5eWkncf-E22; Tue, 14 Sep 2021 20:25:06 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp2.osuosl.org (Postfix) with ESMTPS id CA35440001;\n\tTue, 14 Sep 2021 20:25:05 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 9DC04C000F;\n\tTue, 14 Sep 2021 20:25:05 +0000 (UTC)",
            "from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 0E5A1C000D\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 20:25:05 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id E5C2640209\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 20:25:04 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id r43XyQhdWo14 for <dev@openvswitch.org>;\n Tue, 14 Sep 2021 20:25:04 +0000 (UTC)",
            "from mail-qt1-x830.google.com (mail-qt1-x830.google.com\n [IPv6:2607:f8b0:4864:20::830])\n by smtp4.osuosl.org (Postfix) with ESMTPS id 36FA540206\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 20:25:04 +0000 (UTC)",
            "by mail-qt1-x830.google.com with SMTP id c19so223754qte.7\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 13:25:04 -0700 (PDT)",
            "from localhost.localdomain ([2600:1700:c8:3880:7983:2135:95db:38f8])\n by smtp.gmail.com with ESMTPSA id\n 21sm8325943qkk.51.2021.09.14.13.25.01\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 14 Sep 2021 13:25:02 -0700 (PDT)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "whitelisted by SQLgrey-1.8.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;\n h=from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=MLROT/6ZKuC7OjP99z/tPLJM9eHzOb5FBmRhdsuZJ0E=;\n b=nuHR2axzabVQnL0BEPuk15b/U+/9BiOxcIXV98K9IYgbKLYNrcncGvvoX42NAiDw0V\n rttJNDMUcrFdBbuUM4zdLC5+I+4PQV4ZJBBAF/myWY4TV8JdSRNIKACiRZdNj1Xm29Wa\n sCj2I459tJJu0IDM87hX9Ofo50O8tqY2Mcm/DZTiHoQy8rIQwwqI3XmQoW0logGXSFwJ\n Zlrof7Cp0+raEeqGlALYYL7uU7b5IKsueXbW9h+CzhUwxj9IfVzS2A3emSt+4cHqjC/K\n WHSKVaXS0h2zF8d1HVw5bQVwcpd9uut8Aoi8RZ+IU3hLAUPmRqfhxeDPQCEQgcEY4HOM\n 4p5Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=MLROT/6ZKuC7OjP99z/tPLJM9eHzOb5FBmRhdsuZJ0E=;\n b=FioXgpORc9s/IJHX2OKdjdGRBAAz05398BZH2lqquDfmNYGmSp4LAK0V9AOHurrSPf\n P7Iv7xCqcRd/eGprLOIJnzxau1qJ2z7sNbl/mLjO+PnAaZZmK1LrC+6FrdBPav6uOTRz\n mDSPd+t9StCYbDNpINbF8f51XuvlZNGZeoyqRXafiQXNqaJ5UMNsPUXsIUFTx0aq5Bgk\n XXHeENqsIf03xKLxPrLQTPzOarVb64vPAfAJGu+dp71e5maGEX76lEqvTyFHV4N00ZOL\n +zK5WM/w4FJChdlhYSQBlq/VrtJwFkzkk6q3YgBA/Z0/YO0hilrENCgaTGQyu5mvJI+f\n i/TA==",
        "X-Gm-Message-State": "AOAM533kJt4Jvji7FXyK+CMHUeicIWwOv1eTAy4dDHjWuHGrpOToIWqT\n m8v3o1KDf84SF72JmWzoGcnwDTZ/PGA=",
        "X-Google-Smtp-Source": "\n ABdhPJx8/mP+A8m0fc/yaQPwLK6izHFAq67qGgRIUwq3+DzAg7PPGi+XQqoq93O89NR/IGX+8dLRgw==",
        "X-Received": "by 2002:ac8:6a0c:: with SMTP id t12mr6443967qtr.159.1631651102644;\n Tue, 14 Sep 2021 13:25:02 -0700 (PDT)",
        "From": "sergey.madaminov@gmail.com",
        "To": "dev@openvswitch.org",
        "Date": "Tue, 14 Sep 2021 15:24:47 -0500",
        "Message-Id": "<20210914202447.1850-1-sergey.madaminov@gmail.com>",
        "X-Mailer": "git-send-email 2.32.0.windows.2",
        "MIME-Version": "1.0",
        "Cc": "Sergey Madaminov <sergey.madaminov@gmail.com>",
        "Subject": "[ovs-dev] [PATCH] sflow functions: fix unused parameter warnings\n\tfor sflow functions",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>",
        "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>",
        "List-Post": "<mailto:ovs-dev@openvswitch.org>",
        "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>",
        "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "From: Sergey Madaminov <sergey.madaminov@gmail.com>\n\nSeveral 'sflow' functions (sfl_poller_tick, sfl_sampler_tick, and\nsfl_receiver_tick) have unused parameter 'now' in their signatures. This patch\nremoves that parameter from their signatures to fix compilation warnings.\n\nSigned-off-by: Sergey Madaminov <sergey.madaminov@gmail.com>\n\n---\n lib/sflow_agent.c    | 6 +++---\n lib/sflow_api.h      | 6 +++---\n lib/sflow_poller.c   | 2 +-\n lib/sflow_receiver.c | 2 +-\n lib/sflow_sampler.c  | 2 +-\n 5 files changed, 9 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/lib/sflow_agent.c b/lib/sflow_agent.c\nindex 878c3da01..60885f09f 100644\n--- a/lib/sflow_agent.c\n+++ b/lib/sflow_agent.c\n@@ -129,14 +129,14 @@ void sfl_agent_tick(SFLAgent *agent, time_t now)\n     SFLPoller *pl = agent->pollers;\n     agent->now = now;\n     /* samplers use ticks to decide when they are sampling too fast */\n-    for(; sm != NULL; sm = sm->nxt) sfl_sampler_tick(sm, now);\n+    for(; sm != NULL; sm = sm->nxt) sfl_sampler_tick(sm);\n     /* pollers use ticks to decide when to ask for counters */\n-    for(; pl != NULL; pl = pl->nxt) sfl_poller_tick(pl, now);\n+    for(; pl != NULL; pl = pl->nxt) sfl_poller_tick(pl);\n     /* receivers use ticks to flush send data.  By doing this\n      * step last we ensure that fresh counters polled during\n      * sfl_poller_tick() above will be flushed promptly.\n      */\n-    for(; rcv != NULL; rcv = rcv->nxt) sfl_receiver_tick(rcv, now);\n+    for(; rcv != NULL; rcv = rcv->nxt) sfl_receiver_tick(rcv);\n }\n \n /*_________________---------------------------__________________\ndiff --git a/lib/sflow_api.h b/lib/sflow_api.h\nindex 7264fc1c5..a0530b37a 100644\n--- a/lib/sflow_api.h\n+++ b/lib/sflow_api.h\n@@ -323,9 +323,9 @@ void sfl_sampler_init(SFLSampler *sampler, SFLAgent *agent, SFLDataSource_instan\n void sfl_poller_init(SFLPoller *poller, SFLAgent *agent, SFLDataSource_instance *pdsi, void *magic, getCountersFn_t getCountersFn);\n \n \n-void sfl_receiver_tick(SFLReceiver *receiver, time_t now);\n-void sfl_poller_tick(SFLPoller *poller, time_t now);\n-void sfl_sampler_tick(SFLSampler *sampler, time_t now);\n+void sfl_receiver_tick(SFLReceiver *receiver);\n+void sfl_poller_tick(SFLPoller *poller);\n+void sfl_sampler_tick(SFLSampler *sampler);\n \n int sfl_receiver_writeFlowSample(SFLReceiver *receiver, SFL_FLOW_SAMPLE_TYPE *fs);\n int sfl_receiver_writeCountersSample(SFLReceiver *receiver, SFL_COUNTERS_SAMPLE_TYPE *cs);\ndiff --git a/lib/sflow_poller.c b/lib/sflow_poller.c\nindex d2e415521..9e6a487bc 100644\n--- a/lib/sflow_poller.c\n+++ b/lib/sflow_poller.c\n@@ -125,7 +125,7 @@ void sfl_poller_resetCountersSeqNo(SFLPoller *poller) {  poller->countersSampleS\n   -----------------___________________________------------------\n */\n \n-void sfl_poller_tick(SFLPoller *poller, time_t now)\n+void sfl_poller_tick(SFLPoller *poller)\n {\n     if(poller->countersCountdown == 0) return; /* counters retrieval was not enabled */\n     if(poller->sFlowCpReceiver == 0) return;\ndiff --git a/lib/sflow_receiver.c b/lib/sflow_receiver.c\nindex cde1359c4..4162518e3 100644\n--- a/lib/sflow_receiver.c\n+++ b/lib/sflow_receiver.c\n@@ -141,7 +141,7 @@ void sfl_receiver_set_sFlowRcvrPort(SFLReceiver *receiver, u_int32_t sFlowRcvrPo\n   -----------------___________________________------------------\n */\n \n-void sfl_receiver_tick(SFLReceiver *receiver, time_t now)\n+void sfl_receiver_tick(SFLReceiver *receiver)\n {\n     // if there are any samples to send, flush them now\n     if(receiver->sampleCollector.numSamples > 0) sendSample(receiver);\ndiff --git a/lib/sflow_sampler.c b/lib/sflow_sampler.c\nindex 7406cc94a..b8cb5ac4a 100644\n--- a/lib/sflow_sampler.c\n+++ b/lib/sflow_sampler.c\n@@ -107,7 +107,7 @@ void sfl_sampler_resetFlowSeqNo(SFLSampler *sampler) { sampler->flowSampleSeqNo\n   -----------------___________________________------------------\n */\n \n-void sfl_sampler_tick(SFLSampler *sampler, time_t now)\n+void sfl_sampler_tick(SFLSampler *sampler)\n {\n     if(sampler->backoffThreshold && sampler->samplesThisTick > sampler->backoffThreshold) {\n \t/* automatic backoff.  If using hardware sampling then this is where you have to\n",
    "prefixes": [
        "ovs-dev"
    ]
}