get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54464,
    "url": "http://patches.dpdk.org/api/patches/54464/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190606074303.104108-6-xiaoyun.li@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": "<20190606074303.104108-6-xiaoyun.li@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190606074303.104108-6-xiaoyun.li@intel.com",
    "date": "2019-06-06T07:43:02",
    "name": "[v2,5/6] usertools/dpdk-devbind.py: add support for ntb",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cb87075db110987ce3bf90e338cfe2444d1c6496",
    "submitter": {
        "id": 798,
        "url": "http://patches.dpdk.org/api/people/798/?format=api",
        "name": "Li, Xiaoyun",
        "email": "xiaoyun.li@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190606074303.104108-6-xiaoyun.li@intel.com/mbox/",
    "series": [
        {
            "id": 4921,
            "url": "http://patches.dpdk.org/api/series/4921/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4921",
            "date": "2019-06-06T07:42:57",
            "name": "rawdev driver for ntb",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4921/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/54464/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/54464/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 D05DE1B9B5;\n\tThu,  6 Jun 2019 09:43:48 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id 9A54A1B99A\n\tfor <dev@dpdk.org>; Thu,  6 Jun 2019 09:43:42 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t06 Jun 2019 00:43:42 -0700",
            "from dpdk-xiaoyun3.sh.intel.com ([10.67.118.239])\n\tby orsmga008.jf.intel.com with ESMTP; 06 Jun 2019 00:43:41 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Xiaoyun Li <xiaoyun.li@intel.com>",
        "To": "jingjing.wu@intel.com, keith.wiles@intel.com, cunming.liang@intel.com,\n\tomkar.maslekar@intel.com",
        "Cc": "dev@dpdk.org,\n\tXiaoyun Li <xiaoyun.li@intel.com>",
        "Date": "Thu,  6 Jun 2019 15:43:02 +0800",
        "Message-Id": "<20190606074303.104108-6-xiaoyun.li@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190606074303.104108-1-xiaoyun.li@intel.com>",
        "References": "<20190603084611.40931-1-xiaoyun.li@intel.com>\n\t<20190606074303.104108-1-xiaoyun.li@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 5/6] usertools/dpdk-devbind.py: add support\n\tfor ntb",
        "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": "In order to allow binding/unbinding of devices for use by the\nntb_rawdev, we need to update the devbind script to add a new class\nof device, and add device ids for the specific HW instances. And\nonly support skx platform right now.\n\nSigned-off-by: Xiaoyun Li <xiaoyun.li@intel.com>\n---\n usertools/dpdk-devbind.py | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py\nindex 9e79f0d28..3f7eafe28 100755\n--- a/usertools/dpdk-devbind.py\n+++ b/usertools/dpdk-devbind.py\n@@ -36,11 +36,15 @@\n octeontx2_npa = {'Class': '08', 'Vendor': '177d', 'Device': 'a0fb,a0fc',\n               'SVendor': None, 'SDevice': None}\n \n+intel_ntb_skx = {'Class': '06', 'Vendor': '8086', 'Device': '201c',\n+              'SVendor': None, 'SDevice': None}\n+\n network_devices = [network_class, cavium_pkx, avp_vnic, ifpga_class]\n crypto_devices = [encryption_class, intel_processor_class]\n eventdev_devices = [cavium_sso, cavium_tim, octeontx2_sso]\n mempool_devices = [cavium_fpa, octeontx2_npa]\n compress_devices = [cavium_zip]\n+communication_devices = [intel_ntb_skx]\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@@ -595,6 +599,9 @@ def show_status():\n     if status_dev == \"compress\" or status_dev == \"all\":\n         show_device_status(compress_devices , \"Compress\")\n \n+    if status_dev == \"communication\" or status_dev == \"all\":\n+        show_device_status(communication_devices , \"Communication\")\n+\n \n def parse_args():\n     '''Parses the command-line arguments given by the user and takes the\n@@ -670,6 +677,7 @@ def do_arg_actions():\n             get_device_details(eventdev_devices)\n             get_device_details(mempool_devices)\n             get_device_details(compress_devices)\n+            get_device_details(communication_devices)\n         show_status()\n \n \n@@ -690,6 +698,7 @@ def main():\n     get_device_details(eventdev_devices)\n     get_device_details(mempool_devices)\n     get_device_details(compress_devices)\n+    get_device_details(communication_devices)\n     do_arg_actions()\n \n if __name__ == \"__main__\":\n",
    "prefixes": [
        "v2",
        "5/6"
    ]
}