get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41022,
    "url": "https://patches.dpdk.org/api/patches/41022/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1528877330-4819-1-git-send-email-wei.zhao1@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1528877330-4819-1-git-send-email-wei.zhao1@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1528877330-4819-1-git-send-email-wei.zhao1@intel.com",
    "date": "2018-06-13T08:08:50",
    "name": "[v2] net/ixgbe: add query rule stats support for FDIR",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "aea29285bbc9b9dcd709e78e1a1aec85262a1c54",
    "submitter": {
        "id": 495,
        "url": "https://patches.dpdk.org/api/people/495/?format=api",
        "name": "Zhao1, Wei",
        "email": "wei.zhao1@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1528877330-4819-1-git-send-email-wei.zhao1@intel.com/mbox/",
    "series": [
        {
            "id": 102,
            "url": "https://patches.dpdk.org/api/series/102/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=102",
            "date": "2018-06-13T08:08:50",
            "name": "[v2] net/ixgbe: add query rule stats support for FDIR",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/102/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/41022/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/41022/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 00D441EE25;\n\tWed, 13 Jun 2018 10:29:48 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n\tby dpdk.org (Postfix) with ESMTP id D39D31EC3D;\n\tWed, 13 Jun 2018 10:29:45 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Jun 2018 01:29:44 -0700",
            "from dpdk6.bj.intel.com ([172.16.182.94])\n\tby fmsmga001.fm.intel.com with ESMTP; 13 Jun 2018 01:29:31 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,218,1526367600\"; d=\"scan'208\";a=\"63676082\"",
        "From": "Wei Zhao <wei.zhao1@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "wenzhuo.lu@intel.com,\n\tstable@dpdk.org,\n\tWei Zhao <wei.zhao1@intel.com>",
        "Date": "Wed, 13 Jun 2018 16:08:50 +0800",
        "Message-Id": "<1528877330-4819-1-git-send-email-wei.zhao1@intel.com>",
        "X-Mailer": "git-send-email 2.7.5",
        "In-Reply-To": "<1528189935-34943-2-git-send-email-wei.zhao1@intel.com>",
        "References": "<1528189935-34943-2-git-send-email-wei.zhao1@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2] net/ixgbe: add query rule stats support for\n\tFDIR",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "There are many registeres in x550 support stats of\nflow director filters, for example the number of added\nor removed rules and the number match or miss match packet\ncount for this for port, all these important information\ncan be read form registeres in x550 and display with command\nxstats.\n\nSigned-off-by: Wei Zhao <wei.zhao1@intel.com>\n---\n\nv2:\n-add mac type check for this register read.\n\n---\n drivers/net/ixgbe/ixgbe_ethdev.c | 15 ++++++++++++---\n 1 file changed, 12 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex 87d2ad0..a3ddfe2 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -3120,9 +3120,18 @@ ixgbe_read_stats_registers(struct ixgbe_hw *hw,\n \t}\n \n \t/* Flow Director Stats registers */\n-\thw_stats->fdirmatch += IXGBE_READ_REG(hw, IXGBE_FDIRMATCH);\n-\thw_stats->fdirmiss += IXGBE_READ_REG(hw, IXGBE_FDIRMISS);\n-\n+\tif (hw->mac.type != ixgbe_mac_82598EB) {\n+\t\thw_stats->fdirmatch += IXGBE_READ_REG(hw, IXGBE_FDIRMATCH);\n+\t\thw_stats->fdirmiss += IXGBE_READ_REG(hw, IXGBE_FDIRMISS);\n+\t\thw_stats->fdirustat_add += IXGBE_READ_REG(hw,\n+\t\t\t\t\tIXGBE_FDIRUSTAT) & 0xFFFF;\n+\t\thw_stats->fdirustat_remove += (IXGBE_READ_REG(hw,\n+\t\t\t\t\tIXGBE_FDIRUSTAT) >> 16) & 0xFFFF;\n+\t\thw_stats->fdirfstat_fadd += IXGBE_READ_REG(hw,\n+\t\t\t\t\tIXGBE_FDIRFSTAT) & 0xFFFF;\n+\t\thw_stats->fdirfstat_fremove += (IXGBE_READ_REG(hw,\n+\t\t\t\t\tIXGBE_FDIRFSTAT) >> 16) & 0xFFFF;\n+\t}\n \t/* MACsec Stats registers */\n \tmacsec_stats->out_pkts_untagged += IXGBE_READ_REG(hw, IXGBE_LSECTXUT);\n \tmacsec_stats->out_pkts_encrypted +=\n",
    "prefixes": [
        "v2"
    ]
}