Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/8311/?format=api
http://patches.dpdk.org/api/patches/8311/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1446182873-28814-3-git-send-email-cunming.liang@intel.com/", "project": { "id": 1, "url": "http://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": "<1446182873-28814-3-git-send-email-cunming.liang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1446182873-28814-3-git-send-email-cunming.liang@intel.com", "date": "2015-10-30T05:27:44", "name": "[dpdk-dev,v2,02/11] ixgbe: reserve intr vector zero for misc cause", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "dc3e77204640d27385a4c393bc7821437b2d974b", "submitter": { "id": 46, "url": "http://patches.dpdk.org/api/people/46/?format=api", "name": "Cunming Liang", "email": "cunming.liang@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1446182873-28814-3-git-send-email-cunming.liang@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/8311/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/8311/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id A987B8E6C;\n\tFri, 30 Oct 2015 06:28:15 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id BD8FC8DA8\n\tfor <dev@dpdk.org>; Fri, 30 Oct 2015 06:28:12 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga101.fm.intel.com with ESMTP; 29 Oct 2015 22:28:07 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga003.jf.intel.com with ESMTP; 29 Oct 2015 22:28:06 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t9U5S4nj023266;\n\tFri, 30 Oct 2015 13:28:04 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t9U5S1vD028877; Fri, 30 Oct 2015 13:28:03 +0800", "(from cliang18@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t9U5S1k2028873; \n\tFri, 30 Oct 2015 13:28:01 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.20,217,1444719600\"; d=\"scan'208\";a=\"674833120\"", "From": "Cunming Liang <cunming.liang@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 30 Oct 2015 13:27:44 +0800", "Message-Id": "<1446182873-28814-3-git-send-email-cunming.liang@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1446182873-28814-1-git-send-email-cunming.liang@intel.com>", "References": "<1443072831-19065-1-git-send-email-cunming.liang@intel.com>\n\t<1446182873-28814-1-git-send-email-cunming.liang@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 02/11] ixgbe: reserve intr vector zero for\n\tmisc cause", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START.\nIt doesn't impact the UIO cases.\n\nSigned-off-by: Cunming Liang <cunming.liang@intel.com>\n---\n drivers/net/ixgbe/ixgbe_ethdev.c | 14 +++++++++-----\n 1 file changed, 9 insertions(+), 5 deletions(-)", "diff": "diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex 4373661..4e1467c 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -4275,7 +4275,8 @@ ixgbe_configure_msix(struct rte_eth_dev *dev)\n \tstruct rte_intr_handle *intr_handle = &dev->pci_dev->intr_handle;\n \tstruct ixgbe_hw *hw =\n \t\tIXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n-\tuint32_t queue_id, vec = 0;\n+\tuint32_t queue_id, base = MISC_VEC_ID;\n+\tuint32_t vec = MISC_VEC_ID;\n \tuint32_t mask;\n \tuint32_t gpie;\n \n@@ -4285,6 +4286,9 @@ ixgbe_configure_msix(struct rte_eth_dev *dev)\n \tif (!rte_intr_dp_is_en(intr_handle))\n \t\treturn;\n \n+\tif (rte_intr_allow_others(intr_handle))\n+\t\tvec = base = RX_VEC_START;\n+\n \t/* setup GPIE for MSI-x mode */\n \tgpie = IXGBE_READ_REG(hw, IXGBE_GPIE);\n \tgpie |= IXGBE_GPIE_MSIX_MODE | IXGBE_GPIE_PBA_SUPPORT |\n@@ -4308,23 +4312,23 @@ ixgbe_configure_msix(struct rte_eth_dev *dev)\n \t\t/* by default, 1:1 mapping */\n \t\tixgbe_set_ivar_map(hw, 0, queue_id, vec);\n \t\tintr_handle->intr_vec[queue_id] = vec;\n-\t\tif (vec < intr_handle->nb_efd - 1)\n+\t\tif (vec < base + intr_handle->nb_efd - 1)\n \t\t\tvec++;\n \t}\n \n \tswitch (hw->mac.type) {\n \tcase ixgbe_mac_82598EB:\n \t\tixgbe_set_ivar_map(hw, -1, IXGBE_IVAR_OTHER_CAUSES_INDEX,\n-\t\t\t\t intr_handle->max_intr - 1);\n+\t\t\t\t MISC_VEC_ID);\n \t\tbreak;\n \tcase ixgbe_mac_82599EB:\n \tcase ixgbe_mac_X540:\n-\t\tixgbe_set_ivar_map(hw, -1, 1, intr_handle->max_intr - 1);\n+\t\tixgbe_set_ivar_map(hw, -1, 1, MISC_VEC_ID);\n \t\tbreak;\n \tdefault:\n \t\tbreak;\n \t}\n-\tIXGBE_WRITE_REG(hw, IXGBE_EITR(queue_id),\n+\tIXGBE_WRITE_REG(hw, IXGBE_EITR(MISC_VEC_ID),\n \t\t\tIXGBE_MIN_INTER_INTERRUPT_INTERVAL_DEFAULT & 0xFFF);\n \n \t/* set up to autoclear timer, and the vectors */\n", "prefixes": [ "dpdk-dev", "v2", "02/11" ] }{ "id": 8311, "url": "