Show a patch.

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

{
    "id": 289,
    "url": "http://patches.dpdk.org/api/patches/289/",
    "web_url": "http://patches.dpdk.org/patch/289/",
    "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": "<1409567080-27083-17-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-01T10:24:39",
    "name": "[dpdk-dev,v2,16/17] e1000: add a message when forcing scatter mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5cfddee586e599c121f122790fb0d94d6116c2f6",
    "submitter": {
        "id": 3,
        "url": "http://patches.dpdk.org/api/people/3/",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/289/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/289/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/289/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<david.marchand@6wind.com>",
        "References": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>",
        "X-Mailman-Version": "2.1.15",
        "From": "David Marchand <david.marchand@6wind.com>",
        "X-List-Received-Date": "Mon, 01 Sep 2014 10:20:49 -0000",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1409567080-27083-17-git-send-email-david.marchand@6wind.com>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=iNyGL/IF+FbIc/DxKbfx4BDLaLQW8ebiPGNXz2GYOwM=;\n\tb=dCjBP/7Dv0jvzMgScMR5Xtl0HbN5/adF8UUifr323MQfoj2BDiSCRTuU28fNBQswTA\n\tS8I/OzT7YcKtOIfJImLpmb56wbrV0FdRtisOGHwqjf6z3iD7cUR2wCIA1SJKjFUDvLV4\n\tCZk6KI8qY1R+LfBfukrQiwsVHfkebNYQGEsz4ofZUliciNb4vE3jXL4+ctPIvT6U/RYR\n\tOmdsEGsOY46Rb2dopsNzKqLVs6uMsDdWhPjsjTAQhA+gU35YTEXHSVuxUr4H71TSReRv\n\t6qGzJlc6mYUcJ92njqWjQiiLfEuaCGQWNH9DMdg3muEiStR0as4r2+OjUu81s7B2JAIW\n\tflIQ==",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Received": "by 10.194.81.37 with SMTP id w5mr32061322wjx.12.1409567116245;\n\tMon, 01 Sep 2014 03:25:16 -0700 (PDT)",
        "X-Mailer": "git-send-email 1.7.10.4",
        "Precedence": "list",
        "X-Gm-Message-State": "ALoCoQkHyCEowra37Rnlq0LgatOSAaCeQfDS1NTcLhq42gdmTV+6MV22Fx0QyucP2ioPUK57wP43",
        "Date": "Mon,  1 Sep 2014 12:24:39 +0200",
        "Subject": "[dpdk-dev] [PATCH v2 16/17] e1000: add a message when forcing\n\tscatter mode",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Received": [
            "from mail-wi0-f175.google.com (mail-wi0-f175.google.com\n\t[209.85.212.175]) by dpdk.org (Postfix) with ESMTP id 54535B3EC\n\tfor <dev@dpdk.org>; Mon,  1 Sep 2014 12:20:49 +0200 (CEST)",
            "by mail-wi0-f175.google.com with SMTP id ho1so12310524wib.14\n\tfor <dev@dpdk.org>; Mon, 01 Sep 2014 03:25:16 -0700 (PDT)",
            "from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\tlm18sm24287018wic.22.2014.09.01.03.25.14 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 01 Sep 2014 03:25:15 -0700 (PDT)"
        ],
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "In-Reply-To": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "To": "dev@dpdk.org"
    },
    "content": "Signed-off-by: David Marchand <david.marchand@6wind.com>\n---\n lib/librte_pmd_e1000/em_rxtx.c  |    4 ++++\n lib/librte_pmd_e1000/igb_rxtx.c |   14 ++++++++++++++\n 2 files changed, 18 insertions(+)",
    "diff": "diff --git a/lib/librte_pmd_e1000/em_rxtx.c b/lib/librte_pmd_e1000/em_rxtx.c\nindex 83ecb33..a6cea32 100644\n--- a/lib/librte_pmd_e1000/em_rxtx.c\n+++ b/lib/librte_pmd_e1000/em_rxtx.c\n@@ -1707,6 +1707,8 @@ eth_em_rx_init(struct rte_eth_dev *dev)\n \t\t */\n \t\tif (dev->data->dev_conf.rxmode.jumbo_frame ||\n \t\t\t\trctl_bsize < ETHER_MAX_LEN) {\n+\t\t\tif (!dev->data->scattered_rx)\n+\t\t\t\tPMD_INIT_LOG(DEBUG, \"forcing scatter mode\\n\");\n \t\t\tdev->rx_pkt_burst =\n \t\t\t\t(eth_rx_burst_t)eth_em_recv_scattered_pkts;\n \t\t\tdev->data->scattered_rx = 1;\n@@ -1714,6 +1716,8 @@ eth_em_rx_init(struct rte_eth_dev *dev)\n \t}\n \n \tif (dev->data->dev_conf.rxmode.enable_scatter) {\n+\t\tif (!dev->data->scattered_rx)\n+\t\t\tPMD_INIT_LOG(DEBUG, \"forcing scatter mode\\n\");\n \t\tdev->rx_pkt_burst = eth_em_recv_scattered_pkts;\n \t\tdev->data->scattered_rx = 1;\n \t}\ndiff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxtx.c\nindex 5ca06c9..1d8f74a 100644\n--- a/lib/librte_pmd_e1000/igb_rxtx.c\n+++ b/lib/librte_pmd_e1000/igb_rxtx.c\n@@ -1978,6 +1978,9 @@ eth_igb_rx_init(struct rte_eth_dev *dev)\n \t\t\t/* It adds dual VLAN length for supporting dual VLAN */\n \t\t\tif ((dev->data->dev_conf.rxmode.max_rx_pkt_len +\n \t\t\t\t\t\t2 * VLAN_TAG_SIZE) > buf_size){\n+\t\t\t\tif (!dev->data->scattered_rx)\n+\t\t\t\t\tPMD_INIT_LOG(DEBUG,\n+\t\t\t\t\t\t     \"forcing scatter mode\\n\");\n \t\t\t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\t\t\tdev->data->scattered_rx = 1;\n \t\t\t}\n@@ -1987,6 +1990,8 @@ eth_igb_rx_init(struct rte_eth_dev *dev)\n \t\t\t */\n \t\t\tif ((rctl_bsize == 0) || (rctl_bsize > buf_size))\n \t\t\t\trctl_bsize = buf_size;\n+\t\t\tif (!dev->data->scattered_rx)\n+\t\t\t\tPMD_INIT_LOG(DEBUG, \"forcing scatter mode\\n\");\n \t\t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\t\tdev->data->scattered_rx = 1;\n \t\t}\n@@ -2008,6 +2013,8 @@ eth_igb_rx_init(struct rte_eth_dev *dev)\n \t}\n \n \tif (dev->data->dev_conf.rxmode.enable_scatter) {\n+\t\tif (!dev->data->scattered_rx)\n+\t\t\tPMD_INIT_LOG(DEBUG, \"forcing scatter mode\\n\");\n \t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\tdev->data->scattered_rx = 1;\n \t}\n@@ -2242,6 +2249,9 @@ eth_igbvf_rx_init(struct rte_eth_dev *dev)\n \t\t\t/* It adds dual VLAN length for supporting dual VLAN */\n \t\t\tif ((dev->data->dev_conf.rxmode.max_rx_pkt_len +\n \t\t\t\t\t\t2 * VLAN_TAG_SIZE) > buf_size){\n+\t\t\t\tif (!dev->data->scattered_rx)\n+\t\t\t\t\tPMD_INIT_LOG(DEBUG,\n+\t\t\t\t\t\t     \"forcing scatter mode\\n\");\n \t\t\t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\t\t\tdev->data->scattered_rx = 1;\n \t\t\t}\n@@ -2251,6 +2261,8 @@ eth_igbvf_rx_init(struct rte_eth_dev *dev)\n \t\t\t */\n \t\t\tif ((rctl_bsize == 0) || (rctl_bsize > buf_size))\n \t\t\t\trctl_bsize = buf_size;\n+\t\t\tif (!dev->data->scattered_rx)\n+\t\t\t\tPMD_INIT_LOG(DEBUG, \"forcing scatter mode\\n\");\n \t\t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\t\tdev->data->scattered_rx = 1;\n \t\t}\n@@ -2282,6 +2294,8 @@ eth_igbvf_rx_init(struct rte_eth_dev *dev)\n \t}\n \n \tif (dev->data->dev_conf.rxmode.enable_scatter) {\n+\t\tif (!dev->data->scattered_rx)\n+\t\t\tPMD_INIT_LOG(DEBUG, \"forcing scatter mode\\n\");\n \t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\tdev->data->scattered_rx = 1;\n \t}\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "16/17"
    ]
}