Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/79043/?format=api
http://patches.dpdk.org/api/patches/79043/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200928164245.84997-21-bruce.richardson@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": "<20200928164245.84997-21-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200928164245.84997-21-bruce.richardson@intel.com", "date": "2020-09-28T16:42:40", "name": "[v4,20/25] raw/ioat: add info function for idxd devices", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "949dbf3fcec35a13edffca9dda3f1a74da89860d", "submitter": { "id": 20, "url": "http://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.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/20200928164245.84997-21-bruce.richardson@intel.com/mbox/", "series": [ { "id": 12560, "url": "http://patches.dpdk.org/api/series/12560/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12560", "date": "2020-09-28T16:42:20", "name": "raw/ioat: enhancements and new hardware support", "version": 4, "mbox": "http://patches.dpdk.org/series/12560/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/79043/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/79043/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 62A20A04DB;\n\tMon, 28 Sep 2020 18:50:08 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 14F851D9D7;\n\tMon, 28 Sep 2020 18:43:46 +0200 (CEST)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id 506F51D98D\n for <dev@dpdk.org>; Mon, 28 Sep 2020 18:43:39 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Sep 2020 09:43:38 -0700", "from silpixa00399126.ir.intel.com ([10.237.222.4])\n by fmsmga004.fm.intel.com with ESMTP; 28 Sep 2020 09:43:36 -0700" ], "IronPort-SDR": [ "\n EZlJvdjm1+YlxmkWIIlpkSlOGHl07lca1fxN+p4rsAJAlKfNBq1furoS88/7rmgk6oixJf08uy\n GBaNHJXTH5aw==", "\n UcHp42SRtI0tgLc8TCncFy0GWWzUmfmz7RuhrHlaQV/r2nisBLsLkYEAAVrx7Lj30qpsQET2xZ\n hTbZasFUqKZQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9758\"; a=\"223619918\"", "E=Sophos;i=\"5.77,313,1596524400\"; d=\"scan'208\";a=\"223619918\"", "E=Sophos;i=\"5.77,313,1596524400\"; d=\"scan'208\";a=\"338250633\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "patrick.fu@intel.com, Bruce Richardson <bruce.richardson@intel.com>,\n Kevin Laatz <kevin.laatz@intel.com>", "Date": "Mon, 28 Sep 2020 17:42:40 +0100", "Message-Id": "<20200928164245.84997-21-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20200928164245.84997-1-bruce.richardson@intel.com>", "References": "<20200721095140.719297-1-bruce.richardson@intel.com>\n <20200928164245.84997-1-bruce.richardson@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v4 20/25] raw/ioat: add info function for idxd\n\tdevices", "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": "Add the info get function for DSA devices, returning just the ring size\ninfo about the device, same as is returned for existing IOAT/CBDMA devices.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nReviewed-by: Kevin Laatz <kevin.laatz@intel.com>\n---\n drivers/raw/ioat/idxd_pci.c | 1 +\n drivers/raw/ioat/idxd_vdev.c | 1 +\n drivers/raw/ioat/ioat_common.c | 18 ++++++++++++++++++\n drivers/raw/ioat/ioat_private.h | 3 +++\n 4 files changed, 23 insertions(+)", "diff": "diff --git a/drivers/raw/ioat/idxd_pci.c b/drivers/raw/ioat/idxd_pci.c\nindex 6b5c47392c..bf5edcfddd 100644\n--- a/drivers/raw/ioat/idxd_pci.c\n+++ b/drivers/raw/ioat/idxd_pci.c\n@@ -106,6 +106,7 @@ static const struct rte_rawdev_ops idxd_pci_ops = {\n \t\t.dev_configure = idxd_dev_configure,\n \t\t.dev_start = idxd_pci_dev_start,\n \t\t.dev_stop = idxd_pci_dev_stop,\n+\t\t.dev_info_get = idxd_dev_info_get,\n };\n \n /* each portal uses 4 x 4k pages */\ndiff --git a/drivers/raw/ioat/idxd_vdev.c b/drivers/raw/ioat/idxd_vdev.c\nindex 3dad1473b4..c75ac43175 100644\n--- a/drivers/raw/ioat/idxd_vdev.c\n+++ b/drivers/raw/ioat/idxd_vdev.c\n@@ -35,6 +35,7 @@ static const struct rte_rawdev_ops idxd_vdev_ops = {\n \t\t.dev_selftest = idxd_rawdev_test,\n \t\t.dump = idxd_dev_dump,\n \t\t.dev_configure = idxd_dev_configure,\n+\t\t.dev_info_get = idxd_dev_info_get,\n };\n \n static void *\ndiff --git a/drivers/raw/ioat/ioat_common.c b/drivers/raw/ioat/ioat_common.c\nindex 6a4e2979f5..b5cea2fda0 100644\n--- a/drivers/raw/ioat/ioat_common.c\n+++ b/drivers/raw/ioat/ioat_common.c\n@@ -44,6 +44,24 @@ idxd_dev_dump(struct rte_rawdev *dev, FILE *f)\n \treturn 0;\n }\n \n+int\n+idxd_dev_info_get(struct rte_rawdev *dev, rte_rawdev_obj_t dev_info,\n+\t\tsize_t info_size)\n+{\n+\tstruct rte_ioat_rawdev_config *cfg = dev_info;\n+\tstruct idxd_rawdev *idxd = dev->dev_private;\n+\tstruct rte_idxd_rawdev *rte_idxd = &idxd->public;\n+\n+\tif (info_size != sizeof(*cfg))\n+\t\treturn -EINVAL;\n+\n+\tif (cfg != NULL) {\n+\t\tcfg->ring_size = rte_idxd->hdl_ring_sz;\n+\t\tcfg->hdls_disable = rte_idxd->hdls_disable;\n+\t}\n+\treturn 0;\n+}\n+\n int\n idxd_dev_configure(const struct rte_rawdev *dev,\n \t\trte_rawdev_obj_t config, size_t config_size)\ndiff --git a/drivers/raw/ioat/ioat_private.h b/drivers/raw/ioat/ioat_private.h\nindex aba70d8d71..0f80d60bf6 100644\n--- a/drivers/raw/ioat/ioat_private.h\n+++ b/drivers/raw/ioat/ioat_private.h\n@@ -62,6 +62,9 @@ extern int idxd_rawdev_close(struct rte_rawdev *dev);\n extern int idxd_dev_configure(const struct rte_rawdev *dev,\n \t\trte_rawdev_obj_t config, size_t config_size);\n \n+extern int idxd_dev_info_get(struct rte_rawdev *dev, rte_rawdev_obj_t dev_info,\n+\t\tsize_t info_size);\n+\n extern int idxd_rawdev_test(uint16_t dev_id);\n \n extern int idxd_dev_dump(struct rte_rawdev *dev, FILE *f);\n", "prefixes": [ "v4", "20/25" ] }{ "id": 79043, "url": "