get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 73384,
    "url": "https://patches.dpdk.org/api/patches/73384/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200707092244.12791-5-hemant.agrawal@nxp.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": "<20200707092244.12791-5-hemant.agrawal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200707092244.12791-5-hemant.agrawal@nxp.com",
    "date": "2020-07-07T09:22:19",
    "name": "[v2,04/29] bus/fslmc: combine thread specific variables",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "be43b146dc9367a413caa6e3f65f12502fc6efe7",
    "submitter": {
        "id": 477,
        "url": "https://patches.dpdk.org/api/people/477/?format=api",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.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/20200707092244.12791-5-hemant.agrawal@nxp.com/mbox/",
    "series": [
        {
            "id": 10842,
            "url": "https://patches.dpdk.org/api/series/10842/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10842",
            "date": "2020-07-07T09:22:15",
            "name": "NXP DPAAx enhancements",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/10842/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73384/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73384/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 F34FDA00BE;\n\tTue,  7 Jul 2020 11:27:38 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 23E811DCD9;\n\tTue,  7 Jul 2020 11:27:05 +0200 (CEST)",
            "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by dpdk.org (Postfix) with ESMTP id EBD031DC0A\n for <dev@dpdk.org>; Tue,  7 Jul 2020 11:26:59 +0200 (CEST)",
            "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CDF3D2008EB;\n Tue,  7 Jul 2020 11:26:59 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E7EAA20060D;\n Tue,  7 Jul 2020 11:26:57 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n [10.232.133.63])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 4CB15402A8;\n Tue,  7 Jul 2020 17:26:55 +0800 (SGT)"
        ],
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com,\n\tGagandeep Singh <g.singh@nxp.com>",
        "Date": "Tue,  7 Jul 2020 14:52:19 +0530",
        "Message-Id": "<20200707092244.12791-5-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "References": "<20200527132326.1382-1-hemant.agrawal@nxp.com>\n <20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH v2 04/29] bus/fslmc: combine thread specific\n\tvariables",
        "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: Gagandeep Singh <g.singh@nxp.com>\n\nThis is to reduce the thread local storage\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\n---\n drivers/bus/fslmc/fslmc_bus.c               |  2 --\n drivers/bus/fslmc/portal/dpaa2_hw_dpio.h    |  7 +++++++\n drivers/bus/fslmc/portal/dpaa2_hw_pvt.h     |  8 ++++++++\n drivers/bus/fslmc/rte_bus_fslmc_version.map |  1 -\n drivers/bus/fslmc/rte_fslmc.h               | 18 ------------------\n 5 files changed, 15 insertions(+), 21 deletions(-)",
    "diff": "diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c\nindex 25d364e81..beb3dd008 100644\n--- a/drivers/bus/fslmc/fslmc_bus.c\n+++ b/drivers/bus/fslmc/fslmc_bus.c\n@@ -35,8 +35,6 @@ rte_fslmc_get_device_count(enum rte_dpaa2_dev_type device_type)\n \treturn rte_fslmc_bus.device_count[device_type];\n }\n \n-RTE_DEFINE_PER_LCORE(struct dpaa2_portal_dqrr, dpaa2_held_bufs);\n-\n static void\n cleanup_fslmc_device_list(void)\n {\ndiff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h\nindex 7c5966241..f6436f2e5 100644\n--- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h\n+++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h\n@@ -28,6 +28,13 @@ RTE_DECLARE_PER_LCORE(struct dpaa2_io_portal_t, _dpaa2_io);\n #define DPAA2_PER_LCORE_ETHRX_DPIO RTE_PER_LCORE(_dpaa2_io).ethrx_dpio_dev\n #define DPAA2_PER_LCORE_ETHRX_PORTAL DPAA2_PER_LCORE_ETHRX_DPIO->sw_portal\n \n+#define DPAA2_PER_LCORE_DQRR_SIZE \\\n+\tRTE_PER_LCORE(_dpaa2_io).dpio_dev->dpaa2_held_bufs.dqrr_size\n+#define DPAA2_PER_LCORE_DQRR_HELD \\\n+\tRTE_PER_LCORE(_dpaa2_io).dpio_dev->dpaa2_held_bufs.dqrr_held\n+#define DPAA2_PER_LCORE_DQRR_MBUF(i) \\\n+\tRTE_PER_LCORE(_dpaa2_io).dpio_dev->dpaa2_held_bufs.mbuf[i]\n+\n /* Variable to store DPAA2 DQRR size */\n extern uint8_t dpaa2_dqrr_size;\n /* Variable to store DPAA2 EQCR size */\ndiff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h\nindex f1c70251a..be48462dd 100644\n--- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h\n+++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h\n@@ -87,6 +87,13 @@ struct eqresp_metadata {\n \tstruct rte_mempool *mp;\n };\n \n+#define DPAA2_PORTAL_DEQUEUE_DEPTH\t32\n+struct dpaa2_portal_dqrr {\n+\tstruct rte_mbuf *mbuf[DPAA2_PORTAL_DEQUEUE_DEPTH];\n+\tuint64_t dqrr_held;\n+\tuint8_t dqrr_size;\n+};\n+\n struct dpaa2_dpio_dev {\n \tTAILQ_ENTRY(dpaa2_dpio_dev) next;\n \t\t/**< Pointer to Next device instance */\n@@ -112,6 +119,7 @@ struct dpaa2_dpio_dev {\n \tstruct rte_intr_handle intr_handle; /* Interrupt related info */\n \tint32_t\tepoll_fd; /**< File descriptor created for interrupt polling */\n \tint32_t hw_id; /**< An unique ID of this DPIO device instance */\n+\tstruct dpaa2_portal_dqrr dpaa2_held_bufs;\n };\n \n struct dpaa2_dpbp_dev {\ndiff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map\nindex 69e7dc6ad..2a79f4518 100644\n--- a/drivers/bus/fslmc/rte_bus_fslmc_version.map\n+++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map\n@@ -57,7 +57,6 @@ INTERNAL {\n \tmc_get_version;\n \tmc_send_command;\n \tper_lcore__dpaa2_io;\n-\tper_lcore_dpaa2_held_bufs;\n \tqbman_check_command_complete;\n \tqbman_check_new_result;\n \tqbman_eq_desc_clear;\ndiff --git a/drivers/bus/fslmc/rte_fslmc.h b/drivers/bus/fslmc/rte_fslmc.h\nindex 5078b48ee..80873fffc 100644\n--- a/drivers/bus/fslmc/rte_fslmc.h\n+++ b/drivers/bus/fslmc/rte_fslmc.h\n@@ -137,24 +137,6 @@ struct rte_fslmc_bus {\n \t\t\t\t/**< Count of all devices scanned */\n };\n \n-#define DPAA2_PORTAL_DEQUEUE_DEPTH\t32\n-\n-/* Create storage for dqrr entries per lcore */\n-struct dpaa2_portal_dqrr {\n-\tstruct rte_mbuf *mbuf[DPAA2_PORTAL_DEQUEUE_DEPTH];\n-\tuint64_t dqrr_held;\n-\tuint8_t dqrr_size;\n-};\n-\n-RTE_DECLARE_PER_LCORE(struct dpaa2_portal_dqrr, dpaa2_held_bufs);\n-\n-#define DPAA2_PER_LCORE_DQRR_SIZE \\\n-\tRTE_PER_LCORE(dpaa2_held_bufs).dqrr_size\n-#define DPAA2_PER_LCORE_DQRR_HELD \\\n-\tRTE_PER_LCORE(dpaa2_held_bufs).dqrr_held\n-#define DPAA2_PER_LCORE_DQRR_MBUF(i) \\\n-\tRTE_PER_LCORE(dpaa2_held_bufs).mbuf[i]\n-\n /**\n  * Register a DPAA2 driver.\n  *\n",
    "prefixes": [
        "v2",
        "04/29"
    ]
}