get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 82338,
    "url": "https://patches.dpdk.org/api/patches/82338/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1603810749-22285-7-git-send-email-liang.j.ma@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": "<1603810749-22285-7-git-send-email-liang.j.ma@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1603810749-22285-7-git-send-email-liang.j.ma@intel.com",
    "date": "2020-10-27T14:59:06",
    "name": "[v10,6/9] net/ixgbe: implement power management API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d56cb41a07688a8ddccfb3207f973913b09060d6",
    "submitter": {
        "id": 904,
        "url": "https://patches.dpdk.org/api/people/904/?format=api",
        "name": "Liang, Ma",
        "email": "liang.j.ma@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1603810749-22285-7-git-send-email-liang.j.ma@intel.com/mbox/",
    "series": [
        {
            "id": 13382,
            "url": "https://patches.dpdk.org/api/series/13382/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13382",
            "date": "2020-10-27T14:59:00",
            "name": "Add PMD power mgmt",
            "version": 10,
            "mbox": "https://patches.dpdk.org/series/13382/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/82338/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/82338/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 75174A04B5;\n\tTue, 27 Oct 2020 16:02:12 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 010D272EF;\n\tTue, 27 Oct 2020 16:00:05 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id 073E672EC\n for <dev@dpdk.org>; Tue, 27 Oct 2020 16:00:01 +0100 (CET)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Oct 2020 08:00:00 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n by fmsmga006.fm.intel.com with ESMTP; 27 Oct 2020 07:59:56 -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 09RExt9v015772; Tue, 27 Oct 2020 14:59:55 GMT",
            "from sivswdev09.ir.intel.com (localhost [127.0.0.1])\n by sivswdev09.ir.intel.com with ESMTP id 09RExtO6022859;\n Tue, 27 Oct 2020 14:59:55 GMT",
            "(from lma25@localhost)\n by sivswdev09.ir.intel.com with LOCAL id 09RExtaB022855;\n Tue, 27 Oct 2020 14:59:55 GMT"
        ],
        "IronPort-SDR": [
            "\n SmrqSJxxsuWBqJ/4atAYQyhOnFOgtRJ5Tncso5gH4z8yUDwP8qOpu5c0dSWLOZLhC6q4Epyns0\n ouiNXXwM0k1A==",
            "\n 00e16BHSm2ly1NYo6jhleKCEvRfiySRi6zkjP2vL6PUZqfXghX2Cozh3QQuO3wFFwhZW7f00SV\n zRx5/6gi6vmw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9786\"; a=\"167314115\"",
            "E=Sophos;i=\"5.77,424,1596524400\"; d=\"scan'208\";a=\"167314115\"",
            "E=Sophos;i=\"5.77,424,1596524400\"; d=\"scan'208\";a=\"524754983\""
        ],
        "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": "ruifeng.wang@arm.com, haiyue.wang@intel.com, bruce.richardson@intel.com,\n konstantin.ananyev@intel.com, david.hunt@intel.com,\n jerinjacobk@gmail.com, nhorman@tuxdriver.com, thomas@monjalon.net,\n timothy.mcdaniel@intel.com, gage.eads@intel.com, mw@semihalf.com,\n gtzalik@amazon.com, ajit.khaparde@broadcom.com, hkalra@marvell.com,\n johndale@cisco.com, xavier.huwei@huawei.com, xuanziyang2@huawei.com,\n matan@nvidia.com, yongwang@vmware.com,\n Anatoly Burakov <anatoly.burakov@intel.com>, Jeff Guo <jia.guo@intel.com>",
        "Date": "Tue, 27 Oct 2020 14:59:06 +0000",
        "Message-Id": "<1603810749-22285-7-git-send-email-liang.j.ma@intel.com>",
        "X-Mailer": "git-send-email 1.7.7.4",
        "In-Reply-To": [
            "<1603810749-22285-1-git-send-email-liang.j.ma@intel.com>",
            "<1603494392-7181-1-git-send-email-liang.j.ma@intel.com>"
        ],
        "References": [
            "<1603810749-22285-1-git-send-email-liang.j.ma@intel.com>",
            "<1603494392-7181-1-git-send-email-liang.j.ma@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v10 6/9] 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`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 5f19972031..305822836d 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": [
        "v10",
        "6/9"
    ]
}