Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/131424/?format=api
http://patches.dpdk.org/api/patches/131424/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230914123615.1705654-12-david.marchand@redhat.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": "<20230914123615.1705654-12-david.marchand@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230914123615.1705654-12-david.marchand@redhat.com", "date": "2023-09-14T12:36:10", "name": "[v3,11/15] pci: define some extended capability constants", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "3df365c5d583d0c429f32cf629165e5e5e6b52cb", "submitter": { "id": 1173, "url": "http://patches.dpdk.org/api/people/1173/?format=api", "name": "David Marchand", "email": "david.marchand@redhat.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/20230914123615.1705654-12-david.marchand@redhat.com/mbox/", "series": [ { "id": 29507, "url": "http://patches.dpdk.org/api/series/29507/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29507", "date": "2023-09-14T12:35:59", "name": "Cleanup PCI(e) drivers", "version": 3, "mbox": "http://patches.dpdk.org/series/29507/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/131424/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/131424/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 2786442597;\n\tThu, 14 Sep 2023 14:37:48 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 88FA540DFB;\n\tThu, 14 Sep 2023 14:37: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 1E95640A89\n for <dev@dpdk.org>; Thu, 14 Sep 2023 14:37:07 +0200 (CEST)", "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-115-gyX78pouOCuGAnHFYYUjww-1; Thu, 14 Sep 2023 08:37:05 -0400", "from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com\n [10.11.54.5])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7B78F101CC7F;\n Thu, 14 Sep 2023 12:37:04 +0000 (UTC)", "from dmarchan.redhat.com (unknown [10.45.225.25])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 0B63A9A;\n Thu, 14 Sep 2023 12:37:02 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1694695026;\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=SkueaLhjK8bh1TqaDaMiO1JIrUE54z8qpeh1udbLVTQ=;\n b=Jl0rN4FLnlpq0eL9IRCpTr3zkXnTRyElEUZ6V+1rMDORiTxi4CaXi5tTVQGHBbfV1GuuFb\n fNnJfESlw1vkrIBbSIUamAwdKnATLUBALar1HOsXNgrScipf6hf3LgtiZyCp/1YUX08g5O\n qnA9XnAp0+YAM3xZ4kkIEpeTMLJnVKY=", "X-MC-Unique": "gyX78pouOCuGAnHFYYUjww-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,\n Abdullah Sevincer <abdullah.sevincer@intel.com>,\n Gaetan Rivet <grive@u256.net>", "Subject": "[PATCH v3 11/15] pci: define some extended capability constants", "Date": "Thu, 14 Sep 2023 14:36:10 +0200", "Message-ID": "<20230914123615.1705654-12-david.marchand@redhat.com>", "In-Reply-To": "<20230914123615.1705654-1-david.marchand@redhat.com>", "References": "<20230803075038.307012-1-david.marchand@redhat.com>\n <20230914123615.1705654-1-david.marchand@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.5", "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": "Define some PCI extended capability constants and use them in existing\ndrivers.\n\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\nReviewed-by: Chenbo Xia <chenbo.xia@intel.com>\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\nChanges since v2:\n- fixed existing SRIOV comment,\n\n---\n drivers/event/dlb2/pf/dlb2_main.c | 7 ++-----\n lib/pci/rte_pci.h | 6 ++++--\n 2 files changed, 6 insertions(+), 7 deletions(-)", "diff": "diff --git a/drivers/event/dlb2/pf/dlb2_main.c b/drivers/event/dlb2/pf/dlb2_main.c\nindex 8d960edef6..29e3001627 100644\n--- a/drivers/event/dlb2/pf/dlb2_main.c\n+++ b/drivers/event/dlb2/pf/dlb2_main.c\n@@ -27,9 +27,6 @@\n #define NO_OWNER_VF 0\t/* PF ONLY! */\n #define NOT_VF_REQ false /* PF ONLY! */\n \n-#define DLB2_PCI_EXT_CAP_ID_PRI 0x13\n-#define DLB2_PCI_EXT_CAP_ID_ACS 0xD\n-\n #define DLB2_PCI_PRI_CTRL_ENABLE 0x1\n #define DLB2_PCI_PRI_ALLOC_REQ 0xC\n #define DLB2_PCI_PRI_CTRL 0x4\n@@ -263,7 +260,7 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \tif (rte_pci_read_config(pdev, &slt_word2, 2, off) != 2)\n \t\tslt_word2 = 0;\n \n-\toff = DLB2_PCI_EXT_CAP_ID_PRI;\n+\toff = RTE_PCI_EXT_CAP_ID_PRI;\n \tpri_cap_offset = rte_pci_find_ext_capability(pdev, off);\n \n \tif (pri_cap_offset >= 0) {\n@@ -490,7 +487,7 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \t\t}\n \t}\n \n-\toff = DLB2_PCI_EXT_CAP_ID_ACS;\n+\toff = RTE_PCI_EXT_CAP_ID_ACS;\n \tacs_cap_offset = rte_pci_find_ext_capability(pdev, off);\n \n \tif (acs_cap_offset >= 0) {\ndiff --git a/lib/pci/rte_pci.h b/lib/pci/rte_pci.h\nindex 00ce390c1c..1fdca91f8b 100644\n--- a/lib/pci/rte_pci.h\n+++ b/lib/pci/rte_pci.h\n@@ -98,9 +98,11 @@ extern \"C\" {\n \n #define RTE_PCI_EXT_CAP_ID_ERR\t\t0x01\t/* Advanced Error Reporting */\n #define RTE_PCI_EXT_CAP_ID_DSN\t\t0x03\t/* Device Serial Number */\n-#define RTE_PCI_EXT_CAP_ID_SRIOV\t0x10\t/* SR-IOV*/\n+#define RTE_PCI_EXT_CAP_ID_ACS\t\t0x0d\t/* Access Control Services */\n+#define RTE_PCI_EXT_CAP_ID_SRIOV\t0x10\t/* SR-IOV */\n+#define RTE_PCI_EXT_CAP_ID_PRI\t\t0x13\t/* Page Request Interface */\n \n-/* Single Root I/O Virtualization */\n+/* Single Root I/O Virtualization (RTE_PCI_EXT_CAP_ID_SRIOV) */\n #define RTE_PCI_SRIOV_CAP\t\t0x04\t/* SR-IOV Capabilities */\n #define RTE_PCI_SRIOV_CTRL\t\t0x08\t/* SR-IOV Control */\n #define RTE_PCI_SRIOV_INITIAL_VF\t0x0c\t/* Initial VFs */\n", "prefixes": [ "v3", "11/15" ] }{ "id": 131424, "url": "