Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/80492/?format=api
http://patches.dpdk.org/api/patches/80492/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201013115055.34295-4-huwei013@chinasoftinc.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": "<20201013115055.34295-4-huwei013@chinasoftinc.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201013115055.34295-4-huwei013@chinasoftinc.com", "date": "2020-10-13T11:50:55", "name": "[v5,3/3] ethdev: check queue id in Rx interrupt control routine", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "06714704fc97a6f33f5c4c93b5650022f4ef7c71", "submitter": { "id": 1537, "url": "http://patches.dpdk.org/api/people/1537/?format=api", "name": "Wei Hu (Xavier)", "email": "huwei013@chinasoftinc.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201013115055.34295-4-huwei013@chinasoftinc.com/mbox/", "series": [ { "id": 12911, "url": "http://patches.dpdk.org/api/series/12911/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12911", "date": "2020-10-13T11:50:52", "name": "check queue id in queue-related APIs", "version": 5, "mbox": "http://patches.dpdk.org/series/12911/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/80492/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/80492/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 7E75CA04B7;\n\tTue, 13 Oct 2020 13:52:15 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 84A851DAF3;\n\tTue, 13 Oct 2020 13:51:21 +0200 (CEST)", "from incedge.chinasoftinc.com (unknown [114.113.233.8])\n by dpdk.org (Postfix) with ESMTP id 978621DAF3\n for <dev@dpdk.org>; Tue, 13 Oct 2020 13:51:18 +0200 (CEST)", "from mail.chinasoftinc.com (inccas001.ito.icss [10.168.0.51]) by\n incedge.chinasoftinc.com with ESMTP id vwOgV0MP9UsQFgxm (version=TLSv1\n cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO);\n Tue, 13 Oct 2020 19:51:16 +0800 (CST)", "from localhost.localdomain (65.49.108.226) by INCCAS001.ito.icss\n (10.168.0.60) with Microsoft SMTP Server id 14.3.487.0; Tue, 13 Oct 2020\n 19:51:15 +0800" ], "X-ASG-Debug-ID": "1602589876-149d114cae2078e0001-TfluYd", "X-Barracuda-Envelope-From": "huwei013@chinasoftinc.com", "X-Barracuda-RBL-Trusted-Forwarder": [ "10.168.0.51", "10.168.0.60" ], "X-ASG-Whitelist": "Client", "From": "\"Wei Hu (Xavier)\" <huwei013@chinasoftinc.com>", "To": "<dev@dpdk.org>, <stephen@networkplumber.org>, <ferruh.yigit@intel.com>,\n <kalesh-anakkur.purayil@broadcom.com>, <andrew.rybchenko@oktetlabs.ru>", "CC": "<xavier.huwei@huawei.com>", "Date": "Tue, 13 Oct 2020 19:50:55 +0800", "X-ASG-Orig-Subj": "[PATCH v5 3/3] ethdev: check queue id in Rx interrupt control\n routine", "Message-ID": "<20201013115055.34295-4-huwei013@chinasoftinc.com>", "X-Mailer": "git-send-email 2.9.5", "In-Reply-To": "<20201013115055.34295-1-huwei013@chinasoftinc.com>", "References": "<20201010071212.24086-1-huwei013@chinasoftinc.com>\n <20201013115055.34295-1-huwei013@chinasoftinc.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[65.49.108.226]", "X-Barracuda-Connect": "inccas001.ito.icss[10.168.0.51]", "X-Barracuda-Start-Time": "1602589876", "X-Barracuda-Encrypted": "ECDHE-RSA-AES256-SHA", "X-Barracuda-URL": "https://incspam.chinasofti.com:443/cgi-mod/mark.cgi", "X-Virus-Scanned": "by bsmtpd at chinasoftinc.com", "X-Barracuda-Scan-Msg-Size": "1697", "Subject": "[dpdk-dev] [PATCH v5 3/3] ethdev: check queue id in Rx interrupt\n\tcontrol routine", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "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": "From: \"Wei Hu (Xavier)\" <xavier.huwei@huawei.com>\n\nThis patch add queue ID checks to Rx interrupt control routines.\n\nSigned-off-by: Chengchang Tang <tangchengchang@huawei.com>\nSigned-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nAcked-by: Stephen Hemminger <stephen@networkplumber.org>\nReviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>\n---\n lib/librte_ethdev/rte_ethdev.c | 10 ++++++++++\n 1 file changed, 10 insertions(+)", "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c\nindex 4acf858..5b7979a 100644\n--- a/lib/librte_ethdev/rte_ethdev.c\n+++ b/lib/librte_ethdev/rte_ethdev.c\n@@ -4508,11 +4508,16 @@ rte_eth_dev_rx_intr_enable(uint16_t port_id,\n \t\t\t uint16_t queue_id)\n {\n \tstruct rte_eth_dev *dev;\n+\tint ret;\n \n \tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n \n \tdev = &rte_eth_devices[port_id];\n \n+\tret = eth_dev_validate_rx_queue(dev, queue_id);\n+\tif (ret != 0)\n+\t\treturn ret;\n+\n \tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->rx_queue_intr_enable, -ENOTSUP);\n \treturn eth_err(port_id, (*dev->dev_ops->rx_queue_intr_enable)(dev,\n \t\t\t\t\t\t\t\tqueue_id));\n@@ -4523,11 +4528,16 @@ rte_eth_dev_rx_intr_disable(uint16_t port_id,\n \t\t\t uint16_t queue_id)\n {\n \tstruct rte_eth_dev *dev;\n+\tint ret;\n \n \tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n \n \tdev = &rte_eth_devices[port_id];\n \n+\tret = eth_dev_validate_rx_queue(dev, queue_id);\n+\tif (ret != 0)\n+\t\treturn ret;\n+\n \tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->rx_queue_intr_disable, -ENOTSUP);\n \treturn eth_err(port_id, (*dev->dev_ops->rx_queue_intr_disable)(dev,\n \t\t\t\t\t\t\t\tqueue_id));\n", "prefixes": [ "v5", "3/3" ] }{ "id": 80492, "url": "