get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 80744,
    "url": "http://patchwork.dpdk.org/api/patches/80744/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/e22b6658f80748ba3e9628a3848b533e026021f8.1602682207.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": "<e22b6658f80748ba3e9628a3848b533e026021f8.1602682207.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/e22b6658f80748ba3e9628a3848b533e026021f8.1602682207.git.anatoly.burakov@intel.com",
    "date": "2020-10-14T13:30:21",
    "name": "[v6,08/10] net/ice: implement power management API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c7c6f9a24985a75a8b2ced4e7e3c64355a351038",
    "submitter": {
        "id": 4,
        "url": "http://patchwork.dpdk.org/api/people/4/?format=api",
        "name": "Burakov, Anatoly",
        "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/e22b6658f80748ba3e9628a3848b533e026021f8.1602682207.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 12959,
            "url": "http://patchwork.dpdk.org/api/series/12959/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=12959",
            "date": "2020-10-14T13:30:14",
            "name": "[v6,01/10] eal: add new x86 cpuid support for WAITPKG",
            "version": 6,
            "mbox": "http://patchwork.dpdk.org/series/12959/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/80744/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/80744/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 5E170A04B7;\n\tWed, 14 Oct 2020 15:37:03 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 341501DE9F;\n\tWed, 14 Oct 2020 15:31:01 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id DED9B1B6BA\n for <dev@dpdk.org>; Wed, 14 Oct 2020 15:30:48 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Oct 2020 06:30:48 -0700",
            "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.222.52])\n by fmsmga006.fm.intel.com with ESMTP; 14 Oct 2020 06:30:45 -0700"
        ],
        "IronPort-SDR": [
            "\n ycxdGbwNSzI1OxRRAzaJ6tBc6hDFirYsBf3yJG4tak+OPttBYw935OQ2nOujhwkKx594kQ5Hly\n TpT9e8tXlaFQ==",
            "\n 7V2thzu9EdR+te1jK1vT5gqIc4V3POMK6RI4DVUnWjU/E1mwXpBXU1ctcoKCYJ3NqHSoEmOxAU\n gVlbICINSrdw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9773\"; a=\"183622006\"",
            "E=Sophos;i=\"5.77,374,1596524400\"; d=\"scan'208\";a=\"183622006\"",
            "E=Sophos;i=\"5.77,374,1596524400\"; d=\"scan'208\";a=\"520378312\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Liang Ma <liang.j.ma@intel.com>, Qiming Yang <qiming.yang@intel.com>,\n Qi Zhang <qi.z.zhang@intel.com>, david.hunt@intel.com,\n konstantin.ananyev@intel.com, jerinjacobk@gmail.com,\n bruce.richardson@intel.com, thomas@monjalon.net,\n timothy.mcdaniel@intel.com, gage.eads@intel.com, chris.macnamara@intel.com",
        "Date": "Wed, 14 Oct 2020 14:30:21 +0100",
        "Message-Id": "\n <e22b6658f80748ba3e9628a3848b533e026021f8.1602682207.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": [
            "\n <c6b56362a7c4773b7fcb0e788ecc852caa4192fa.1602682206.git.anatoly.burakov@intel.com>",
            "\n <532f45c5d79b4c30a919553d322bb66e91534466.1602258833.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "\n <c6b56362a7c4773b7fcb0e788ecc852caa4192fa.1602682206.git.anatoly.burakov@intel.com>",
            "\n <532f45c5d79b4c30a919553d322bb66e91534466.1602258833.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v6 08/10] net/ice: 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": "From: Liang Ma <liang.j.ma@intel.com>\n\nImplement 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>\n---\n drivers/net/ice/ice_ethdev.c |  1 +\n drivers/net/ice/ice_rxtx.c   | 26 ++++++++++++++++++++++++++\n drivers/net/ice/ice_rxtx.h   |  2 ++\n 3 files changed, 29 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c\nindex d8ce09d28f..260de5dfd7 100644\n--- a/drivers/net/ice/ice_ethdev.c\n+++ b/drivers/net/ice/ice_ethdev.c\n@@ -216,6 +216,7 @@ static const struct eth_dev_ops ice_eth_dev_ops = {\n \t.udp_tunnel_port_add          = ice_dev_udp_tunnel_port_add,\n \t.udp_tunnel_port_del          = ice_dev_udp_tunnel_port_del,\n \t.tx_done_cleanup              = ice_tx_done_cleanup,\n+\t.get_wake_addr\t              = ice_get_wake_addr,\n };\n \n /* store statistics names and its offset in stats structure */\ndiff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c\nindex 79e6df11f4..7c0f963d96 100644\n--- a/drivers/net/ice/ice_rxtx.c\n+++ b/drivers/net/ice/ice_rxtx.c\n@@ -25,6 +25,32 @@ uint64_t rte_net_ice_dynflag_proto_xtr_ipv6_flow_mask;\n uint64_t rte_net_ice_dynflag_proto_xtr_tcp_mask;\n uint64_t rte_net_ice_dynflag_proto_xtr_ip_offset_mask;\n \n+int ice_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 ice_rx_flex_desc *rxdp;\n+\tstruct ice_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.status_error0;\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_16(1 << ICE_RX_FLEX_DESC_STATUS0_DD_S);\n+\t*mask = rte_cpu_to_le_16(1 << ICE_RX_FLEX_DESC_STATUS0_DD_S);\n+\n+\t/* register is 16-bit */\n+\t*data_sz = 2;\n+\n+\treturn 0;\n+}\n+\n+\n static inline uint8_t\n ice_proto_xtr_type_to_rxdid(uint8_t xtr_type)\n {\ndiff --git a/drivers/net/ice/ice_rxtx.h b/drivers/net/ice/ice_rxtx.h\nindex 1c23c7541e..7eeb8d467e 100644\n--- a/drivers/net/ice/ice_rxtx.h\n+++ b/drivers/net/ice/ice_rxtx.h\n@@ -250,6 +250,8 @@ uint16_t ice_xmit_pkts_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts,\n \t\t\t\tuint16_t nb_pkts);\n int ice_fdir_programming(struct ice_pf *pf, struct ice_fltr_desc *fdir_desc);\n int ice_tx_done_cleanup(void *txq, uint32_t free_cnt);\n+int ice_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 #define FDIR_PARSING_ENABLE_PER_QUEUE(ad, on) do { \\\n \tint i; \\\n",
    "prefixes": [
        "v6",
        "08/10"
    ]
}