get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 82021,
    "url": "http://patches.dpdk.org/api/patches/82021/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1603494392-7181-7-git-send-email-liang.j.ma@intel.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": "<1603494392-7181-7-git-send-email-liang.j.ma@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1603494392-7181-7-git-send-email-liang.j.ma@intel.com",
    "date": "2020-10-23T23:06:28",
    "name": "[v9,06/10] net/ixgbe: implement power management API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d56cb41a07688a8ddccfb3207f973913b09060d6",
    "submitter": {
        "id": 904,
        "url": "http://patches.dpdk.org/api/people/904/?format=api",
        "name": "Liang, Ma",
        "email": "liang.j.ma@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1603494392-7181-7-git-send-email-liang.j.ma@intel.com/mbox/",
    "series": [
        {
            "id": 13288,
            "url": "http://patches.dpdk.org/api/series/13288/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13288",
            "date": "2020-10-23T23:06:22",
            "name": "Add PMD power mgmt",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/13288/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/82021/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/82021/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 BD0A2A04B0;\n\tSat, 24 Oct 2020 01:08:43 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0E02A6A44;\n\tSat, 24 Oct 2020 01:07:04 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id D01F7677C\n for <dev@dpdk.org>; Sat, 24 Oct 2020 01:06:53 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Oct 2020 16:06:53 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n by fmsmga005.fm.intel.com with ESMTP; 23 Oct 2020 16:06:49 -0700",
            "from sivswdev09.ir.intel.com (sivswdev09.ir.intel.com\n [10.237.217.48])\n by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n 09NN6nA3016538; Sat, 24 Oct 2020 00:06:49 +0100",
            "from sivswdev09.ir.intel.com (localhost [127.0.0.1])\n by sivswdev09.ir.intel.com with ESMTP id 09NN6nKA007404;\n Sat, 24 Oct 2020 00:06:49 +0100",
            "(from lma25@localhost)\n by sivswdev09.ir.intel.com with LOCAL id 09NN6nAP007400;\n Sat, 24 Oct 2020 00:06:49 +0100"
        ],
        "IronPort-SDR": [
            "\n 3BhoqVelnA4maVpLFo/2g/+OHGs4ZVDr8ybNjOfI0Nv+HR1RSyWj5zM6OmNPBTg50fWYrfMZKH\n 8KxlhLzC0cKA==",
            "\n MbpIMJWPbfwSLlMlqlomXwIjBIUvrjCOJ+brUNFJYJqOBhkbkDjSge8x3XKWS7KQoMbfewgVMT\n ogyC/VqlHzFQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9783\"; a=\"147031961\"",
            "E=Sophos;i=\"5.77,410,1596524400\"; d=\"scan'208\";a=\"147031961\"",
            "E=Sophos;i=\"5.77,410,1596524400\"; d=\"scan'208\";a=\"524832867\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Liang Ma <liang.j.ma@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "anatoly.burakov@intel.com, viktorin@rehivetech.com, qi.z.zhang@intel.com,\n ruifeng.wang@arm.com, beilei.xing@intel.com, jia.guo@intel.com,\n qiming.yang@intel.com, haiyue.wang@intel.com,\n bruce.richardson@intel.com, konstantin.ananyev@intel.com,\n david.hunt@intel.com, jerinjacobk@gmail.com, nhorman@tuxdriver.com,\n thomas@monjalon.net, timothy.mcdaniel@intel.com, gage.eads@intel.com,\n drc@linux.vnet.ibm.com, Liang Ma <liang.j.ma@intel.com>",
        "Date": "Sat, 24 Oct 2020 00:06:28 +0100",
        "Message-Id": "<1603494392-7181-7-git-send-email-liang.j.ma@intel.com>",
        "X-Mailer": "git-send-email 1.7.7.4",
        "In-Reply-To": [
            "<1603494392-7181-1-git-send-email-liang.j.ma@intel.com>",
            "<1603473432-11153-1-git-send-email-liang.j.ma@intel.com>"
        ],
        "References": [
            "<n>\n <1603494392-7181-1-git-send-email-liang.j.ma@intel.com>",
            "<1603473432-11153-1-git-send-email-liang.j.ma@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v9 06/10] net/ixgbe: implement power management\n\tAPI",
        "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`get_wake_addr` function that will return an address of an RX ring's\nstatus bit.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\nSigned-off-by: Liang Ma <liang.j.ma@intel.com>\nAcked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>\n---\n drivers/net/ixgbe/ixgbe_ethdev.c |  1 +\n drivers/net/ixgbe/ixgbe_rxtx.c   | 25 +++++++++++++++++++++++++\n drivers/net/ixgbe/ixgbe_rxtx.h   |  2 ++\n 3 files changed, 28 insertions(+)",
    "diff": "diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex 00101c2eec..fcc4026372 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -588,6 +588,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.get_wake_addr        = ixgbe_get_wake_addr,\n };\n \n /*\ndiff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c\nindex d1d3baff90..096dff37ba 100644\n--- a/drivers/net/ixgbe/ixgbe_rxtx.c\n+++ b/drivers/net/ixgbe/ixgbe_rxtx.c\n@@ -1367,6 +1367,31 @@ const uint32_t\n \t\tRTE_PTYPE_INNER_L3_IPV4_EXT | RTE_PTYPE_INNER_L4_UDP,\n };\n \n+int ixgbe_get_wake_addr(void *rx_queue, volatile void **tail_desc_addr,\n+\t\tuint64_t *expected, uint64_t *mask, uint8_t *data_sz)\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+\t/* the registers are 32-bit */\n+\t*data_sz = 4;\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 6d2f7c9da3..1ef0b05e66 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_get_wake_addr(void *rx_queue, volatile void **tail_desc_addr,\n+\t\tuint64_t *expected, uint64_t *mask, uint8_t *data_sz);\n \n #endif /* _IXGBE_RXTX_H_ */\n",
    "prefixes": [
        "v9",
        "06/10"
    ]
}