Show a patch.

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

{
    "id": 236,
    "url": "https://patches.dpdk.org/api/patches/236/",
    "web_url": "https://patches.dpdk.org/patch/236/",
    "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": "<1409062162-19575-11-git-send-email-david.marchand@6wind.com>",
    "date": "2014-08-26T14:09:20",
    "name": "[dpdk-dev,10/11] e1000: add a message when forcing scatter mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5cfddee586e599c121f122790fb0d94d6116c2f6",
    "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/236/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/236/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/236/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "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=d7Cj1cnTBx8MZ+HSLHGupk7qjbTsv1zkjDrDprWykdE=;\n\tb=hpTFR3CPLiEWsAT8+0U4qY2OO/LY6e28unML5RG8chOaNnW4L9MjSrLXmdxJwwZvHR\n\tNvINAOGMXWOmHHxMyBC5pF6vFiLv2E/25ltl5Pbtn2u7rSDeAF8Kv75RkNR8PieywE0I\n\t22xFQHbWeeTA1ynannuY6JSIVM4dTw27PVuMTBFuZJosB1PAOQpEFnnJ68w8Cxgq16ll\n\tB2136ntb1H12qrWEfCDfAgjTKaRbolb8MljzuA5o4mR1XfMqEGFcMghkM9zNZPNm8yKj\n\tGvuukXj9B7t2sfHYjwQIZUW2oU5rDYMpfpQ1322CxJh4b/DjQIwkGBI2RrvlzrftHfxi\n\tmztw==",
        "In-Reply-To": "<1409062162-19575-1-git-send-email-david.marchand@6wind.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<1409062162-19575-1-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "X-Gm-Message-State": "ALoCoQlVKWB+p/9N1ygHuJu1RMiWzbAo1ju39EnYZjq8cb72yyIiyJJ6puV8s5zThKR1rTQiRQre",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "To": "dev@dpdk.org",
        "Date": "Tue, 26 Aug 2014 16:09:20 +0200",
        "Received": [
            "from mail-wi0-f172.google.com (mail-wi0-f172.google.com\n\t[209.85.212.172]) by dpdk.org (Postfix) with ESMTP id 88774B37C\n\tfor <dev@dpdk.org>; Tue, 26 Aug 2014 16:05:44 +0200 (CEST)",
            "by mail-wi0-f172.google.com with SMTP id n3so4267838wiv.5\n\tfor <dev@dpdk.org>; Tue, 26 Aug 2014 07:09:44 -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\tcy9sm12543569wib.18.2014.08.26.07.09.43 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 26 Aug 2014 07:09:43 -0700 (PDT)"
        ],
        "From": "David Marchand <david.marchand@6wind.com>",
        "Precedence": "list",
        "Message-Id": "<1409062162-19575-11-git-send-email-david.marchand@6wind.com>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 10/11] e1000: add a message when forcing scatter\n\tmode",
        "X-List-Received-Date": "Tue, 26 Aug 2014 14:05:46 -0000",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Return-Path": "<david.marchand@6wind.com>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Received": "by 10.180.92.134 with SMTP id cm6mr22600893wib.72.1409062184503; \n\tTue, 26 Aug 2014 07:09:44 -0700 (PDT)",
        "X-Mailman-Version": "2.1.15"
    },
    "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 fd082f8..19d18e7 100644\n--- a/lib/librte_pmd_e1000/em_rxtx.c\n+++ b/lib/librte_pmd_e1000/em_rxtx.c\n@@ -1703,6 +1703,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@@ -1710,6 +1712,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 9a34710..ddcd84c 100644\n--- a/lib/librte_pmd_e1000/igb_rxtx.c\n+++ b/lib/librte_pmd_e1000/igb_rxtx.c\n@@ -1980,6 +1980,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@@ -1989,6 +1992,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@@ -2010,6 +2015,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@@ -2244,6 +2251,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@@ -2253,6 +2263,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@@ -2284,6 +2296,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",
        "10/11"
    ]
}