get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 35111,
    "url": "http://patches.dpdk.org/api/patches/35111/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1518342737-9244-1-git-send-email-xiaohua.zhang@windriver.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": "<1518342737-9244-1-git-send-email-xiaohua.zhang@windriver.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1518342737-9244-1-git-send-email-xiaohua.zhang@windriver.com",
    "date": "2018-02-11T09:52:17",
    "name": "[dpdk-dev] usertools/dpdk-devbind.py: add support for wind river avp device",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "e00c374d54513195a1304909adb467b11e48a1bf",
    "submitter": {
        "id": 972,
        "url": "http://patches.dpdk.org/api/people/972/?format=api",
        "name": "Xiaohua Zhang",
        "email": "xiaohua.zhang@windriver.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1518342737-9244-1-git-send-email-xiaohua.zhang@windriver.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/35111/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/35111/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 2A6851B378;\n\tSun, 11 Feb 2018 10:57:09 +0100 (CET)",
            "from mail5.wrs.com (mail5.windriver.com [192.103.53.11])\n\tby dpdk.org (Postfix) with ESMTP id 3526F1B376\n\tfor <dev@dpdk.org>; Sun, 11 Feb 2018 10:57:08 +0100 (CET)",
            "from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com\n\t[147.11.189.40])\n\tby mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id w1B9v6Zf000705\n\t(version=TLSv1 cipher=AES128-SHA bits=128 verify=OK)\n\tfor <dev@dpdk.org>; Sun, 11 Feb 2018 01:57:07 -0800",
            "from xzhang5-desktop.corp.ad.wrs.com (128.224.180.168) by\n\tALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server\n\t(TLS) id 14.3.361.1; Sun, 11 Feb 2018 01:56:57 -0800"
        ],
        "From": "Xiaohua Zhang <xiaohua.zhang@windriver.com>",
        "To": "<dev@dpdk.org>",
        "Date": "Sun, 11 Feb 2018 17:52:17 +0800",
        "Message-ID": "<1518342737-9244-1-git-send-email-xiaohua.zhang@windriver.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[128.224.180.168]",
        "Subject": "[dpdk-dev] [PATCH] usertools/dpdk-devbind.py: add support for wind\n\triver avp device",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>\n---\n usertools/dpdk-devbind.py | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py\nindex 18d9386..f488318 100755\n--- a/usertools/dpdk-devbind.py\n+++ b/usertools/dpdk-devbind.py\n@@ -22,11 +22,14 @@\n               'SVendor': None, 'SDevice': None}\n cavium_pkx = {'Class': '08', 'Vendor': '177d', 'Device': 'a0dd,a049',\n               'SVendor': None, 'SDevice': None}\n+avp_vnic = {'Class': '05', 'Vendor': '1af4', 'Device': '1110',\n+              'SVendor': None, 'SDevice': None}\n \n network_devices = [network_class, cavium_pkx]\n crypto_devices = [encryption_class, intel_processor_class]\n eventdev_devices = [cavium_sso]\n mempool_devices = [cavium_fpa]\n+avp_devices = [avp_vnic]\n \n # global dict ethernet devices present. Dictionary indexed by PCI address.\n # Each device within this is itself a dictionary of device properties\n@@ -565,6 +568,9 @@ def show_status():\n     if status_dev == \"mempool\" or status_dev == \"all\":\n         show_device_status(mempool_devices, \"Mempool\")\n \n+    if status_dev == \"avp\" or status_dev == \"all\":\n+        show_device_status(avp_devices, \"AVP\")\n+\n def parse_args():\n     '''Parses the command-line arguments given by the user and takes the\n     appropriate action for each'''\n@@ -638,6 +644,7 @@ def do_arg_actions():\n             get_device_details(crypto_devices)\n             get_device_details(eventdev_devices)\n             get_device_details(mempool_devices)\n+            get_device_details(avp_devices)\n         show_status()\n \n \n@@ -650,6 +657,7 @@ def main():\n     get_device_details(crypto_devices)\n     get_device_details(eventdev_devices)\n     get_device_details(mempool_devices)\n+    get_device_details(avp_devices)\n     do_arg_actions()\n \n if __name__ == \"__main__\":\n",
    "prefixes": [
        "dpdk-dev"
    ]
}