Show a patch.

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

{
    "id": 279,
    "url": "https://patches.dpdk.org/api/patches/279/?format=api",
    "web_url": "https://patches.dpdk.org/patch/279/",
    "project": {
        "id": 1,
        "url": "https://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": "<1409567080-27083-7-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-01T10:24:29",
    "name": "[dpdk-dev,v2,06/17] ixgbe: add log messages when rx bulk mode is not usable",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6c8d9b20bd750780696c56607a3eeccad94dd4f9",
    "submitter": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/people/3/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/279/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/279/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/279/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Return-Path": "<david.marchand@6wind.com>",
        "Message-Id": "<1409567080-27083-7-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "X-Gm-Message-State": "ALoCoQnzDqxVIBo8Zcm7J2z4OsW/Hv8qDU3VzBViCKNHKMTFe29RTTpC72hS5mhVZueoDN76jSVt",
        "To": "dev@dpdk.org",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from mail-wi0-f169.google.com (mail-wi0-f169.google.com\n\t[209.85.212.169]) by dpdk.org (Postfix) with ESMTP id 5A020B3BA\n\tfor <dev@dpdk.org>; Mon,  1 Sep 2014 12:20:28 +0200 (CEST)",
            "by mail-wi0-f169.google.com with SMTP id n3so2360360wiv.2\n\tfor <dev@dpdk.org>; Mon, 01 Sep 2014 03:24:55 -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.24.53 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 01 Sep 2014 03:24:54 -0700 (PDT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 06/17] ixgbe: add log messages when rx bulk\n\tmode is not usable",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "In-Reply-To": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>",
        "Precedence": "list",
        "From": "David Marchand <david.marchand@6wind.com>",
        "X-Received": "by 10.180.20.196 with SMTP id p4mr20582995wie.56.1409567095277; \n\tMon, 01 Sep 2014 03:24:55 -0700 (PDT)",
        "References": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>",
        "X-List-Received-Date": "Mon, 01 Sep 2014 10:20:28 -0000",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Date": "Mon,  1 Sep 2014 12:24:29 +0200",
        "X-Mailman-Version": "2.1.15",
        "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=IMXB8z28gVOnmZAF1N1SnInIjr6UOWOQ7yf0NQsTgGE=;\n\tb=a/zNJ6vatz5DsZ5YgWdTKJ8u++9w/bRLyDrfH2Fi5NMQIPcC1O1QOGs2oKEn4307r/\n\t90TbuBzTSV8KwfUssUlqLnpcdU2YKV72hm2YGmQBegH1Uhz71ae/HsHeNefcPtHEeExq\n\t46echBGPqsNSDLksUj2hNFyJF03TFxJWnGK0EMNzNSkwzG/udUX6Elr4vs1dPYPE0nQu\n\tZvUrXgNVxVzWztEmthLuml/pqjVALBsDRpHXFL8lF7BFJp8sesbH0mNtz9QcLii79/cw\n\tkuMgYswAJvqRuKiuQZ4eqvvLcW4bwMBsSkhiOo9NFp96HWbuRbqW9zYTnoQd1SoQikt5\n\tR83A=="
    },
    "content": "Signed-off-by: David Marchand <david.marchand@6wind.com>\n---\n lib/librte_pmd_ixgbe/ixgbe_rxtx.c |   29 ++++++++++++++++++++++++-----\n 1 file changed, 24 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c\nindex dbbe612..f1cecf7 100644\n--- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c\n+++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c\n@@ -1975,15 +1975,34 @@ check_rx_burst_bulk_alloc_preconditions(__rte_unused struct igb_rx_queue *rxq)\n \t * outside of this function.\n \t */\n #ifdef RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC\n-\tif (! (rxq->rx_free_thresh >= RTE_PMD_IXGBE_RX_MAX_BURST))\n+\tif (!(rxq->rx_free_thresh >= RTE_PMD_IXGBE_RX_MAX_BURST)) {\n+\t\tPMD_INIT_LOG(DEBUG, \"Rx Burst Bulk Alloc Preconditions: \"\n+\t\t\t     \"rxq->rx_free_thresh=%d, \"\n+\t\t\t     \"RTE_PMD_IXGBE_RX_MAX_BURST=%d\",\n+\t\t\t     rxq->rx_free_thresh, RTE_PMD_IXGBE_RX_MAX_BURST);\n \t\tret = -EINVAL;\n-\telse if (! (rxq->rx_free_thresh < rxq->nb_rx_desc))\n+\t} else if (!(rxq->rx_free_thresh < rxq->nb_rx_desc)) {\n+\t\tPMD_INIT_LOG(DEBUG, \"Rx Burst Bulk Alloc Preconditions: \"\n+\t\t\t     \"rxq->rx_free_thresh=%d, \"\n+\t\t\t     \"rxq->nb_rx_desc=%d\",\n+\t\t\t     rxq->rx_free_thresh, rxq->nb_rx_desc);\n \t\tret = -EINVAL;\n-\telse if (! ((rxq->nb_rx_desc % rxq->rx_free_thresh) == 0))\n+\t} else if (!((rxq->nb_rx_desc % rxq->rx_free_thresh) == 0)) {\n+\t\tPMD_INIT_LOG(DEBUG, \"Rx Burst Bulk Alloc Preconditions: \"\n+\t\t\t     \"rxq->nb_rx_desc=%d, \"\n+\t\t\t     \"rxq->rx_free_thresh=%d\",\n+\t\t\t     rxq->nb_rx_desc, rxq->rx_free_thresh);\n \t\tret = -EINVAL;\n-\telse if (! (rxq->nb_rx_desc <\n-\t       (IXGBE_MAX_RING_DESC - RTE_PMD_IXGBE_RX_MAX_BURST)))\n+\t} else if (!(rxq->nb_rx_desc <\n+\t       (IXGBE_MAX_RING_DESC - RTE_PMD_IXGBE_RX_MAX_BURST))) {\n+\t\tPMD_INIT_LOG(DEBUG, \"Rx Burst Bulk Alloc Preconditions: \"\n+\t\t\t     \"rxq->nb_rx_desc=%d, \"\n+\t\t\t     \"IXGBE_MAX_RING_DESC=%d, \"\n+\t\t\t     \"RTE_PMD_IXGBE_RX_MAX_BURST=%d\",\n+\t\t\t     rxq->nb_rx_desc, IXGBE_MAX_RING_DESC,\n+\t\t\t     RTE_PMD_IXGBE_RX_MAX_BURST);\n \t\tret = -EINVAL;\n+\t}\n #else\n \tret = -EINVAL;\n #endif\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "06/17"
    ]
}