Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/87911/?format=api
http://patches.dpdk.org/api/patches/87911/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1613272907-22563-4-git-send-email-xuemingl@nvidia.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": "<1613272907-22563-4-git-send-email-xuemingl@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1613272907-22563-4-git-send-email-xuemingl@nvidia.com", "date": "2021-02-14T03:21:33", "name": "[v6,3/9] ethdev: support new VF representor syntax", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "e01a4c3529fbe9bf741e5fd4eda028c0c685508f", "submitter": { "id": 1904, "url": "http://patches.dpdk.org/api/people/1904/?format=api", "name": "Xueming Li", "email": "xuemingl@nvidia.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1613272907-22563-4-git-send-email-xuemingl@nvidia.com/mbox/", "series": [ { "id": 15258, "url": "http://patches.dpdk.org/api/series/15258/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15258", "date": "2021-02-14T03:21:30", "name": "ethdev: support SubFunction representor", "version": 6, "mbox": "http://patches.dpdk.org/series/15258/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/87911/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/87911/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 D7DC4A0546;\n\tSun, 14 Feb 2021 04:23:30 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B97C822A23C;\n\tSun, 14 Feb 2021 04:23:30 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 72626406A2\n for <dev@dpdk.org>; Sun, 14 Feb 2021 04:23:28 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n xuemingl@nvidia.com) with SMTP; 14 Feb 2021 05:23:25 +0200", "from nvidia.com (pegasus05.mtr.labs.mlnx [10.210.16.100])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 11E3MYvP008525;\n Sun, 14 Feb 2021 05:23:25 +0200" ], "From": "Xueming Li <xuemingl@nvidia.com>", "To": "", "Cc": "dev@dpdk.org, Viacheslav Ovsiienko <viacheslavo@nvidia.com>,\n xuemingl@nvidia.com, Asaf Penso <asafp@nvidia.com>,\n Thomas Monjalon <thomas@monjalon.net>,\n Ferruh Yigit <ferruh.yigit@intel.com>,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>", "Date": "Sun, 14 Feb 2021 03:21:33 +0000", "Message-Id": "<1613272907-22563-4-git-send-email-xuemingl@nvidia.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": [ "<1613272907-22563-1-git-send-email-xuemingl@nvidia.com>", "<1608303356-13089-2-git-send-email-xuemingl@nvidia.com>" ], "References": [ "<1613272907-22563-1-git-send-email-xuemingl@nvidia.com>", "<1608303356-13089-2-git-send-email-xuemingl@nvidia.com>" ], "Subject": "[dpdk-dev] [PATCH v6 3/9] ethdev: support new VF representor syntax", "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": "Current VF representor syntax:\n representor=2 - single representor\n representor=[0-3] - single range\n\nTo prepare for more representor types, this patch adds compatible VF\nrepresentor devargs syntax:\n\nvf#:\n representor=vf2 - single representor\n representor=vf[1,3,5] - single list\n representor=vf[0-3] - single range\n representor=vf[0,1,4-7] - list with singles and range\n\nFor backwards compatibility, representor \"#\" is interpreted as \"vf#\".\n\nSigned-off-by: Xueming Li <xuemingl@nvidia.com>\nAcked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>\nAcked-by: Thomas Monjalon <thomas@monjalon.net>\nAcked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>\n---\n doc/guides/prog_guide/poll_mode_drv.rst | 7 ++++---\n lib/librte_ethdev/ethdev_private.c | 5 ++++-\n 2 files changed, 8 insertions(+), 4 deletions(-)", "diff": "diff --git a/doc/guides/prog_guide/poll_mode_drv.rst b/doc/guides/prog_guide/poll_mode_drv.rst\nindex 239ec820ea..0117c2af07 100644\n--- a/doc/guides/prog_guide/poll_mode_drv.rst\n+++ b/doc/guides/prog_guide/poll_mode_drv.rst\n@@ -374,9 +374,10 @@ parameters to those ports.\n this argument allows user to specify which switch ports to enable port\n representors for.::\n \n- -a DBDF,representor=0\n- -a DBDF,representor=[0,4,6,9]\n- -a DBDF,representor=[0-31]\n+ -a DBDF,representor=vf0\n+ -a DBDF,representor=vf[0,4,6,9]\n+ -a DBDF,representor=vf[0-31]\n+ -a DBDF,representor=vf[0,2-4,7,9-11]\n \n Note: PMDs are not required to support the standard device arguments and users\n should consult the relevant PMD documentation to see support devargs.\ndiff --git a/lib/librte_ethdev/ethdev_private.c b/lib/librte_ethdev/ethdev_private.c\nindex d5ef05ea6f..4bb3879859 100644\n--- a/lib/librte_ethdev/ethdev_private.c\n+++ b/lib/librte_ethdev/ethdev_private.c\n@@ -117,7 +117,8 @@ rte_eth_devargs_process_list(char *str, uint16_t *list, uint16_t *len_list,\n * Parse representor ports from a single value or lists.\n *\n * Representor format:\n- * #: range or single number of VF representor\n+ * #: range or single number of VF representor - legacy\n+ * vf#: VF port representor/s\n *\n * Examples of #:\n * 2 - single\n@@ -130,6 +131,8 @@ rte_eth_devargs_parse_representor_ports(char *str, void *data)\n \tstruct rte_eth_devargs *eth_da = data;\n \n \teth_da->type = RTE_ETH_REPRESENTOR_VF;\n+\tif (str[0] == 'v' && str[1] == 'f')\n+\t\tstr += 2;\n \tstr = rte_eth_devargs_process_list(str, eth_da->representor_ports,\n \t\tð_da->nb_representor_ports,\n \t\tRTE_DIM(eth_da->representor_ports));\n", "prefixes": [ "v6", "3/9" ] }{ "id": 87911, "url": "