Show a patch.

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

{
    "id": 73386,
    "url": "https://patches.dpdk.org/api/patches/73386/",
    "web_url": "https://patches.dpdk.org/patch/73386/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200707092244.12791-7-hemant.agrawal@nxp.com>",
    "date": "2020-07-07T09:22:21",
    "name": "[v2,06/29] bus/fslmc: support handle portal alloc failure",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "34cc03e24d18c56a7825245b2710e3712c6936f1",
    "submitter": {
        "id": 477,
        "url": "https://patches.dpdk.org/api/people/477/",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73386/mbox/",
    "series": [
        {
            "id": 10842,
            "url": "https://patches.dpdk.org/api/series/10842/",
            "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/73386/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73386/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Message-Id": "<20200707092244.12791-7-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com, Nipun Gupta <nipun.gupta@nxp.com>,\n Hemant Agrawal <hemant.agrawal@nxp.com>",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C9D13A00BE;\n\tTue,  7 Jul 2020 11:27:59 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 25AB91DCFB;\n\tTue,  7 Jul 2020 11:27:08 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by dpdk.org (Postfix) with ESMTP id 47F751DC61\n for <dev@dpdk.org>; Tue,  7 Jul 2020 11:27:02 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 291151A0A4E;\n Tue,  7 Jul 2020 11:27:02 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 165221A0A56;\n Tue,  7 Jul 2020 11:27:00 +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 02275402C8;\n Tue,  7 Jul 2020 17:26:56 +0800 (SGT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 06/29] bus/fslmc: support handle portal alloc\n\tfailure",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "In-Reply-To": "<20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "Precedence": "list",
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "References": "<20200527132326.1382-1-hemant.agrawal@nxp.com>\n <20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Date": "Tue,  7 Jul 2020 14:52:21 +0530",
        "X-Mailman-Version": "2.1.15",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>"
    },
    "content": "Add the error handling on failure.\n\nSigned-off-by: Nipun Gupta <nipun.gupta@nxp.com>\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 9 ++++++---\n 1 file changed, 6 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c\nindex 47ae72749..5a12ff35d 100644\n--- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c\n+++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c\n@@ -284,8 +284,10 @@ static struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(void)\n \t\tif (dpio_dev && rte_atomic16_test_and_set(&dpio_dev->ref_count))\n \t\t\tbreak;\n \t}\n-\tif (!dpio_dev)\n+\tif (!dpio_dev) {\n+\t\tDPAA2_BUS_ERR(\"No software portal resource left\");\n \t\treturn NULL;\n+\t}\n \n \tDPAA2_BUS_DEBUG(\"New Portal %p (%d) affined thread - %lu\",\n \t\t\tdpio_dev, dpio_dev->index, syscall(SYS_gettid));\n@@ -293,6 +295,7 @@ static struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(void)\n \tret = dpaa2_configure_stashing(dpio_dev);\n \tif (ret) {\n \t\tDPAA2_BUS_ERR(\"dpaa2_configure_stashing failed\");\n+\t\trte_atomic16_clear(&dpio_dev->ref_count);\n \t\treturn NULL;\n \t}\n \n@@ -316,7 +319,7 @@ dpaa2_affine_qbman_swp(void)\n \tif (!RTE_PER_LCORE(_dpaa2_io).dpio_dev) {\n \t\tdpio_dev = dpaa2_get_qbman_swp();\n \t\tif (!dpio_dev) {\n-\t\t\tDPAA2_BUS_ERR(\"No software portal resource left\");\n+\t\t\tDPAA2_BUS_ERR(\"Error in software portal allocation\");\n \t\t\treturn -1;\n \t\t}\n \t\tRTE_PER_LCORE(_dpaa2_io).dpio_dev = dpio_dev;\n@@ -338,7 +341,7 @@ dpaa2_affine_qbman_ethrx_swp(void)\n \tif (!RTE_PER_LCORE(_dpaa2_io).ethrx_dpio_dev) {\n \t\tdpio_dev = dpaa2_get_qbman_swp();\n \t\tif (!dpio_dev) {\n-\t\t\tDPAA2_BUS_ERR(\"No software portal resource left\");\n+\t\t\tDPAA2_BUS_ERR(\"Error in software portal allocation\");\n \t\t\treturn -1;\n \t\t}\n \t\tRTE_PER_LCORE(_dpaa2_io).ethrx_dpio_dev = dpio_dev;\n",
    "prefixes": [
        "v2",
        "06/29"
    ]
}