Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/105090/?format=api
http://patches.dpdk.org/api/patches/105090/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211213081732.2096334-8-tduszynski@marvell.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": "<20211213081732.2096334-8-tduszynski@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211213081732.2096334-8-tduszynski@marvell.com", "date": "2021-12-13T08:17:29", "name": "[v3,07/10] raw/cnxk_gpio: support dequeuing buffers", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "c59ec3f78f133daadb37b977380d4a49cd2b4e9b", "submitter": { "id": 2215, "url": "http://patches.dpdk.org/api/people/2215/?format=api", "name": "Tomasz Duszynski", "email": "tduszynski@marvell.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211213081732.2096334-8-tduszynski@marvell.com/mbox/", "series": [ { "id": 20921, "url": "http://patches.dpdk.org/api/series/20921/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=20921", "date": "2021-12-13T08:17:22", "name": "Add cnxk_gpio PMD", "version": 3, "mbox": "http://patches.dpdk.org/series/20921/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/105090/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/105090/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 A5BDFA00BE;\n\tMon, 13 Dec 2021 09:19:12 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2847F41174;\n\tMon, 13 Dec 2021 09:18:34 +0100 (CET)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 28ABD41186\n for <dev@dpdk.org>; Mon, 13 Dec 2021 09:18:32 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 1BD7ivXY027548;\n Mon, 13 Dec 2021 00:18:31 -0800", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3cx21kg3b8-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 13 Dec 2021 00:18:31 -0800", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Mon, 13 Dec 2021 00:18:30 -0800", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Mon, 13 Dec 2021 00:18:30 -0800", "from localhost.localdomain (unknown [10.28.34.39])\n by maili.marvell.com (Postfix) with ESMTP id 9F8523F7045;\n Mon, 13 Dec 2021 00:18:28 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=lNB44mul1+4+xAAUmEjQYqJDBZzEo6G4GAsbV3WOtPw=;\n b=Ey4CrV5uaUBaAeQrOokzXW+8xJbsOq4ZYOLqlUCKr3/a4Fy/g3kVi6EW0iAvxpLvVJu8\n 0H6LaRjmYiD+6slitg3Wlt+6nmvujCxrfSeNOcGt9rGtBOu3nPXUueji/PSeUL0OKBlh\n 7+4zdA2aD5WiOjsraOzEl0Y9q4JANFfzcqJjmGSQYWSRvSJ7qkiXLEl4s2ZHZhyrgAvf\n /XfPY0LKMXrIbpK87fjOX47zLZhqk6DSWfL2imme0C3tc4NBK0WvVVRb/8fxfUwXItdQ\n lmahfeP3cDiErpYdYXzsQPtCYeWiRrVXo6acZHnEo9kKeZRBp+ipagGAvCycgevPuU4w +g==", "From": "Tomasz Duszynski <tduszynski@marvell.com>", "To": "<dev@dpdk.org>", "CC": "<jerinj@marvell.com>, <stephen@networkplumber.org>, Tomasz Duszynski\n <tduszynski@marvell.com>", "Subject": "[PATCH v3 07/10] raw/cnxk_gpio: support dequeuing buffers", "Date": "Mon, 13 Dec 2021 09:17:29 +0100", "Message-ID": "<20211213081732.2096334-8-tduszynski@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20211213081732.2096334-1-tduszynski@marvell.com>", "References": "<20211128154442.4029049-1-tduszynski@marvell.com>\n <20211213081732.2096334-1-tduszynski@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "FbnfdwoSR3MvsmJFh_q_s3236WbbFoeU", "X-Proofpoint-ORIG-GUID": "FbnfdwoSR3MvsmJFh_q_s3236WbbFoeU", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513\n definitions=2021-12-13_03,2021-12-10_01,2021-12-02_01", "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" }, "content": "Add support for dequeuing buffers.\n\nSigned-off-by: Tomasz Duszynski <tduszynski@marvell.com>\n---\n drivers/raw/cnxk_gpio/cnxk_gpio.c | 26 ++++++++++++++++++++++++++\n 1 file changed, 26 insertions(+)", "diff": "diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.c b/drivers/raw/cnxk_gpio/cnxk_gpio.c\nindex 9477e7293a..570d9abb17 100644\n--- a/drivers/raw/cnxk_gpio/cnxk_gpio.c\n+++ b/drivers/raw/cnxk_gpio/cnxk_gpio.c\n@@ -307,8 +307,34 @@ cnxk_gpio_enqueue_bufs(struct rte_rawdev *dev, struct rte_rawdev_buf **buffers,\n \treturn 1;\n }\n \n+static int\n+cnxk_gpio_dequeue_bufs(struct rte_rawdev *dev, struct rte_rawdev_buf **buffers,\n+\t\t unsigned int count, rte_rawdev_obj_t context)\n+{\n+\tstruct cnxk_gpiochip *gpiochip = dev->dev_private;\n+\tunsigned int queue = (size_t)context;\n+\tstruct cnxk_gpio *gpio;\n+\n+\tif (count == 0)\n+\t\treturn 0;\n+\n+\tgpio = cnxk_gpio_lookup(gpiochip, queue);\n+\tif (!gpio)\n+\t\treturn -ENODEV;\n+\n+\tif (gpio->rsp) {\n+\t\tbuffers[0]->buf_addr = gpio->rsp;\n+\t\tgpio->rsp = NULL;\n+\n+\t\treturn 1;\n+\t}\n+\n+\treturn 0;\n+}\n+\n static const struct rte_rawdev_ops cnxk_gpio_rawdev_ops = {\n \t.enqueue_bufs = cnxk_gpio_enqueue_bufs,\n+\t.dequeue_bufs = cnxk_gpio_dequeue_bufs,\n \t.queue_def_conf = cnxk_gpio_queue_def_conf,\n \t.queue_count = cnxk_gpio_queue_count,\n \t.queue_setup = cnxk_gpio_queue_setup,\n", "prefixes": [ "v3", "07/10" ] }{ "id": 105090, "url": "