get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 90217,
    "url": "https://patches.dpdk.org/api/patches/90217/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210331095254.2454439-7-qi.z.zhang@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": "<20210331095254.2454439-7-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210331095254.2454439-7-qi.z.zhang@intel.com",
    "date": "2021-03-31T09:52:52",
    "name": "[v6,6/8] net/ice: refine debug build option",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "603434d90206d7e5724a42375cea6caa6e2da27a",
    "submitter": {
        "id": 504,
        "url": "https://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210331095254.2454439-7-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 16008,
            "url": "https://patches.dpdk.org/api/series/16008/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=16008",
            "date": "2021-03-31T09:52:46",
            "name": "ether: refine debug build option",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/16008/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/90217/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/90217/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3965EA034F;\n\tWed, 31 Mar 2021 11:49:52 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 23771140E97;\n\tWed, 31 Mar 2021 11:49:33 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id B00D3140E5E\n for <dev@dpdk.org>; Wed, 31 Mar 2021 11:49:27 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 31 Mar 2021 02:49:27 -0700",
            "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga002.fm.intel.com with ESMTP; 31 Mar 2021 02:49:24 -0700"
        ],
        "IronPort-SDR": [
            "\n sefvnIvxnNNt5MFB3StBiaexYDjYluMdqOE6cEkE013f7S/cSiO+Ht9WSv2fNVLRcYS4frlQtA\n gYgZD6VU5CZQ==",
            "\n Q9Y/8LBB17sch5VcMde2Td6FATDOjnrT24WDM4EstgxupA/ld3T509iIputU1L43rmnTAR2DIB\n cO9t96le0boA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9939\"; a=\"191448575\"",
            "E=Sophos;i=\"5.81,293,1610438400\"; d=\"scan'208\";a=\"191448575\"",
            "E=Sophos;i=\"5.81,293,1610438400\"; d=\"scan'208\";a=\"445603481\""
        ],
        "X-ExtLoop1": "1",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "ferruh.yigit@intel.com",
        "Cc": "dev@dpdk.org, thomas@monjalon.net, bruce.richardson@intel.com,\n xiao.w.wang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com,\n jia.guo@intel.com, qiming.yang@intel.com, haiyue.wang@intel.com,\n Qi Zhang <qi.z.zhang@intel.com>",
        "Date": "Wed, 31 Mar 2021 17:52:52 +0800",
        "Message-Id": "<20210331095254.2454439-7-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20210331095254.2454439-1-qi.z.zhang@intel.com>",
        "References": "<20210310121626.2019863-1-qi.z.zhang@intel.com>\n <20210331095254.2454439-1-qi.z.zhang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v6 6/8] net/ice: refine debug build option",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "1. replace RTE_LIBRTE_ICE_DEBUG_RX with RTE_ETHDEV_DEBUG_RX.\n2. replace RTE_LIBRTE_ICE_DEBUG_TX whth RTE_ETHDEV_DEBUG_TX.\n3. merge RTE_LIBRTE_ICE_DEBUG_TX_FREE and RTE_LIBRTE_ETHDEV_DEBUG\n   into RTE_LIBRTE_DEBUG_TX\n\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/ice_ethdev.c |  7 ++-----\n drivers/net/ice/ice_logs.h   | 13 ++-----------\n drivers/net/ice/ice_rxtx.c   | 20 ++++++++++----------\n 3 files changed, 14 insertions(+), 26 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c\nindex f0dc543575..5082c227bf 100644\n--- a/drivers/net/ice/ice_ethdev.c\n+++ b/drivers/net/ice/ice_ethdev.c\n@@ -5360,12 +5360,9 @@ RTE_PMD_REGISTER_PARAM_STRING(net_ice,\n \n RTE_LOG_REGISTER(ice_logtype_init, pmd.net.ice.init, NOTICE);\n RTE_LOG_REGISTER(ice_logtype_driver, pmd.net.ice.driver, NOTICE);\n-#ifdef RTE_LIBRTE_ICE_DEBUG_RX\n+#ifdef RTE_ETHDEV_DEBUG_RX\n RTE_LOG_REGISTER(ice_logtype_rx, pmd.net.ice.rx, DEBUG);\n #endif\n-#ifdef RTE_LIBRTE_ICE_DEBUG_TX\n+#ifdef RTE_ETHDEV_DEBUG_TX\n RTE_LOG_REGISTER(ice_logtype_tx, pmd.net.ice.tx, DEBUG);\n #endif\n-#ifdef RTE_LIBRTE_ICE_DEBUG_TX_FREE\n-RTE_LOG_REGISTER(ice_logtype_tx_free, pmd.net.ice.tx_free, DEBUG);\n-#endif\ndiff --git a/drivers/net/ice/ice_logs.h b/drivers/net/ice/ice_logs.h\nindex aab7da5f7b..e79980fb63 100644\n--- a/drivers/net/ice/ice_logs.h\n+++ b/drivers/net/ice/ice_logs.h\n@@ -14,7 +14,7 @@ extern int ice_logtype_driver;\n \n #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, \" >>\")\n \n-#ifdef RTE_LIBRTE_ICE_DEBUG_RX\n+#ifdef RTE_ETHDEV_DEBUG_RX\n extern int ice_logtype_rx;\n #define PMD_RX_LOG(level, fmt, args...)\t\t\t\\\n \trte_log(RTE_LOG_ ## level, ice_logtype_rx,\t\\\n@@ -23,7 +23,7 @@ extern int ice_logtype_rx;\n #define PMD_RX_LOG(level, fmt, args...) do { } while (0)\n #endif\n \n-#ifdef RTE_LIBRTE_ICE_DEBUG_TX\n+#ifdef RTE_ETHDEV_DEBUG_TX\n extern int ice_logtype_tx;\n #define PMD_TX_LOG(level, fmt, args...)\t\t\t\\\n \trte_log(RTE_LOG_ ## level, ice_logtype_tx,\t\\\n@@ -32,15 +32,6 @@ extern int ice_logtype_tx;\n #define PMD_TX_LOG(level, fmt, args...) do { } while (0)\n #endif\n \n-#ifdef RTE_LIBRTE_ICE_DEBUG_TX_FREE\n-extern int ice_logtype_tx_free;\n-#define PMD_TX_FREE_LOG(level, fmt, args...)\t\t\t\\\n-\trte_log(RTE_LOG_ ## level, ice_logtype_tx_free,\t\\\n-\t\t\"%s(): \" fmt \"\\n\", __func__, ## args)\n-#else\n-#define PMD_TX_FREE_LOG(level, fmt, args...) do { } while (0)\n-#endif\n-\n #define PMD_DRV_LOG_RAW(level, fmt, args...) \\\n \trte_log(RTE_LOG_ ## level, ice_logtype_driver, \"%s(): \" fmt, \\\n \t\t__func__, ## args)\ndiff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c\nindex 530c206f4f..0827db9c9e 100644\n--- a/drivers/net/ice/ice_rxtx.c\n+++ b/drivers/net/ice/ice_rxtx.c\n@@ -2436,11 +2436,11 @@ ice_xmit_cleanup(struct ice_tx_queue *txq)\n \tdesc_to_clean_to = sw_ring[desc_to_clean_to].last_id;\n \tif (!(txd[desc_to_clean_to].cmd_type_offset_bsz &\n \t    rte_cpu_to_le_64(ICE_TX_DESC_DTYPE_DESC_DONE))) {\n-\t\tPMD_TX_FREE_LOG(DEBUG, \"TX descriptor %4u is not done \"\n-\t\t\t\t\"(port=%d queue=%d) value=0x%\"PRIx64\"\\n\",\n-\t\t\t\tdesc_to_clean_to,\n-\t\t\t\ttxq->port_id, txq->queue_id,\n-\t\t\t\ttxd[desc_to_clean_to].cmd_type_offset_bsz);\n+\t\tPMD_TX_LOG(DEBUG, \"TX descriptor %4u is not done \"\n+\t\t\t   \"(port=%d queue=%d) value=0x%\"PRIx64\"\\n\",\n+\t\t\t   desc_to_clean_to,\n+\t\t\t   txq->port_id, txq->queue_id,\n+\t\t\t   txd[desc_to_clean_to].cmd_type_offset_bsz);\n \t\t/* Failed to clean any descriptors */\n \t\treturn -1;\n \t}\n@@ -2731,10 +2731,10 @@ ice_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)\n \n \t\t/* set RS bit on the last descriptor of one packet */\n \t\tif (txq->nb_tx_used >= txq->tx_rs_thresh) {\n-\t\t\tPMD_TX_FREE_LOG(DEBUG,\n-\t\t\t\t\t\"Setting RS bit on TXD id=\"\n-\t\t\t\t\t\"%4u (port=%d queue=%d)\",\n-\t\t\t\t\ttx_last, txq->port_id, txq->queue_id);\n+\t\t\tPMD_TX_LOG(DEBUG,\n+\t\t\t\t   \"Setting RS bit on TXD id=\"\n+\t\t\t\t   \"%4u (port=%d queue=%d)\",\n+\t\t\t\t   tx_last, txq->port_id, txq->queue_id);\n \n \t\t\ttd_cmd |= ICE_TX_DESC_CMD_RS;\n \n@@ -3243,7 +3243,7 @@ ice_prep_pkts(__rte_unused void *tx_queue, struct rte_mbuf **tx_pkts,\n \t\t\treturn i;\n \t\t}\n \n-#ifdef RTE_LIBRTE_ETHDEV_DEBUG\n+#ifdef RTE_ETHDEV_DEBUG_TX\n \t\tret = rte_validate_tx_offload(m);\n \t\tif (ret != 0) {\n \t\t\trte_errno = -ret;\n",
    "prefixes": [
        "v6",
        "6/8"
    ]
}