Show a patch.

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

{
    "id": 44056,
    "url": "http://patches.dpdk.org/api/patches/44056/?format=api",
    "web_url": "http://patches.dpdk.org/patch/44056/",
    "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"
    },
    "msgid": "<20180830223512.21297-2-stephen@networkplumber.org>",
    "date": "2018-08-30T22:35:08",
    "name": "[1/5] bus/vmbus: add devargs support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a6bff1485bd9eeec86fb4b73be01b69abbc30e6a",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patches.dpdk.org/patch/44056/mbox/",
    "series": [
        {
            "id": 1120,
            "url": "http://patches.dpdk.org/api/series/1120/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1120",
            "date": "2018-08-30T22:35:07",
            "name": "netvsc changes for 18.11",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1120/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44056/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44056/checks/",
    "tags": {},
    "headers": {
        "X-Mailer": "git-send-email 2.18.0",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=dyapva7pKCtATp7oPOGZpzT1HL4n/p+f5uT5OPq4VjE=;\n\tb=MUPBPb5UmE/YHXSlLhyrce4USpV1e4cBaiPhhWLh4igOlsiLQbXwX27pLRkXo3WuSR\n\tfLkQ15UryX/0gm7L8qa0W2nXi57PWldgQ8yCAyKlezBDWyILe5BRXfj/i/4/ODrwBNPA\n\tQFSbu1eF2s2BfgpfLTxXtPCbtWLisp9PgieTWZNoyNJ2mube6grky0AqyoF8TuPHe1gT\n\tzYujkLDAcYEZFxuR7JiTaDXtuBUoN6HU8K7SbMCutpbeOUIoLi4VHi0unElt1A7KJaDZ\n\t/VEnnb1WOf0TL8YABpSuHzwZ2aWaXlWxyYqq0nZDDLhMCPEajOGGjhwPoGi9zPtTR5k7\n\toKgQ==",
        "X-Mailman-Version": "2.1.15",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Gm-Message-State": "APzg51BMyZaL3FXmPQkhjvAeouJvmVG6dNaPm0iJ5Wfgql/NMWrtQuGE\n\tF39lkuKWLezoaZur/Jd5ualovql9mmOA7A==",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "Stephen Hemminger <sthemmin@microsoft.com>",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "References": "<20180830223512.21297-1-stephen@networkplumber.org>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=dyapva7pKCtATp7oPOGZpzT1HL4n/p+f5uT5OPq4VjE=;\n\tb=Ip+zzYu/MNsA6MuS60HStWt5pTxwbrqArDKvUKBWucqv1rKzvZoZ2eHA+xgfFTgiC9\n\tqezRO8/sEl2fHTEbvmkVOFQBNxSSp/0Do3NptY63YlXNwHZNpw0DGBr8kIfXxTmk+4dO\n\tAc1zhjIge3EvV9DYnfB60p+IlZQuviO6J7p/eEDs6NnqWTZ0YpYosIdiJ1PbUH9szN6w\n\tgg5cIlhGvcvvdg1KncQvSKSbrKuA6z6Cv11zMv/e+6l7LSw4Z8VmkrFJAXQQ5lo8vPje\n\tFxHB8YTkM8HmRmNpqsNa9UpDlRBoxddQguWjjJLGVV+BCiWm+wulhyKkP7Ju1oIp9gd/\n\tepMg==",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2837A5F19;\n\tFri, 31 Aug 2018 00:35:26 +0200 (CEST)",
            "from mail-pl1-f196.google.com (mail-pl1-f196.google.com\n\t[209.85.214.196]) by dpdk.org (Postfix) with ESMTP id 799DE5B3A\n\tfor <dev@dpdk.org>; Fri, 31 Aug 2018 00:35:21 +0200 (CEST)",
            "by mail-pl1-f196.google.com with SMTP id ba4-v6so4461474plb.11\n\tfor <dev@dpdk.org>; Thu, 30 Aug 2018 15:35:21 -0700 (PDT)",
            "from xeon-e3.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n\tby smtp.gmail.com with ESMTPSA id\n\tr19-v6sm11746033pgg.39.2018.08.30.15.35.19\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 30 Aug 2018 15:35:19 -0700 (PDT)"
        ],
        "Date": "Thu, 30 Aug 2018 15:35:08 -0700",
        "X-Received": "by 2002:a17:902:158b:: with SMTP id\n\tm11-v6mr12257308pla.102.1535668520404; \n\tThu, 30 Aug 2018 15:35:20 -0700 (PDT)",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 1/5] bus/vmbus: add devargs support",
        "In-Reply-To": "<20180830223512.21297-1-stephen@networkplumber.org>",
        "Message-Id": "<20180830223512.21297-2-stephen@networkplumber.org>",
        "Precedence": "list",
        "X-BeenThere": "dev@dpdk.org",
        "X-Original-To": "patchwork@dpdk.org",
        "X-Google-Smtp-Source": "ANB0VdajPJ2VIBDvqwZcqdfkHlA74tjrHy7GxAOdw0M70XljQ9xMyp9LvzGGXZzplGLQCsX0yyZNTg=="
    },
    "content": "From: Stephen Hemminger <sthemmin@microsoft.com>\n\nTake device arguments from command line and put\nthem in the device devargs.\n\nSigned-off-by: Stephen Hemminger <sthemmin@microsoft.com>\n---\n drivers/bus/vmbus/linux/vmbus_bus.c |  2 ++\n drivers/bus/vmbus/private.h         |  3 +++\n drivers/bus/vmbus/vmbus_common.c    | 22 +++++++++++++++++++++-\n 3 files changed, 26 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/bus/vmbus/linux/vmbus_bus.c b/drivers/bus/vmbus/linux/vmbus_bus.c\nindex 52d6a3c05306..527a6a39f2bc 100644\n--- a/drivers/bus/vmbus/linux/vmbus_bus.c\n+++ b/drivers/bus/vmbus/linux/vmbus_bus.c\n@@ -276,6 +276,8 @@ vmbus_scan_one(const char *name)\n \t\tdev->device.numa_node = SOCKET_ID_ANY;\n \t}\n \n+\tdev->device.devargs = vmbus_devargs_lookup(dev);\n+\n \t/* device is valid, add in list (sorted) */\n \tVMBUS_LOG(DEBUG, \"Adding vmbus device %s\", name);\n \ndiff --git a/drivers/bus/vmbus/private.h b/drivers/bus/vmbus/private.h\nindex 9964fc42a7b5..f2022a68cb2b 100644\n--- a/drivers/bus/vmbus/private.h\n+++ b/drivers/bus/vmbus/private.h\n@@ -66,6 +66,9 @@ struct vmbus_channel {\n \n #define VMBUS_MAX_CHANNELS\t64\n \n+struct rte_devargs *\n+vmbus_devargs_lookup(struct rte_vmbus_device *dev);\n+\n int vmbus_chan_create(const struct rte_vmbus_device *device,\n \t\t      uint16_t relid, uint16_t subid, uint8_t monitor_id,\n \t\t      struct vmbus_channel **new_chan);\ndiff --git a/drivers/bus/vmbus/vmbus_common.c b/drivers/bus/vmbus/vmbus_common.c\nindex c7165ad54fe2..979fabdcbb61 100644\n--- a/drivers/bus/vmbus/vmbus_common.c\n+++ b/drivers/bus/vmbus/vmbus_common.c\n@@ -85,7 +85,6 @@ vmbus_match(const struct rte_vmbus_driver *dr,\n \n \treturn false;\n }\n-\n /*\n  * If device ID match, call the devinit() function of the driver.\n  */\n@@ -204,6 +203,27 @@ vmbus_parse(const char *name, void *addr)\n \treturn ret;\n }\n \n+/*\n+ * scan for matching device args on command line\n+ * example:\n+ *\t-w 'vmbus(635a7ae3-091e-4410-ad59-667c4f8c04c3,latency=20)'\n+ */\n+struct rte_devargs *\n+vmbus_devargs_lookup(struct rte_vmbus_device *dev)\n+{\n+\tstruct rte_devargs *devargs;\n+\trte_uuid_t addr;\n+\n+\tRTE_EAL_DEVARGS_FOREACH(\"vmbus\", devargs) {\n+\t\tvmbus_parse(devargs->name, &addr);\n+\n+\t\tif (rte_uuid_compare(dev->device_id, addr) == 0)\n+\t\t\treturn devargs;\n+\t}\n+\treturn NULL;\n+\n+}\n+\n /* register vmbus driver */\n void\n rte_vmbus_register(struct rte_vmbus_driver *driver)\n",
    "prefixes": [
        "1/5"
    ]
}