get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 57626,
    "url": "http://patchwork.dpdk.org/api/patches/57626/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1565619305-17116-4-git-send-email-haiyue.wang@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": "<1565619305-17116-4-git-send-email-haiyue.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1565619305-17116-4-git-send-email-haiyue.wang@intel.com",
    "date": "2019-08-12T14:15:05",
    "name": "[RFC,v1,3/3] net/ice: support the Rx/Tx burst description field in queue information",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ce5059a48381c3187f428c15f3036d740d24cf38",
    "submitter": {
        "id": 1044,
        "url": "http://patchwork.dpdk.org/api/people/1044/?format=api",
        "name": "Wang, Haiyue",
        "email": "haiyue.wang@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1565619305-17116-4-git-send-email-haiyue.wang@intel.com/mbox/",
    "series": [
        {
            "id": 6018,
            "url": "http://patchwork.dpdk.org/api/series/6018/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=6018",
            "date": "2019-08-12T14:15:02",
            "name": "show the Rx/Tx burst description field",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/6018/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/57626/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/57626/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 61F7B1BE8C;\n\tMon, 12 Aug 2019 16:20:24 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 72DF91BE81\n\tfor <dev@dpdk.org>; Mon, 12 Aug 2019 16:20:16 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t12 Aug 2019 07:20:16 -0700",
            "from npg-dpdk-haiyue-1.sh.intel.com ([10.67.111.73])\n\tby orsmga004.jf.intel.com with ESMTP; 12 Aug 2019 07:20:15 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.64,377,1559545200\"; d=\"scan'208\";a=\"327368453\"",
        "From": "Haiyue Wang <haiyue.wang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Haiyue Wang <haiyue.wang@intel.com>",
        "Date": "Mon, 12 Aug 2019 22:15:05 +0800",
        "Message-Id": "<1565619305-17116-4-git-send-email-haiyue.wang@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1565619305-17116-1-git-send-email-haiyue.wang@intel.com>",
        "References": "<1565619305-17116-1-git-send-email-haiyue.wang@intel.com>",
        "Subject": "[dpdk-dev] [RFC v1 3/3] net/ice: support the Rx/Tx burst\n\tdescription field in queue information",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "According to the Rx/Tx burst function that's selected currently, format\nthe distinct burst description information for apps to query.\n\nSigned-off-by: Haiyue Wang <haiyue.wang@intel.com>\n---\n drivers/net/ice/ice_rxtx.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 49 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c\nindex 0282b53..9e6b1f7 100644\n--- a/drivers/net/ice/ice_rxtx.c\n+++ b/drivers/net/ice/ice_rxtx.c\n@@ -15,6 +15,16 @@\n \n #define ICE_RX_ERR_BITS 0x3f\n \n+static uint16_t ice_recv_scattered_pkts(void *rx_queue,\n+\t\t\t\t\tstruct rte_mbuf **rx_pkts,\n+\t\t\t\t\tuint16_t nb_pkts);\n+static uint16_t ice_recv_pkts_bulk_alloc(void *rx_queue,\n+\t\t\t\t\t struct rte_mbuf **rx_pkts,\n+\t\t\t\t\t uint16_t nb_pkts);\n+static uint16_t ice_xmit_pkts_simple(void *tx_queue,\n+\t\t\t\t     struct rte_mbuf **tx_pkts,\n+\t\t\t\t     uint16_t nb_pkts);\n+\n static enum ice_status\n ice_program_hw_rx_queue(struct ice_rx_queue *rxq)\n {\n@@ -935,6 +945,30 @@ ice_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n \tqinfo->conf.rx_free_thresh = rxq->rx_free_thresh;\n \tqinfo->conf.rx_drop_en = rxq->drop_en;\n \tqinfo->conf.rx_deferred_start = rxq->rx_deferred_start;\n+\n+\tif (dev->rx_pkt_burst == ice_recv_scattered_pkts)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"Scattered Rx\");\n+\telse if (dev->rx_pkt_burst == ice_recv_pkts_bulk_alloc)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"Bulk Rx\");\n+\telse if (dev->rx_pkt_burst == ice_recv_pkts)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"Normal Rx\");\n+#ifdef RTE_ARCH_X86\n+\telse if (dev->rx_pkt_burst == ice_recv_scattered_pkts_vec_avx2)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"AVX2 Vector Scattered Rx\");\n+\telse if (dev->rx_pkt_burst == ice_recv_scattered_pkts_vec)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"Vector Scattered Rx\");\n+\telse if (dev->rx_pkt_burst == ice_recv_pkts_vec_avx2)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"AVX2 Vector Rx\");\n+\telse if (dev->rx_pkt_burst == ice_recv_pkts_vec)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"Vector Rx\");\n+#endif\n }\n \n void\n@@ -955,6 +989,21 @@ ice_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n \tqinfo->conf.tx_rs_thresh = txq->tx_rs_thresh;\n \tqinfo->conf.offloads = txq->offloads;\n \tqinfo->conf.tx_deferred_start = txq->tx_deferred_start;\n+\n+\tif (dev->tx_pkt_burst == ice_xmit_pkts_simple)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"Simple Tx\");\n+\telse if (dev->tx_pkt_burst == ice_xmit_pkts)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"Normal Tx\");\n+#ifdef RTE_ARCH_X86\n+\telse if (dev->tx_pkt_burst == ice_xmit_pkts_vec_avx2)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"AVX2 Vector Tx\");\n+\telse if (dev->tx_pkt_burst == ice_xmit_pkts_vec)\n+\t\tsnprintf(qinfo->burst_info, sizeof(qinfo->burst_info),\n+\t\t\t \"Vector Tx\");\n+#endif\n }\n \n uint32_t\n",
    "prefixes": [
        "RFC",
        "v1",
        "3/3"
    ]
}