get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 70663,
    "url": "http://patchwork.dpdk.org/api/patches/70663/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/a58985061ef6670b02523380e908e52db36f4530.1590598121.git.anatoly.burakov@intel.com/",
    "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": "<a58985061ef6670b02523380e908e52db36f4530.1590598121.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/a58985061ef6670b02523380e908e52db36f4530.1590598121.git.anatoly.burakov@intel.com",
    "date": "2020-05-27T17:02:03",
    "name": "[RFC,3/6] net/ixgbe: implement power management API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a4c2f3623d5d2f3782f58d7e8c703743bbef99db",
    "submitter": {
        "id": 4,
        "url": "http://patchwork.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@intel.com"
    },
    "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/a58985061ef6670b02523380e908e52db36f4530.1590598121.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 10259,
            "url": "http://patchwork.dpdk.org/api/series/10259/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10259",
            "date": "2020-05-27T17:02:00",
            "name": "Power-optimized RX for Ethernet devices",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/10259/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/70663/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/70663/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 68C99A00BE;\n\tWed, 27 May 2020 19:02:35 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 817711DAF3;\n\tWed, 27 May 2020 19:02:20 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id 452E21DAAE\n for <dev@dpdk.org>; Wed, 27 May 2020 19:02:16 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 May 2020 10:02:13 -0700",
            "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.222.52])\n by orsmga005.jf.intel.com with ESMTP; 27 May 2020 10:02:04 -0700"
        ],
        "IronPort-SDR": [
            "\n W0lELPTnmyFxm+vhDOKQV5URjVoTVnAbx9HSjSbrO31KHGgwyVwez05kzC35H9cIege3U6xsDB\n 1WlRC5DnAgOg==",
            "\n YjZzOLtBCOWabpyS96JD2F/0ZucY3FpW+UNBK8k/eym6Oy7uN7ogpAZJsUknYI3Fv8wPuI5VUa\n erp5RbW4liEw=="
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.73,442,1583222400\"; d=\"scan'208\";a=\"442595977\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Wei Zhao <wei.zhao1@intel.com>, Jeff Guo <jia.guo@intel.com>,\n david.hunt@intel.com, liang.j.ma@intel.com",
        "Date": "Wed, 27 May 2020 18:02:03 +0100",
        "Message-Id": "\n <a58985061ef6670b02523380e908e52db36f4530.1590598121.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": [
            "<cover.1590598121.git.anatoly.burakov@intel.com>",
            "<cover.1590598121.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<cover.1590598121.git.anatoly.burakov@intel.com>",
            "<cover.1590598121.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [RFC 3/6] net/ixgbe: implement power management API",
        "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 <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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Implement support for the power management API by implementing a\n`next_rx_desc` function that will return an address of an RX ring's\nstatus bit.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n drivers/net/ixgbe/ixgbe_ethdev.c |  1 +\n drivers/net/ixgbe/ixgbe_rxtx.c   | 22 ++++++++++++++++++++++\n drivers/net/ixgbe/ixgbe_rxtx.h   |  2 ++\n 3 files changed, 25 insertions(+)",
    "diff": "diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex a4e5c539de..190d11d98d 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -605,6 +605,7 @@ static const struct eth_dev_ops ixgbe_eth_dev_ops = {\n \t.udp_tunnel_port_del  = ixgbe_dev_udp_tunnel_port_del,\n \t.tm_ops_get           = ixgbe_tm_ops_get,\n \t.tx_done_cleanup      = ixgbe_dev_tx_done_cleanup,\n+\t.next_rx_desc         = ixgbe_next_rx_desc,\n };\n \n /*\ndiff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c\nindex 2e20e18c7a..ef2fb5fca9 100644\n--- a/drivers/net/ixgbe/ixgbe_rxtx.c\n+++ b/drivers/net/ixgbe/ixgbe_rxtx.c\n@@ -1366,6 +1366,28 @@ const uint32_t\n \t\tRTE_PTYPE_INNER_L3_IPV4_EXT | RTE_PTYPE_INNER_L4_UDP,\n };\n \n+int ixgbe_next_rx_desc(void *rx_queue, volatile void **tail_desc_addr,\n+\t\tuint64_t *expected, uint64_t *mask)\n+{\n+\tvolatile union ixgbe_adv_rx_desc *rxdp;\n+\tstruct ixgbe_rx_queue *rxq = rx_queue;\n+\tuint16_t desc;\n+\n+\tdesc = rxq->rx_tail;\n+\trxdp = &rxq->rx_ring[desc];\n+\t/* watch for changes in status bit */\n+\t*tail_desc_addr = &rxdp->wb.upper.status_error;\n+\n+\t/*\n+\t * we expect the DD bit to be set to 1 if this descriptor was already\n+\t * written to.\n+\t */\n+\t*expected = rte_cpu_to_le_32(IXGBE_RXDADV_STAT_DD);\n+\t*mask = rte_cpu_to_le_32(IXGBE_RXDADV_STAT_DD);\n+\n+\treturn 0;\n+}\n+\n /* @note: fix ixgbe_dev_supported_ptypes_get() if any change here. */\n static inline uint32_t\n ixgbe_rxd_pkt_info_to_pkt_type(uint32_t pkt_info, uint16_t ptype_mask)\ndiff --git a/drivers/net/ixgbe/ixgbe_rxtx.h b/drivers/net/ixgbe/ixgbe_rxtx.h\nindex 20a8b291d4..6c35966c78 100644\n--- a/drivers/net/ixgbe/ixgbe_rxtx.h\n+++ b/drivers/net/ixgbe/ixgbe_rxtx.h\n@@ -299,5 +299,7 @@ uint64_t ixgbe_get_tx_port_offloads(struct rte_eth_dev *dev);\n uint64_t ixgbe_get_rx_queue_offloads(struct rte_eth_dev *dev);\n uint64_t ixgbe_get_rx_port_offloads(struct rte_eth_dev *dev);\n uint64_t ixgbe_get_tx_queue_offloads(struct rte_eth_dev *dev);\n+int ixgbe_next_rx_desc(void *rx_queue, volatile void **tail_desc_addr,\n+\t\tuint64_t *expected, uint64_t *mask);\n \n #endif /* _IXGBE_RXTX_H_ */\n",
    "prefixes": [
        "RFC",
        "3/6"
    ]
}