Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130565/?format=api
http://patchwork.dpdk.org/api/patches/130565/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230821113549.3191921-3-david.marchand@redhat.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20230821113549.3191921-3-david.marchand@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230821113549.3191921-3-david.marchand@redhat.com", "date": "2023-08-21T11:35:35", "name": "[v2,02/15] bus/pci: add const to some experimental API", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "c30b8795d864fd3be992affd8339cb5d940b5135", "submitter": { "id": 1173, "url": "http://patchwork.dpdk.org/api/people/1173/?format=api", "name": "David Marchand", "email": "david.marchand@redhat.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230821113549.3191921-3-david.marchand@redhat.com/mbox/", "series": [ { "id": 29292, "url": "http://patchwork.dpdk.org/api/series/29292/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29292", "date": "2023-08-21T11:35:33", "name": "Cleanup PCI(e) drivers", "version": 2, "mbox": "http://patchwork.dpdk.org/series/29292/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/130565/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/130565/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 78C27430C1;\n\tMon, 21 Aug 2023 13:37:17 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5D54543272;\n\tMon, 21 Aug 2023 13:36:08 +0200 (CEST)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by mails.dpdk.org (Postfix) with ESMTP id 7419E43269\n for <dev@dpdk.org>; Mon, 21 Aug 2023 13:36:03 +0200 (CEST)", "from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-357-9mSzgj-5NlWEWew5nhgAeQ-1; Mon, 21 Aug 2023 07:36:01 -0400", "from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com\n [10.11.54.4])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4AF273810790;\n Mon, 21 Aug 2023 11:36:01 +0000 (UTC)", "from dmarchan.redhat.com (unknown [10.45.226.19])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 242312026D76;\n Mon, 21 Aug 2023 11:36:00 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1692617763;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=Jvqq1ZG3NPmZ1ptHMfhTtrcfc3h2CnoJKVQ0QFuehns=;\n b=OVTPOG+vaCOpKQ930FulPETVKbt2BNRETnco1VAGcuLWwk1ogJ1TwayZThbey6NjmJuTvg\n 6kbSx6ZUDKLYZveHLKplmM/H4KVxHMG0fl8rVJdSSNRyadj6TGg5mQe4djZa8Na3yTABU1\n F7tPHuBwZDe8BH+HBETNNViBu9jPKD8=", "X-MC-Unique": "9mSzgj-5NlWEWew5nhgAeQ-1", "From": "David Marchand <david.marchand@redhat.com>", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net, ferruh.yigit@amd.com, chenbo.xia@intel.com,\n nipun.gupta@amd.com, bruce.richardson@intel.com", "Subject": "[PATCH v2 02/15] bus/pci: add const to some experimental API", "Date": "Mon, 21 Aug 2023 13:35:35 +0200", "Message-ID": "<20230821113549.3191921-3-david.marchand@redhat.com>", "In-Reply-To": "<20230821113549.3191921-1-david.marchand@redhat.com>", "References": "<20230803075038.307012-1-david.marchand@redhat.com>\n <20230821113549.3191921-1-david.marchand@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.4", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true", "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": "Those functions are fine with a const on the device pointer.\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/bus/pci/pci_common.c | 4 ++--\n drivers/bus/pci/rte_bus_pci.h | 4 ++--\n 2 files changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c\nindex 52404ab0fe..382b0b8946 100644\n--- a/drivers/bus/pci/pci_common.c\n+++ b/drivers/bus/pci/pci_common.c\n@@ -814,7 +814,7 @@ rte_pci_get_iommu_class(void)\n }\n \n off_t\n-rte_pci_find_ext_capability(struct rte_pci_device *dev, uint32_t cap)\n+rte_pci_find_ext_capability(const struct rte_pci_device *dev, uint32_t cap)\n {\n \toff_t offset = RTE_PCI_CFG_SPACE_SIZE;\n \tuint32_t header;\n@@ -857,7 +857,7 @@ rte_pci_find_ext_capability(struct rte_pci_device *dev, uint32_t cap)\n }\n \n int\n-rte_pci_set_bus_master(struct rte_pci_device *dev, bool enable)\n+rte_pci_set_bus_master(const struct rte_pci_device *dev, bool enable)\n {\n \tuint16_t old_cmd, cmd;\n \ndiff --git a/drivers/bus/pci/rte_bus_pci.h b/drivers/bus/pci/rte_bus_pci.h\nindex 9d59c4aef3..75d0030eae 100644\n--- a/drivers/bus/pci/rte_bus_pci.h\n+++ b/drivers/bus/pci/rte_bus_pci.h\n@@ -85,7 +85,7 @@ void rte_pci_dump(FILE *f);\n * = 0: Device does not support it.\n */\n __rte_experimental\n-off_t rte_pci_find_ext_capability(struct rte_pci_device *dev, uint32_t cap);\n+off_t rte_pci_find_ext_capability(const struct rte_pci_device *dev, uint32_t cap);\n \n /**\n * Enables/Disables Bus Master for device's PCI command register.\n@@ -99,7 +99,7 @@ off_t rte_pci_find_ext_capability(struct rte_pci_device *dev, uint32_t cap);\n * 0 on success, -1 on error in PCI config space read/write.\n */\n __rte_experimental\n-int rte_pci_set_bus_master(struct rte_pci_device *dev, bool enable);\n+int rte_pci_set_bus_master(const struct rte_pci_device *dev, bool enable);\n \n /**\n * Read PCI config space.\n", "prefixes": [ "v2", "02/15" ] }{ "id": 130565, "url": "