Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/92158/?format=api
http://patches.dpdk.org/api/patches/92158/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210426095259.225354-7-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": "<20210426095259.225354-7-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210426095259.225354-7-bruce.richardson@intel.com", "date": "2021-04-26T09:52:53", "name": "[v2,06/12] raw/ioat: make workqueue name configurable in script", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4103a9ba3de613756b2ea12e57af4412611b4fa5", "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/20210426095259.225354-7-bruce.richardson@intel.com/mbox/", "series": [ { "id": 16669, "url": "http://patches.dpdk.org/api/series/16669/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16669", "date": "2021-04-26T09:52:48", "name": "ioat driver updates", "version": 2, "mbox": "http://patches.dpdk.org/series/16669/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/92158/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/92158/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 E8B6AA0548;\n\tMon, 26 Apr 2021 11:53:52 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CD5F1411C5;\n\tMon, 26 Apr 2021 11:53:25 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 55017411AD\n for <dev@dpdk.org>; Mon, 26 Apr 2021 11:53:19 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Apr 2021 02:53:17 -0700", "from silpixa00399126.ir.intel.com ([10.237.223.81])\n by orsmga008.jf.intel.com with ESMTP; 26 Apr 2021 02:53:16 -0700" ], "IronPort-SDR": [ "\n H1cRusOxlT72Q9qMBHxpGncChahi/YBGTU5fhgv1ja/57WPA0gmhAFSNAwTtOOJUGF1Ox/CdrJ\n SPxWCkwd69cg==", "\n x336wUojXYuirtpCueKbZhTXPih07AcDDkZYM2VCsitHdf+EJQYy9Y0Vz2pKjAKC5Ie2amE1JX\n 31OKBVci9NlA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,9965\"; a=\"183442904\"", "E=Sophos;i=\"5.82,252,1613462400\"; d=\"scan'208\";a=\"183442904\"", "E=Sophos;i=\"5.82,252,1613462400\"; d=\"scan'208\";a=\"429336925\"" ], "X-ExtLoop1": "1", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "kevin.laatz@intel.com, jiayu.hu@intel.com,\n Bruce Richardson <bruce.richardson@intel.com>", "Date": "Mon, 26 Apr 2021 10:52:53 +0100", "Message-Id": "<20210426095259.225354-7-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20210426095259.225354-1-bruce.richardson@intel.com>", "References": "<20210318182042.43658-2-bruce.richardson@intel.com>\n <20210426095259.225354-1-bruce.richardson@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v2 06/12] raw/ioat: make workqueue name\n configurable in script", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add a \"--name-prefix\" parameter to the quick configuration script for\nDSA. This allows the queues configured on a DSA instance to be made\navailable to only one DPDK process in a setup with multiple DPDK process\ninstances.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/raw/ioat/dpdk_idxd_cfg.py | 9 ++++++---\n 1 file changed, 6 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/raw/ioat/dpdk_idxd_cfg.py b/drivers/raw/ioat/dpdk_idxd_cfg.py\nindex 56e44063e4..ff06d9e240 100755\n--- a/drivers/raw/ioat/dpdk_idxd_cfg.py\n+++ b/drivers/raw/ioat/dpdk_idxd_cfg.py\n@@ -29,7 +29,7 @@ def write_values(self, values):\n f.write(str(contents))\n \n \n-def configure_dsa(dsa_id, queues):\n+def configure_dsa(dsa_id, queues, prefix):\n \"Configure the DSA instance with appropriate number of queues\"\n dsa_dir = SysfsDir(f\"/sys/bus/dsa/devices/dsa{dsa_id}\")\n drv_dir = SysfsDir(\"/sys/bus/dsa/drivers/dsa\")\n@@ -54,7 +54,7 @@ def configure_dsa(dsa_id, queues):\n wq_dir.write_values({\"group_id\": q % nb_groups,\n \"type\": \"user\",\n \"mode\": \"dedicated\",\n- \"name\": f\"dpdk_wq{dsa_id}.{q}\",\n+ \"name\": f\"{prefix}_wq{dsa_id}.{q}\",\n \"priority\": 1,\n \"size\": int(max_tokens / nb_queues)})\n \n@@ -71,8 +71,11 @@ def main(args):\n arg_p.add_argument('dsa_id', type=int, help=\"DSA instance number\")\n arg_p.add_argument('-q', metavar='queues', type=int, default=255,\n help=\"Number of queues to set up\")\n+ arg_p.add_argument('--name-prefix', metavar='prefix', dest='prefix',\n+ default=\"dpdk\",\n+ help=\"Prefix for workqueue name to mark for DPDK use [default: 'dpdk']\")\n parsed_args = arg_p.parse_args(args[1:])\n- configure_dsa(parsed_args.dsa_id, parsed_args.q)\n+ configure_dsa(parsed_args.dsa_id, parsed_args.q, parsed_args.prefix)\n \n \n if __name__ == \"__main__\":\n", "prefixes": [ "v2", "06/12" ] }{ "id": 92158, "url": "