Show a patch.

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

{
    "id": 410,
    "url": "https://patches.dpdk.org/api/patches/410/",
    "web_url": "https://patches.dpdk.org/patch/410/",
    "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-14-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-17T13:46:45",
    "name": "[dpdk-dev,v3,13/20] i40e: add log messages when rx bulk mode is not usable",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "164319aad09b347b74e64866ba87eb82b5f12a3e",
    "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/410/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/410/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/410/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "References": "<1410961612-8571-1-git-send-email-david.marchand@6wind.com>",
        "X-Mailman-Version": "2.1.15",
        "Date": "Wed, 17 Sep 2014 15:46:45 +0200",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1410961612-8571-14-git-send-email-david.marchand@6wind.com>",
        "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=s0KEOaCDcfhwpkpeALu7h2ccMszG6On5Js+m+6rJJWE=;\n\tb=TcYH2gEGu4i0QcQ1n98Vc0xkAD1mvXaO30L1nJonxdDgU8xJx8iDfMkEHDPizVfG6M\n\tOR2fxAcsmDDd4JYvZoKD7EZer6+inyq5RcoM6LqcXoFZP8cLBN1ymQpxuJQueudCzlM9\n\ts6ORxX4n2yHP5hxYFE2/QQX6T9uT3UhWorlX+HXVmgt9vnpTOjsmsc6o0I13tl8SC0bd\n\txnM154OnHlKEikjOYRgRLniBGRnGBw7qyK2LweS3g5oLf/QNymSY1qexk+AQDNkL2XSt\n\thAxj6MdnvpjDbOIJGdFqOhE+rPmO0VJ7gHl1ES8oOb6FwTk8MoKqgF+DhagXfg9VjvUD\n\tEacQ==",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id B7775B3DC;\n\tWed, 17 Sep 2014 15:41:47 +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 10AA7B3A4\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 15:41:44 +0200 (CEST)",
            "by mail-we0-f176.google.com with SMTP id q58so1454812wes.35\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 06:47:25 -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.22 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 17 Sep 2014 06:47:23 -0700 (PDT)"
        ],
        "X-Mailer": "git-send-email 1.7.10.4",
        "X-Received": "by 10.180.183.133 with SMTP id em5mr40679172wic.72.1410961644084;\n\tWed, 17 Sep 2014 06:47:24 -0700 (PDT)",
        "Subject": "[dpdk-dev] [PATCH v3 13/20] i40e: add log messages when rx bulk\n\tmode is not usable",
        "Precedence": "list",
        "X-Gm-Message-State": "ALoCoQniHyw1ge5kn3M9EsLiN+1fnc9Z66OQaznq3IMxWwzcNzUmWlo5yQoUTIGBaBIczbtbG8F6",
        "From": "David Marchand <david.marchand@6wind.com>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "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>",
        "Delivered-To": "patchwork@dpdk.org",
        "In-Reply-To": "<1410961612-8571-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>\nAcked-by: Bruce Richardson <bruce.richardson@intel.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 22f9fd5..481ebed 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+\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+\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 < (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+\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",
        "v3",
        "13/20"
    ]
}