Show a patch.

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

{
    "id": 233,
    "url": "http://patches.dpdk.org/api/patches/233/",
    "web_url": "http://patches.dpdk.org/patch/233/",
    "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": "<1409062162-19575-8-git-send-email-david.marchand@6wind.com>",
    "date": "2014-08-26T14:09:17",
    "name": "[dpdk-dev,07/11] i40e: add log messages when rx bulk mode is not usable",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c87ca8676df6dc63d902b779f3edd7addf6c5204",
    "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/233/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/233/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/233/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<david.marchand@6wind.com>",
        "References": "<1409062162-19575-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": "Tue, 26 Aug 2014 14:05:40 -0000",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1409062162-19575-8-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=PqiFfIz8dSwm8LJawja7iV/Ejy7qMWaFacY9l3QWqGA=;\n\tb=W3RXrUU9w/94N699cVth9hSFp5ywH15tpEz4Bgz810pmMxYcLjjXLrk81Hzsc3zd15\n\tnVAgrcYId6Mp0LTyib7Y1971iEJp94j460Lh4f90Eld7GqPvZlW4wvVXWf39kAjpxF19\n\t8syZaW0N1bUoR6g6vyOzaYs9E3zAZRv4gXQ6usexzj7fn2eHmWADjpMFwMaxW1/J1+0G\n\tFBECeV52xKieZOvb2hs80jxOWyv3U2bSqOXI97Bzpzl1NnAWyOIOOlyN6wzL4z3yatPt\n\thrpgkGtYuO59PNvOeFCQOiwNAyVy2Ip90Qu89cgWoVdTkWOeuRVDjqE8tblR6cviCqIA\n\tESIw==",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Received": "by 10.194.77.180 with SMTP id t20mr2538523wjw.118.1409062179927; \n\tTue, 26 Aug 2014 07:09:39 -0700 (PDT)",
        "X-Mailer": "git-send-email 1.7.10.4",
        "Precedence": "list",
        "X-Gm-Message-State": "ALoCoQnNYF2/gIdCSeFfCkG1kxq2uWbLr5tshbwwXV2XJetBINddZ/fd+KH4SyFN3cNYkJAfwUAv",
        "Date": "Tue, 26 Aug 2014 16:09:17 +0200",
        "Subject": "[dpdk-dev] [PATCH 07/11] i40e: add log messages when rx bulk mode\n\tis not usable",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Received": [
            "from mail-we0-f182.google.com (mail-we0-f182.google.com\n\t[74.125.82.182]) by dpdk.org (Postfix) with ESMTP id DCDB5682E\n\tfor <dev@dpdk.org>; Tue, 26 Aug 2014 16:05:39 +0200 (CEST)",
            "by mail-we0-f182.google.com with SMTP id k48so14766419wev.41\n\tfor <dev@dpdk.org>; Tue, 26 Aug 2014 07:09:40 -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.38 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:39 -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": "<1409062162-19575-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_i40e/i40e_rxtx.c |   29 ++++++++++++++++++++++++-----\n 1 file changed, 24 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/lib/librte_pmd_i40e/i40e_rxtx.c b/lib/librte_pmd_i40e/i40e_rxtx.c\nindex d592ad6..de3701d 100644\n--- a/lib/librte_pmd_i40e/i40e_rxtx.c\n+++ b/lib/librte_pmd_i40e/i40e_rxtx.c\n@@ -537,15 +537,34 @@ check_rx_burst_bulk_alloc_preconditions(__rte_unused struct i40e_rx_queue *rxq)\n \tint ret = 0;\n \n #ifdef RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC\n-\tif (!(rxq->rx_free_thresh >= RTE_PMD_I40E_RX_MAX_BURST))\n+\tif (!(rxq->rx_free_thresh >= RTE_PMD_I40E_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_I40E_RX_MAX_BURST=%d\\n\",\n+\t\t\t     rxq->rx_free_thresh, RTE_PMD_I40E_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\",\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\",\n+\t\t\t     rxq->nb_rx_desc, rxq->rx_free_thresh);\n \t\tret = -EINVAL;\n-\telse if (!(rxq->nb_rx_desc < (I40E_MAX_RING_DESC -\n-\t\t\t\tRTE_PMD_I40E_RX_MAX_BURST)))\n+\t} else if (!(rxq->nb_rx_desc < (I40E_MAX_RING_DESC -\n+\t\t\t\tRTE_PMD_I40E_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     \"I40E_MAX_RING_DESC=%d, \"\n+\t\t\t     \"RTE_PMD_I40E_RX_MAX_BURST=%d\\n\",\n+\t\t\t     rxq->nb_rx_desc, I40E_MAX_RING_DESC,\n+\t\t\t     RTE_PMD_I40E_RX_MAX_BURST);\n \t\tret = -EINVAL;\n+\t}\n #else\n \tret = -EINVAL;\n #endif\n",
    "prefixes": [
        "dpdk-dev",
        "07/11"
    ]
}