get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 59118,
    "url": "http://patches.dpdk.org/api/patches/59118/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/eab62f16c7670d2f1257ef32ecb413cae35c9395.1568216743.git.thierry.herbelot@6wind.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": "<eab62f16c7670d2f1257ef32ecb413cae35c9395.1568216743.git.thierry.herbelot@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/eab62f16c7670d2f1257ef32ecb413cae35c9395.1568216743.git.thierry.herbelot@6wind.com",
    "date": "2019-09-11T16:00:58",
    "name": "[1/1] net/ixgbevf: fix stats update after a PF reset",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "8afec5ee35b53dfbf9d39571c55f3ab032386ad1",
    "submitter": {
        "id": 897,
        "url": "http://patches.dpdk.org/api/people/897/?format=api",
        "name": "Thierry Herbelot",
        "email": "thierry.herbelot@6wind.com"
    },
    "delegate": {
        "id": 31221,
        "url": "http://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/eab62f16c7670d2f1257ef32ecb413cae35c9395.1568216743.git.thierry.herbelot@6wind.com/mbox/",
    "series": [
        {
            "id": 6374,
            "url": "http://patches.dpdk.org/api/series/6374/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6374",
            "date": "2019-09-11T16:00:58",
            "name": "[1/1] net/ixgbevf: fix stats update after a PF reset",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/6374/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/59118/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/59118/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 442961E89F;\n\tWed, 11 Sep 2019 18:01:37 +0200 (CEST)",
            "from mail-wr1-f68.google.com (mail-wr1-f68.google.com\n\t[209.85.221.68]) by dpdk.org (Postfix) with ESMTP id B11511C28F\n\tfor <dev@dpdk.org>; Wed, 11 Sep 2019 18:01:35 +0200 (CEST)",
            "by mail-wr1-f68.google.com with SMTP id t16so25205264wra.6\n\tfor <dev@dpdk.org>; Wed, 11 Sep 2019 09:01:35 -0700 (PDT)",
            "from ascain.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\t33sm24098367wra.41.2019.09.11.09.01.34\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 11 Sep 2019 09:01:34 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=d+RGAS4oMBRcwvFK4POaspkQAkCsQmJPp8Ia9+msq8o=;\n\tb=JY0GBEQuKP91rFmvnPtUj6d+ATTx5okF3k13b5lxwgcFvJMtNtVgcXTNRzz3Gst+x4\n\tyqx+UP2TIuf3TehnONJ5ibbJVmjqK2dFFm1nJhUjm4ipTMAEtib0DmZgvIOcxUFtffgN\n\tBWb1lM9vZ1CLa6wbkUIGQG+s97L184b/Abc8/fN8/zx8+ie4zlspuEAaDgD+sgtPHrcA\n\t2RNC8yZHLzkLlJxTxb+n2q1ki8SVRVE4lrsTrEq+EtnazRIE9CoVEYeTp5QrQrBv/ZpL\n\tiQ/xlOFWB5sa5wtf7xatPowSxbsNXMjToDJBvaRPJrHwxGiVBnfZ3xcwP+MX5t6mBrdQ\n\tFEoQ==",
        "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:mime-version:content-transfer-encoding;\n\tbh=d+RGAS4oMBRcwvFK4POaspkQAkCsQmJPp8Ia9+msq8o=;\n\tb=khdlZ0YMV0/Bu3qAKoo4WlDRC94wOw1LyGkJGTl9nh9J0eh9yUAaJusosXVGMJFFAF\n\tmm4SlGbQhDkA/8dJEc7AqmNnU9vnWgVB2tLJTqmXe/EjI1wQO4bVQu31/Rog+7uojZmA\n\tYj9WudYlmjXHXJ40IU5qGSi9vhWODgoPxJW9yKkvJpj40STgXJGftEc+f0kOuIQRWeeH\n\tVjBr2hFnBRWSwe2DW8da8R5tUgDtKD1zZIB3LfpotTrQ5OdSMCd9kyCUSY3avNcqi22w\n\tVnHrdQYIHEKBYlYPtgdB7+bMsDTb3pEs2zW/LyQmpwrNAihl9fIHFGmyh9rSA2yVtSc9\n\tjIxQ==",
        "X-Gm-Message-State": "APjAAAVcNhGsG/kHEamoNgwEyiol8SO3KbgwxETPz7f2glduVbeZPQOJ\n\tQz0y8rDjU2IDj8Z385a2BSjnyBDu8vy8",
        "X-Google-Smtp-Source": "APXvYqzg5lZJyWyQCHcOcSiQBovXNijoxY4fcDfzur40uIY/k2jwMA/xiR1uMMLae3DuQUpYL3Aaiw==",
        "X-Received": "by 2002:adf:f282:: with SMTP id k2mr30804745wro.38.1568217694828;\n\tWed, 11 Sep 2019 09:01:34 -0700 (PDT)",
        "From": "Thierry Herbelot <thierry.herbelot@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Guo Fengtian <fengtian.guo@6wind.com>,\n\tThomas Monjalon <thomas@monjalon.net>, stable@dpdk.org,\n\twenzhuo.lu@intel.com, konstantin.ananyev@intel.com",
        "Date": "Wed, 11 Sep 2019 18:00:58 +0200",
        "Message-Id": "<eab62f16c7670d2f1257ef32ecb413cae35c9395.1568216743.git.thierry.herbelot@6wind.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<cover.1568216743.git.thierry.herbelot@6wind.com>",
        "References": "<cover.1568216743.git.thierry.herbelot@6wind.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 1/1] net/ixgbevf: fix stats update after a PF\n\treset",
        "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: Guo Fengtian <fengtian.guo@6wind.com>\n\nWhen PF is set down, in VF, the value of stats register is zero.\nSo only increase stats when it's non zero.\n\nFixes: af75078fece3 ('first public release')\nCc: stable@dpdk.org\nCc: wenzhuo.lu@intel.com\nCc: konstantin.ananyev@intel.com\n\nSigned-off-by: Guo Fengtian <fengtian.guo@6wind.com>\n---\n drivers/net/ixgbe/ixgbe_ethdev.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex 7eb3d0567b58..27c540f60563 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -385,7 +385,8 @@ static void ixgbe_l2_tunnel_conf(struct rte_eth_dev *dev);\n #define UPDATE_VF_STAT(reg, last, cur)                          \\\n {                                                               \\\n \tuint32_t latest = IXGBE_READ_REG(hw, reg);              \\\n-\tcur += (latest - last) & UINT_MAX;                      \\\n+\tif (latest)                                             \\\n+\t\tcur += (latest - last) & UINT_MAX;              \\\n \tlast = latest;                                          \\\n }\n \n@@ -394,7 +395,8 @@ static void ixgbe_l2_tunnel_conf(struct rte_eth_dev *dev);\n \tu64 new_lsb = IXGBE_READ_REG(hw, lsb);                   \\\n \tu64 new_msb = IXGBE_READ_REG(hw, msb);                   \\\n \tu64 latest = ((new_msb << 32) | new_lsb);                \\\n-\tcur += (0x1000000000LL + latest - last) & 0xFFFFFFFFFLL; \\\n+\tif (latest)                                              \\\n+\t\tcur += (0x1000000000LL + latest - last) & 0xFFFFFFFFFLL;\\\n \tlast = latest;                                           \\\n }\n \n",
    "prefixes": [
        "1/1"
    ]
}