get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809519,
    "url": "http://patchwork.ozlabs.org/api/patches/809519/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1504504056-21956-1-git-send-email-ganeshgr@chelsio.com/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1504504056-21956-1-git-send-email-ganeshgr@chelsio.com>",
    "list_archive_url": null,
    "date": "2017-09-04T05:47:36",
    "name": "[net-next] cxgb4: Fix pause frame count in t4_get_port_stats",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "57c00ce6814dd89f2587739357fd7cfe8f7938f8",
    "submitter": {
        "id": 69424,
        "url": "http://patchwork.ozlabs.org/api/people/69424/?format=api",
        "name": "Ganesh Goudar",
        "email": "ganeshgr@chelsio.com"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1504504056-21956-1-git-send-email-ganeshgr@chelsio.com/mbox/",
    "series": [
        {
            "id": 1308,
            "url": "http://patchwork.ozlabs.org/api/series/1308/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1308",
            "date": "2017-09-04T05:47:36",
            "name": "[net-next] cxgb4: Fix pause frame count in t4_get_port_stats",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1308/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809519/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809519/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlzQY3lgcz9s7M\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon,  4 Sep 2017 15:47:49 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751002AbdIDFrq (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tMon, 4 Sep 2017 01:47:46 -0400",
            "from stargate.chelsio.com ([12.32.117.8]:58429 \"EHLO\n\tstargate.chelsio.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750778AbdIDFrp (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Mon, 4 Sep 2017 01:47:45 -0400",
            "from localhost (victim.blr.asicdesigners.com [10.193.185.129])\n\tby stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id v845ldP4003024; \n\tSun, 3 Sep 2017 22:47:40 -0700"
        ],
        "From": "Ganesh Goudar <ganeshgr@chelsio.com>",
        "To": "netdev@vger.kernel.org, davem@davemloft.net",
        "Cc": "nirranjan@chelsio.com, indranil@chelsio.com, venkatesh@chelsio.com,\n\tGanesh Goudar <ganeshgr@chelsio.com>, Casey Leedom <leedom@chelsio.com>",
        "Subject": "[PATCH net-next] cxgb4: Fix pause frame count in t4_get_port_stats",
        "Date": "Mon,  4 Sep 2017 11:17:36 +0530",
        "Message-Id": "<1504504056-21956-1-git-send-email-ganeshgr@chelsio.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "MPS_STAT_CTL[CountPauseStatTx] and MPS_STAT_CTL[CountPauseStatRx]\nonly control whether or not Pause Frames will be counted as part\nof the 64-Byte Tx/Rx Frame counters.  These bits do not control\nwhether Pause Frames are counted in the Total Tx/Rx Frames/Bytes\ncounters.\n\nSigned-off-by: Ganesh Goudar <ganeshgr@chelsio.com>\nSigned-off-by: Casey Leedom <leedom@chelsio.com>\n---\n drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 12 ++++--------\n 1 file changed, 4 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c\nindex b0f9aea..b65ce26 100644\n--- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c\n+++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c\n@@ -6001,10 +6001,8 @@ void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p)\n \tp->tx_ppp7             = GET_STAT(TX_PORT_PPP7);\n \n \tif (CHELSIO_CHIP_VERSION(adap->params.chip) >= CHELSIO_T5) {\n-\t\tif (stat_ctl & COUNTPAUSESTATTX_F) {\n-\t\t\tp->tx_frames -= p->tx_pause;\n-\t\t\tp->tx_octets -= p->tx_pause * 64;\n-\t\t}\n+\t\tif (stat_ctl & COUNTPAUSESTATTX_F)\n+\t\t\tp->tx_frames_64 -= p->tx_pause;\n \t\tif (stat_ctl & COUNTPAUSEMCTX_F)\n \t\t\tp->tx_mcast_frames -= p->tx_pause;\n \t}\n@@ -6037,10 +6035,8 @@ void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p)\n \tp->rx_ppp7             = GET_STAT(RX_PORT_PPP7);\n \n \tif (CHELSIO_CHIP_VERSION(adap->params.chip) >= CHELSIO_T5) {\n-\t\tif (stat_ctl & COUNTPAUSESTATRX_F) {\n-\t\t\tp->rx_frames -= p->rx_pause;\n-\t\t\tp->rx_octets -= p->rx_pause * 64;\n-\t\t}\n+\t\tif (stat_ctl & COUNTPAUSESTATRX_F)\n+\t\t\tp->rx_frames_64 -= p->rx_pause;\n \t\tif (stat_ctl & COUNTPAUSEMCRX_F)\n \t\t\tp->rx_mcast_frames -= p->rx_pause;\n \t}\n",
    "prefixes": [
        "net-next"
    ]
}