Show a patch.

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

{
    "id": 43658,
    "url": "http://patches.dpdk.org/api/patches/43658/",
    "web_url": "http://patches.dpdk.org/patch/43658/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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": "<20180809175008.5787-4-stephen@networkplumber.org>",
    "date": "2018-08-09T17:50:07",
    "name": "[3/4] netvsc: set lower host latency",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "8c4db95e9f3f5947012d9fcc9154430e64336087",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patches.dpdk.org/patch/43658/mbox/",
    "series": [
        {
            "id": 954,
            "url": "http://patches.dpdk.org/api/series/954/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=954",
            "date": "2018-08-09T17:50:04",
            "name": "netvsc performance enhancements",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/954/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/43658/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/43658/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "To": "dev@dpdk.org",
        "X-Google-Smtp-Source": "AA+uWPxKwO4aE/y/3mKW/veACdxwDVEHLgooDzSymLYcu1/kcYxuFBFpVL0aaB2umDm+TwFEJsdaJA==",
        "Message-Id": "<20180809175008.5787-4-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.18.0",
        "X-Gm-Message-State": "AOUpUlHhFQrQEdGD8rTlx14rBOjMxfCNSFizE/hfc2DYwMJPQhBV8vgr\n\tKNFkkfMXueU2bYFHy/EvaTEdxJZhnxA=",
        "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=IYwAZM5k+hA/eCg9O32LSRpYihlnI2z3PKLqtq/xiFk=;\n\tb=eaKYvXBA37f+iMtIeHQMaVA/6d3nUxVkHrV6ghXFwRRIbZC6KzmoY3y2h0G9LcFeGh\n\tI11z9goNvATWE/S7Q9hWOV5ZFcnas5TkHIBolPF1eqI3+DSXp1Owj/dZ2QYha4zHQEeO\n\t2RCSz1/HpfZBso9pi9LqSrMAJNINfw+v21xeArRZEp5Xrb2WA9k3hFkW7Hy1nJNizKOE\n\t5dpOCak4HXchGYBB/505PuBkCdgDTFPwCGjpA7t5PDuXLu8+99Ipg/xt5uEiA5I4ZZ5+\n\tVSBZ4+izQL1mp+mJ/njI6J6LCx49KD3GZWztfao9OUN4iOC2ArAskxQJzIdYY/ipd8Cf\n\tAckw==",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E00494C7B;\n\tThu,  9 Aug 2018 19:50:27 +0200 (CEST)",
            "from mail-pg1-f194.google.com (mail-pg1-f194.google.com\n\t[209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 9DB92343C\n\tfor <dev@dpdk.org>; Thu,  9 Aug 2018 19:50:22 +0200 (CEST)",
            "by mail-pg1-f194.google.com with SMTP id k3-v6so3090828pgq.5\n\tfor <dev@dpdk.org>; Thu, 09 Aug 2018 10:50:22 -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\tn22-v6sm14993873pfj.68.2018.08.09.10.50.19\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 09 Aug 2018 10:50:20 -0700 (PDT)"
        ],
        "Subject": "[dpdk-dev] [PATCH 3/4] netvsc: set lower host latency",
        "In-Reply-To": "<20180809175008.5787-1-stephen@networkplumber.org>",
        "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-Post": "<mailto:dev@dpdk.org>",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n\tStephen Hemminger <sthemmin@microsoft.com>",
        "Precedence": "list",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "X-Received": "by 2002:a62:569c:: with SMTP id\n\th28-v6mr3382437pfj.201.1533837021478; \n\tThu, 09 Aug 2018 10:50:21 -0700 (PDT)",
        "References": "<20180809175008.5787-1-stephen@networkplumber.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Delivered-To": "patchwork@dpdk.org",
        "Date": "Thu,  9 Aug 2018 10:50:07 -0700",
        "X-Mailman-Version": "2.1.15",
        "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=IYwAZM5k+hA/eCg9O32LSRpYihlnI2z3PKLqtq/xiFk=;\n\tb=cfrYEop+nRlp6fc99GcS5QwE54WNSX1f0jPLhaN4ZsrsjG7B8lyfBmirtlEkCdJkMJ\n\tOsCMDRhhzOuNJwmVURpYUCgzuP+DMhxUp3QXUDur51Ren0uG9zl2hyt7o6y+BOhitZa2\n\tFlUxuJRqeEsljKxPPLEwh2mWm7jBuShBOWtJpZWMEy9l5tF22Mxt54ltujDOACQuLXuM\n\t6rYDLJPrgeRJ+hDaYwaH303W3OXdpI0cjVDoaoNz07Hf3MR0Ug0xCtvQ+wdk6GANy5Uc\n\th8pjwhz50wR7C2wDmv/IFlQCEGZcMczvJFBsKL49HkSZrZnaxEKXVqlumaYU1C3Qff1+\n\tEKlw=="
    },
    "content": "Tune the vmbus connection so the host scans faster. This improves\ntransmit performance. The host default value is 100us but setting\nto 50us reduces packet loss significantly.\n\nSigned-off-by: Stephen Hemminger <sthemmin@microsoft.com>\n---\n drivers/net/netvsc/hn_ethdev.c | 6 ++++++\n drivers/net/netvsc/hn_var.h    | 3 +++\n 2 files changed, 9 insertions(+)",
    "diff": "diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c\nindex 78b842ba2d68..148e6a33d682 100644\n--- a/drivers/net/netvsc/hn_ethdev.c\n+++ b/drivers/net/netvsc/hn_ethdev.c\n@@ -264,6 +264,9 @@ static int hn_subchan_configure(struct hn_data *hv,\n \t\t\treturn err;\n \t\t}\n \n+\t\trte_vmbus_set_latency(hv->vmbus, new_sc,\n+\t\t\t\t      HN_CHAN_LATENCY_NS);\n+\n \t\tretry = 0;\n \t\tchn_index = rte_vmbus_sub_channel_index(new_sc);\n \t\tif (chn_index == 0 || chn_index > hv->max_queues) {\n@@ -629,6 +632,9 @@ eth_hn_dev_init(struct rte_eth_dev *eth_dev)\n \tif (err)\n \t\treturn err;\n \n+\trte_vmbus_set_latency(hv->vmbus, hv->channels[0],\n+\t\t\t      HN_CHAN_LATENCY_NS);\n+\n \thv->primary = hn_rx_queue_alloc(hv, 0,\n \t\t\t\t\teth_dev->device->numa_node);\n \ndiff --git a/drivers/net/netvsc/hn_var.h b/drivers/net/netvsc/hn_var.h\nindex f7ff8585bc1c..b3e0a93d45df 100644\n--- a/drivers/net/netvsc/hn_var.h\n+++ b/drivers/net/netvsc/hn_var.h\n@@ -20,6 +20,9 @@\n /* Retry interval */\n #define HN_CHAN_INTERVAL_US\t100\n \n+/* Host monitor interval */\n+#define HN_CHAN_LATENCY_NS\t50000\n+\n /* Buffers need to be aligned */\n #ifndef PAGE_SIZE\n #define PAGE_SIZE 4096\n",
    "prefixes": [
        "3/4"
    ]
}