get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 83385,
    "url": "https://patches.dpdk.org/api/patches/83385/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1604315406-27669-5-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": "<1604315406-27669-5-git-send-email-liang.j.ma@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1604315406-27669-5-git-send-email-liang.j.ma@intel.com",
    "date": "2020-11-02T11:10:03",
    "name": "[v11,4/6] net/i40e: implement power management API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a7895edc2bcf96a10b7674127c314a4f9c75e0d1",
    "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/1604315406-27669-5-git-send-email-liang.j.ma@intel.com/mbox/",
    "series": [
        {
            "id": 13562,
            "url": "https://patches.dpdk.org/api/series/13562/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13562",
            "date": "2020-11-02T11:09:59",
            "name": "Add PMD power mgmt",
            "version": 11,
            "mbox": "https://patches.dpdk.org/series/13562/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/83385/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/83385/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 1257FA04E7;\n\tMon,  2 Nov 2020 12:12:39 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 75841C82A;\n\tMon,  2 Nov 2020 12:11:42 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id A3569C81A\n for <dev@dpdk.org>; Mon,  2 Nov 2020 12:11:40 +0100 (CET)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Nov 2020 03:11:38 -0800",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n by orsmga004.jf.intel.com with ESMTP; 02 Nov 2020 03:11:34 -0800",
            "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 0A2BBYXs011980; Mon, 2 Nov 2020 11:11:34 GMT",
            "from sivswdev09.ir.intel.com (localhost [127.0.0.1])\n by sivswdev09.ir.intel.com with ESMTP id 0A2BBXll028213;\n Mon, 2 Nov 2020 11:11:33 GMT",
            "(from lma25@localhost)\n by sivswdev09.ir.intel.com with LOCAL id 0A2BBXjN028209;\n Mon, 2 Nov 2020 11:11:33 GMT"
        ],
        "IronPort-SDR": [
            "\n +606nk9U3tBg4jTkyByEXwq8IS0fE0/4VtCoYujO12KJZczj2iVVDgy9kNci6U5jSfHVbqo3rb\n Z8IqCQhSjfaw==",
            "\n imxC7WUeKr4eP3+tCBPk6osKsn/09Lf6XuPoc/Jd3sXMSPOM+oHUh/6uvVKvU+u13HrNswoWWe\n 8noWOEiJ4RkA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9792\"; a=\"148722254\"",
            "E=Sophos;i=\"5.77,444,1596524400\"; d=\"scan'208\";a=\"148722254\"",
            "E=Sophos;i=\"5.77,444,1596524400\"; d=\"scan'208\";a=\"470337524\""
        ],
        "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, matan@nvidia.com, yongwang@vmware.com,\n Anatoly Burakov <anatoly.burakov@intel.com>,\n Beilei Xing <beilei.xing@intel.com>, Jeff Guo <jia.guo@intel.com>",
        "Date": "Mon,  2 Nov 2020 11:10:03 +0000",
        "Message-Id": "<1604315406-27669-5-git-send-email-liang.j.ma@intel.com>",
        "X-Mailer": "git-send-email 1.7.7.4",
        "In-Reply-To": "<1604315406-27669-1-git-send-email-liang.j.ma@intel.com>",
        "References": "\n <2772eb151ccba5cc17186e6161d8834176924753.1590598121.git.anatoly.burakov@intel.com>\n <1604315406-27669-1-git-send-email-liang.j.ma@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v11 4/6] net/i40e: 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: Liang Ma <liang.j.ma@intel.com>\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\nAcked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>\nAcked-by: Jeff Guo <jia.guo@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c |  1 +\n drivers/net/i40e/i40e_rxtx.c   | 26 ++++++++++++++++++++++++++\n drivers/net/i40e/i40e_rxtx.h   |  2 ++\n 3 files changed, 29 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 4778aaf299..358a38232b 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -513,6 +513,7 @@ static const struct eth_dev_ops i40e_eth_dev_ops = {\n \t.mtu_set                      = i40e_dev_mtu_set,\n \t.tm_ops_get                   = i40e_tm_ops_get,\n \t.tx_done_cleanup              = i40e_tx_done_cleanup,\n+\t.get_wake_addr\t              = i40e_get_wake_addr,\n };\n \n /* store statistics names and its offset in stats structure */\ndiff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex 5df9a9df56..78862fe3a2 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -72,6 +72,32 @@\n #define I40E_TX_OFFLOAD_NOTSUP_MASK \\\n \t\t(PKT_TX_OFFLOAD_MASK ^ I40E_TX_OFFLOAD_MASK)\n \n+int\n+i40e_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+\tstruct i40e_rx_queue *rxq = rx_queue;\n+\tvolatile union i40e_rx_desc *rxdp;\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.qword1.status_error_len;\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_64(1 << I40E_RX_DESC_STATUS_DD_SHIFT);\n+\t*mask = rte_cpu_to_le_64(1 << I40E_RX_DESC_STATUS_DD_SHIFT);\n+\n+\t/* registers are 64-bit */\n+\t*data_sz = 8;\n+\n+\treturn 0;\n+}\n+\n static inline void\n i40e_rxd_to_vlan_tci(struct rte_mbuf *mb, volatile union i40e_rx_desc *rxdp)\n {\ndiff --git a/drivers/net/i40e/i40e_rxtx.h b/drivers/net/i40e/i40e_rxtx.h\nindex 57d7b4160b..5826cf1099 100644\n--- a/drivers/net/i40e/i40e_rxtx.h\n+++ b/drivers/net/i40e/i40e_rxtx.h\n@@ -248,6 +248,8 @@ uint16_t i40e_recv_scattered_pkts_vec_avx2(void *rx_queue,\n \tstruct rte_mbuf **rx_pkts, uint16_t nb_pkts);\n uint16_t i40e_xmit_pkts_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts,\n \tuint16_t nb_pkts);\n+int i40e_get_wake_addr(void *rx_queue, volatile void **tail_desc_addr,\n+\t\tuint64_t *expected, uint64_t *value, uint8_t *data_sz);\n \n /* For each value it means, datasheet of hardware can tell more details\n  *\n",
    "prefixes": [
        "v11",
        "4/6"
    ]
}