get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/88472/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 88472,
    "url": "http://patches.dpdk.org/api/patches/88472/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1614868228-13685-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": "<1614868228-13685-4-git-send-email-xuemingl@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1614868228-13685-4-git-send-email-xuemingl@nvidia.com",
    "date": "2021-03-04T14:30:19",
    "name": "[v8,3/9] ethdev: support new VF representor syntax",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "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/1614868228-13685-4-git-send-email-xuemingl@nvidia.com/mbox/",
    "series": [
        {
            "id": 15491,
            "url": "http://patches.dpdk.org/api/series/15491/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15491",
            "date": "2021-03-04T14:30:16",
            "name": "ethdev: support SubFunction representor",
            "version": 8,
            "mbox": "http://patches.dpdk.org/series/15491/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/88472/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/88472/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 5A406A0561;\n\tThu,  4 Mar 2021 15:31:18 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 736A322A2E6;\n\tThu,  4 Mar 2021 15:31:12 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 0697422A2E2\n for <dev@dpdk.org>; Thu,  4 Mar 2021 15:31:10 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n xuemingl@nvidia.com) with SMTP; 4 Mar 2021 16:31:05 +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 124EUkoR027668;\n Thu, 4 Mar 2021 16:31:05 +0200"
        ],
        "From": "Xueming Li <xuemingl@nvidia.com>",
        "To": "Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>",
        "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>",
        "Date": "Thu,  4 Mar 2021 14:30:19 +0000",
        "Message-Id": "<1614868228-13685-4-git-send-email-xuemingl@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": [
            "<1614868228-13685-1-git-send-email-xuemingl@nvidia.com>",
            "<1608303356-13089-2-git-send-email-xuemingl@nvidia.com>"
        ],
        "References": [
            "<1614868228-13685-1-git-send-email-xuemingl@nvidia.com>",
            "<1608303356-13089-2-git-send-email-xuemingl@nvidia.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v8 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&eth_da->nb_representor_ports,\n \t\tRTE_DIM(eth_da->representor_ports));\n",
    "prefixes": [
        "v8",
        "3/9"
    ]
}