Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/3755/?format=api
http://patches.dpdk.org/api/patches/3755/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1425012976-10173-2-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": "<1425012976-10173-2-git-send-email-cunming.liang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1425012976-10173-2-git-send-email-cunming.liang@intel.com", "date": "2015-02-27T04:56:09", "name": "[dpdk-dev,v6,1/8] eal: declare new interrupt api", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "4ecdd0c888e34535bd1e04979c8e79f302579389", "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/1425012976-10173-2-git-send-email-cunming.liang@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/3755/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/3755/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 5D7CB5A56;\n\tFri, 27 Feb 2015 05:56:47 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 9B58A5A54\n\tfor <dev@dpdk.org>; Fri, 27 Feb 2015 05:56:45 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga101.fm.intel.com with ESMTP; 26 Feb 2015 20:56:43 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga003.jf.intel.com with ESMTP; 26 Feb 2015 20:47:29 -0800", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t1R4ueMl008757;\n\tFri, 27 Feb 2015 12:56:40 +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 t1R4ucaP010226; Fri, 27 Feb 2015 12:56:40 +0800", "(from cliang18@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t1R4ucna010222; \n\tFri, 27 Feb 2015 12:56:38 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.09,657,1418112000\"; d=\"scan'208\";a=\"533565902\"", "From": "Cunming Liang <cunming.liang@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 27 Feb 2015 12:56:09 +0800", "Message-Id": "<1425012976-10173-2-git-send-email-cunming.liang@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1425012976-10173-1-git-send-email-cunming.liang@intel.com>", "References": "<1424710542-14637-1-git-send-email-danny.zhou@intel.com>\n\t<1425012976-10173-1-git-send-email-cunming.liang@intel.com>", "Subject": "[dpdk-dev] [PATCH v6 1/8] eal: declare new interrupt api", "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": "Add two API *rte_intr_rx_wait* and *rte_intr_rx_set* for RX interrupt.\nThey're only available in VFIO_MSIX.\n\nSigned-off-by: Cunming Liang <cunming.liang@intel.com>\n---\n lib/librte_eal/common/include/rte_interrupts.h | 38 ++++++++++++++++++++++++++\n 1 file changed, 38 insertions(+)", "diff": "diff --git a/lib/librte_eal/common/include/rte_interrupts.h b/lib/librte_eal/common/include/rte_interrupts.h\nindex 609c34b..6e31f1d 100644\n--- a/lib/librte_eal/common/include/rte_interrupts.h\n+++ b/lib/librte_eal/common/include/rte_interrupts.h\n@@ -45,6 +45,8 @@\n extern \"C\" {\n #endif\n \n+#include <stdint.h>\n+\n /** Interrupt handle */\n struct rte_intr_handle;\n \n@@ -54,6 +56,8 @@ typedef void (*rte_intr_callback_fn)(struct rte_intr_handle *intr_handle,\n \n #include <exec-env/rte_interrupts.h>\n \n+#define RTE_EPOLL_FD_ANY -1 /**< to hint using per thread epfd */\n+\n /**\n * It registers the callback for the specific interrupt. Multiple\n * callbacks cal be registered at the same time.\n@@ -113,6 +117,40 @@ int rte_intr_enable(struct rte_intr_handle *intr_handle);\n */\n int rte_intr_disable(struct rte_intr_handle *intr_handle);\n \n+/**\n+ * @param intr_handle\n+ * pointer to the interrupt handle.\n+ * @param fd\n+ * event fd the thread wait for.\n+ * @param vec\n+ * array for all the ready vectors.\n+ * @param num\n+ * the max number of vector array.\n+ * @return\n+ * - On success, returns the number of available vectors.\n+ * - On failure, a negative value.\n+ */\n+int\n+rte_intr_rx_wait(struct rte_intr_handle *intr_handle,\n+\t\t int fd, uint32_t *vec, uint16_t num);\n+\n+/**\n+ * @param intr_handle\n+ * pointer to the interrupt handle.\n+ * @param fd\n+ * event fd which the intr vector associated to.\n+ * @param op\n+ * operation type of {ADD, DEL}.\n+ * @param vec\n+ * vector number added to the event wait list.\n+ * @return\n+ * - On success, zero.\n+ * - On failure, a negative value.\n+ */\n+int\n+rte_intr_rx_set(struct rte_intr_handle *intr_handle,\n+\t\tint fd, int op, uint32_t vec);\n+\n #ifdef __cplusplus\n }\n #endif\n", "prefixes": [ "dpdk-dev", "v6", "1/8" ] }{ "id": 3755, "url": "