Show a patch.

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

{
    "id": 416,
    "url": "https://patches.dpdk.org/api/patches/416/",
    "web_url": "https://patches.dpdk.org/patch/416/",
    "project": {
        "id": 1,
        "url": "https://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": "<1410961612-8571-20-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-17T13:46:51",
    "name": "[dpdk-dev,v3,19/20] e1000: add a message when forcing scatter mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "17d34325f3a6e104b2277e4edc7eae6185da9499",
    "submitter": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/people/3/",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/416/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/416/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/416/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Original-To": "patchwork@dpdk.org",
        "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:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=XxkQezn9fQN/HBQYmKn5Zs/Aj32jgErnXVmPwEN8Fzk=;\n\tb=G/bhZa28iJ9WwGhZKfhojnRLdIMF8OhJ86afdVgyUU8p+Vq1khYxzFbWUVm+R0TdRC\n\tQLiZJZAJtLwIQBr/g2aRAV5YpxjUC+jekQ3kJ7EOhIglKJozPAmUIqFhiI7/rMHiM476\n\tzCkqTqLjacvGbpiLdZifdbrUiv8LxC2wryD7jKBa1Xm00u1e6PkYWeVtDyYHPvNzZH3+\n\tv1suyi2bGwVp+b/0sr5u4EKcesN2wQ53rX4lenvLlUK5DofuVeWrlgDetdHYwF94TbJ1\n\t+/T9YfsMl+y0SHrXFnqcwRoXEBhH1zBbHZ2YbojLubnu63yw8Z6/8D1lCcvkAY2kaKjy\n\t9/oA==",
        "In-Reply-To": "<1410961612-8571-1-git-send-email-david.marchand@6wind.com>",
        "Precedence": "list",
        "Date": "Wed, 17 Sep 2014 15:46:51 +0200",
        "References": "<1410961612-8571-1-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "X-Gm-Message-State": "ALoCoQkJKXfdRgiIgEwfEx3p1YQO3bWHybEfp7P2Q2bz+A3Y1rsaumWiBNhN8R6iHWSqx7VDGwn7",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 63E3FB3F6;\n\tWed, 17 Sep 2014 15:41:57 +0200 (CEST)",
            "from mail-we0-f176.google.com (mail-we0-f176.google.com\n\t[74.125.82.176]) by dpdk.org (Postfix) with ESMTP id 84A86B3ED\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 15:41:53 +0200 (CEST)",
            "by mail-we0-f176.google.com with SMTP id q58so1480312wes.7\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 06:47:34 -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\tfa20sm5712872wic.1.2014.09.17.06.47.33 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 17 Sep 2014 06:47:34 -0700 (PDT)"
        ],
        "From": "David Marchand <david.marchand@6wind.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Message-Id": "<1410961612-8571-20-git-send-email-david.marchand@6wind.com>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH v3 19/20] e1000: add a message when forcing\n\tscatter mode",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Received": "by 10.180.188.13 with SMTP id fw13mr5610772wic.83.1410961654724; \n\tWed, 17 Sep 2014 06:47:34 -0700 (PDT)",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "Signed-off-by: David Marchand <david.marchand@6wind.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.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 444fd02..f7a9c3a 100644\n--- a/lib/librte_pmd_e1000/em_rxtx.c\n+++ b/lib/librte_pmd_e1000/em_rxtx.c\n@@ -1732,6 +1732,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 \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@@ -1739,6 +1741,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 \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 d615d3e..768cc0e 100644\n--- a/lib/librte_pmd_e1000/igb_rxtx.c\n+++ b/lib/librte_pmd_e1000/igb_rxtx.c\n@@ -1997,6 +1997,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 \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@@ -2006,6 +2009,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 \t\t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\t\tdev->data->scattered_rx = 1;\n \t\t}\n@@ -2027,6 +2032,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 \t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\tdev->data->scattered_rx = 1;\n \t}\n@@ -2261,6 +2268,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 \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@@ -2270,6 +2280,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 \t\t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\t\tdev->data->scattered_rx = 1;\n \t\t}\n@@ -2301,6 +2313,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 \t\tdev->rx_pkt_burst = eth_igb_recv_scattered_pkts;\n \t\tdev->data->scattered_rx = 1;\n \t}\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "19/20"
    ]
}