Show a patch.

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

{
    "id": 74532,
    "url": "https://patches.dpdk.org/api/patches/74532/",
    "web_url": "https://patches.dpdk.org/patch/74532/",
    "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": "<20200721195143.18023-1-maox.jiang@intel.com>",
    "date": "2020-07-21T19:51:43",
    "name": "net/i40e: fix fdir allocating msix resource error",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2c6437b262c821b1b59c09be5df7caea51523302",
    "submitter": {
        "id": 1630,
        "url": "https://patches.dpdk.org/api/people/1630/",
        "name": "Jiang Mao",
        "email": "maox.jiang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74532/mbox/",
    "series": [
        {
            "id": 11194,
            "url": "https://patches.dpdk.org/api/series/11194/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11194",
            "date": "2020-07-21T19:51:43",
            "name": "net/i40e: fix fdir allocating msix resource error",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11194/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74532/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74532/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9688\"; a=\"234941658\"",
            "E=Sophos;i=\"5.75,378,1589266800\"; d=\"scan'208\";a=\"234941658\"",
            "E=Sophos;i=\"5.75,378,1589266800\"; d=\"scan'208\";a=\"301542519\""
        ],
        "IronPort-SDR": [
            "\n gI3usOnSjwUsCG0+jrOUEKTw5bVuSPNmbMiWUVwA5KnRxMf5DqyJUgrFKXYiBKZlk4ZbZu2j0W\n r2nZlBfJ5B8A==",
            "\n z9nvaIiLBfkZdpU5H56WbM1TDHEhx9BWd0zPX8WIrbSg+OW+lrNTCHsIiOWkr9rKkfDZTLg0gg\n y7DvhEmsyFQw=="
        ],
        "X-Amp-File-Uploaded": "False",
        "Precedence": "list",
        "X-Mailman-Version": "2.1.15",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<20200708195239.4543-1-maox.jiang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH] net/i40e: fix fdir allocating msix resource error",
        "Sender": "\"dev\" <dev-bounces@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 9F8ADA0526;\n\tTue, 21 Jul 2020 10:08:17 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 653D11C00D;\n\tTue, 21 Jul 2020 10:08:17 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by dpdk.org (Postfix) with ESMTP id 38E6F1BFFD;\n Tue, 21 Jul 2020 10:08:15 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Jul 2020 01:08:14 -0700",
            "from dut85.sh.intel.com ([10.240.183.157])\n by orsmga002.jf.intel.com with ESMTP; 21 Jul 2020 01:08:12 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Mailer": "git-send-email 2.17.1",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-ExtLoop1": "1",
        "Date": "Wed, 22 Jul 2020 03:51:43 +0800",
        "To": "qi.z.zhang@intel.com",
        "From": "Jiang Mao <maox.jiang@intel.com>",
        "In-Reply-To": "<20200708195239.4543-1-maox.jiang@intel.com>",
        "Cc": "dev@dpdk.org,\n\tstable@dpdk.org,\n\tJiang Mao <maox.jiang@intel.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Message-Id": "<20200721195143.18023-1-maox.jiang@intel.com>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "Fdir allocating msix resource is not strictly necessary, if no\nresource left, jump the error.\n\nFixes: 4861cde461 (i40e: new poll mode driver)\nCc: stable@dpdk.org\n\nSigned-off-by: Jiang Mao <maox.jiang@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 10 +++++++---\n 1 file changed, 7 insertions(+), 3 deletions(-)\n---\nV2: Move type I40E_VSI_FDIR branch into !I40E_VSI_SRIOV branch.",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 777e14926f..a606409172 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -5721,10 +5721,14 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \t\tret = i40e_res_pool_alloc(&pf->msix_pool, 1);\n \t\tif (ret < 0) {\n \t\t\tPMD_DRV_LOG(ERR, \"VSI %d get heap failed %d\", vsi->seid, ret);\n-\t\t\tgoto fail_queue_alloc;\n+\t\t\tif (type != I40E_VSI_FDIR)\n+\t\t\t\tgoto fail_queue_alloc;\n+\t\t\tvsi->msix_intr = 0;\n+\t\t\tvsi->nb_msix = 0;\n+\t\t} else {\n+\t\t\tvsi->msix_intr = ret;\n+\t\t\tvsi->nb_msix = 1;\n \t\t}\n-\t\tvsi->msix_intr = ret;\n-\t\tvsi->nb_msix = 1;\n \t} else {\n \t\tvsi->msix_intr = 0;\n \t\tvsi->nb_msix = 0;\n",
    "prefixes": []
}