get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 43166,
    "url": "http://patchwork.dpdk.org/api/patches/43166/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180717162900.24833-1-jasvinder.singh@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20180717162900.24833-1-jasvinder.singh@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180717162900.24833-1-jasvinder.singh@intel.com",
    "date": "2018-07-17T16:29:00",
    "name": "librte_ethdev: improve description for port name api",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "fa228d5027c68a887700deee75ba0d6ce7c0df6e",
    "submitter": {
        "id": 285,
        "url": "http://patchwork.dpdk.org/api/people/285/?format=api",
        "name": "Jasvinder Singh",
        "email": "jasvinder.singh@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20180717162900.24833-1-jasvinder.singh@intel.com/mbox/",
    "series": [
        {
            "id": 639,
            "url": "http://patchwork.dpdk.org/api/series/639/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=639",
            "date": "2018-07-17T16:29:00",
            "name": "librte_ethdev: improve description for port name api",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/639/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/43166/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/43166/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D04962BDB;\n\tTue, 17 Jul 2018 18:29:04 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id 50C162BD8\n\tfor <dev@dpdk.org>; Tue, 17 Jul 2018 18:29:03 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t17 Jul 2018 09:29:02 -0700",
            "from silpixa00381635.ir.intel.com (HELO\n\tsilpixa00381635.ger.corp.intel.com) ([10.237.222.149])\n\tby fmsmga007.fm.intel.com with ESMTP; 17 Jul 2018 09:29:01 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,366,1526367600\"; d=\"scan'208\";a=\"55050326\"",
        "From": "Jasvinder Singh <jasvinder.singh@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com",
        "Date": "Tue, 17 Jul 2018 17:29:00 +0100",
        "Message-Id": "<20180717162900.24833-1-jasvinder.singh@intel.com>",
        "X-Mailer": "git-send-email 2.9.3",
        "Subject": "[dpdk-dev] [PATCH] librte_ethdev: improve description for port name\n\tapi",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Imporve description of api used to get port name from port id or\nvice-versa.\n\nSigned-off-by: Jasvinder Singh <jasvinder.singh@intel.com>\n---\n lib/librte_ethdev/rte_ethdev.h | 19 +++++++++----------\n 1 file changed, 9 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\nindex f5f593b..874740b 100644\n--- a/lib/librte_ethdev/rte_ethdev.h\n+++ b/lib/librte_ethdev/rte_ethdev.h\n@@ -3629,11 +3629,11 @@ rte_eth_dev_l2_tunnel_offload_set(uint16_t port_id,\n \t\t\t\t  uint8_t en);\n \n /**\n-* Get the port id from pci address or device name\n-* Example:\n-* - PCIe, 0000:2:00.0\n-* - SoC, fsl-gmac0\n-* - vdev, net_pcap0\n+* Get the port id from device name. The device name should be specified\n+* as below:\n+* - PCIe address (Domain:Bus:Device.Function), for example- 0000:2:00.0\n+* - SoC device name, for example- fsl-gmac0\n+* - vdev dpdk name, for example- net_[pcap0|null0|tap0]\n *\n * @param name\n *  pci address or name of the device\n@@ -3647,11 +3647,10 @@ int\n rte_eth_dev_get_port_by_name(const char *name, uint16_t *port_id);\n \n /**\n-* Get the device name from port id\n-* Example:\n-* - PCIe Bus:Domain:Function, 0000:02:00.0\n-* - SoC device name, fsl-gmac0\n-* - vdev dpdk name, net_[pcap0|null0|tun0|tap0]\n+* Get the device name from port id. The device name is specified as below;  \n+* - PCIe address (Domain:Bus:Device.Function), for example- 0000:02:00.0\n+* - SoC device name, for example- fsl-gmac0\n+* - vdev dpdk name, for example- net_[pcap0|null0|tun0|tap0]\n *\n * @param port_id\n *   Port identifier of the device.\n",
    "prefixes": []
}