get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87482,
    "url": "https://patches.dpdk.org/api/patches/87482/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210128150021.784-1-jingjing.wu@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": "<20210128150021.784-1-jingjing.wu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210128150021.784-1-jingjing.wu@intel.com",
    "date": "2021-01-28T15:00:21",
    "name": "[v2] net/iavf: fix vector mapping with queue",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "56f1f18f92950d2e1593ba9b3bf74b84b1c8dca2",
    "submitter": {
        "id": 47,
        "url": "https://patches.dpdk.org/api/people/47/?format=api",
        "name": "Jingjing Wu",
        "email": "jingjing.wu@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210128150021.784-1-jingjing.wu@intel.com/mbox/",
    "series": [
        {
            "id": 15002,
            "url": "https://patches.dpdk.org/api/series/15002/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=15002",
            "date": "2021-01-28T15:00:21",
            "name": "[v2] net/iavf: fix vector mapping with queue",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/15002/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87482/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/87482/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 79525A09E4;\n\tThu, 28 Jan 2021 16:02:08 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D46D54067A;\n\tThu, 28 Jan 2021 16:02:07 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 57F3E40395;\n Thu, 28 Jan 2021 16:02:06 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Jan 2021 07:02:05 -0800",
            "from dpdk-wujingji.sh.intel.com ([10.67.119.101])\n by fmsmga008.fm.intel.com with ESMTP; 28 Jan 2021 07:02:04 -0800"
        ],
        "IronPort-SDR": [
            "\n eCHnefV69ZPAIuyeKXXEl8ANi6XSzk7h4K3cM/Ng7+eCGSmGJyhxSl7e+hwuY7GfV1r86ow6SQ\n mvca5haxV5dg==",
            "\n whdMjYVWG8RPvHT+9BGeh+wQ8Nh7KHiEF12DIWWCCbrTFqtoY0fZGW3WsCflpTwNGL24PfvjwX\n EJ9UtLZ84u5A=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9877\"; a=\"179463840\"",
            "E=Sophos;i=\"5.79,382,1602572400\"; d=\"scan'208\";a=\"179463840\"",
            "E=Sophos;i=\"5.79,382,1602572400\"; d=\"scan'208\";a=\"363784819\""
        ],
        "X-ExtLoop1": "1",
        "From": "Jingjing Wu <jingjing.wu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "jingjing.wu@intel.com,\n\tbeilei.xing@intel.com,\n\tstable@dpdk.org",
        "Date": "Thu, 28 Jan 2021 23:00:21 +0800",
        "Message-Id": "<20210128150021.784-1-jingjing.wu@intel.com>",
        "X-Mailer": "git-send-email 2.21.1",
        "In-Reply-To": "<20210128023724.39057-1-jingjing.wu@intel.com>",
        "References": "<20210128023724.39057-1-jingjing.wu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2] net/iavf: fix vector mapping with queue",
        "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": "Fix the vector mapping with queue by changing the recircle when\nexceeds RX_VEC_START + nb_msix;\n\nFixes: d6bde6b5eae9 (\"net/avf: enable Rx interrupt\")\n\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\n---\nv2:\n - fix compile warning.\n\n drivers/net/iavf/iavf_ethdev.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c\nindex cf6ea0b15..744904e6e 100644\n--- a/drivers/net/iavf/iavf_ethdev.c\n+++ b/drivers/net/iavf/iavf_ethdev.c\n@@ -612,15 +612,15 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev,\n \t\t\t/* If Rx interrupt is reuquired, and we can use\n \t\t\t * multi interrupts, then the vec is from 1\n \t\t\t */\n-\t\t\tvf->nb_msix = RTE_MIN(vf->vf_res->max_vectors,\n-\t\t\t\t\t      intr_handle->nb_efd);\n+\t\t\tvf->nb_msix = RTE_MIN(intr_handle->nb_efd,\n+\t\t\t\t (uint16_t)(vf->vf_res->max_vectors - 1));\n \t\t\tvf->msix_base = IAVF_RX_VEC_START;\n \t\t\tvec = IAVF_RX_VEC_START;\n \t\t\tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n \t\t\t\tqv_map[i].queue_id = i;\n \t\t\t\tqv_map[i].vector_id = vec;\n \t\t\t\tintr_handle->intr_vec[i] = vec++;\n-\t\t\t\tif (vec >= vf->nb_msix)\n+\t\t\t\tif (vec >= vf->nb_msix + IAVF_RX_VEC_START)\n \t\t\t\t\tvec = IAVF_RX_VEC_START;\n \t\t\t}\n \t\t\tvf->qv_map = qv_map;\n",
    "prefixes": [
        "v2"
    ]
}