Show a patch.

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

{
    "id": 404,
    "url": "https://patches.dpdk.org/api/patches/404/",
    "web_url": "https://patches.dpdk.org/patch/404/",
    "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-8-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-17T13:46:39",
    "name": "[dpdk-dev,v3,07/20] ixgbe: add log messages when rx bulk mode is not usable",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6c8d9b20bd750780696c56607a3eeccad94dd4f9",
    "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/404/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/404/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/404/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=c24GJ50o2T8GetHjspzZnTgpcTS74SKBs4fNG5vMPmY=;\n\tb=fcxaaEOlFf9mSGSFzOLxRGFdP+eFArZBmEZ5tzmpmgwtIRNOyDaqdwr3LRgxS+IUlD\n\tXzNgrkGInt4eCojPc157f6aw5NEEXWOW7bWnCojAW8apWMw91vmcNiTQFQKAdSoy6rBg\n\tONlVkOwOxMKsDmwM/+UkRxUdZhMCmPJFQ6gy3Xxim/O+N/JCRD3s7VxkHYqZsAx6b4Xv\n\ts2uJMeKEzKxBQPDeAQshbcoKlW6SozB8CcILdmQ/PLQke7xedRQsHqKpBZOWpyVbq88+\n\tmBj1qjBVL/2oqOEdWnIUffW5g7N0DO5szV/BzYcBFEfvzAmXy5oXv5soXU7NL2/shyeD\n\t8bqA==",
        "In-Reply-To": "<1410961612-8571-1-git-send-email-david.marchand@6wind.com>",
        "Precedence": "list",
        "Date": "Wed, 17 Sep 2014 15:46:39 +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": "ALoCoQkEuCD94Tb2AK+jIolh55CaErQFJeQYcKlOJ62EZQC+FE2AakPK3nzwizyQiIAOqpEvV//m",
        "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 1E294B3A1;\n\tWed, 17 Sep 2014 15:41:37 +0200 (CEST)",
            "from mail-wi0-f182.google.com (mail-wi0-f182.google.com\n\t[209.85.212.182]) by dpdk.org (Postfix) with ESMTP id 3A9FBB39D\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 15:41:33 +0200 (CEST)",
            "by mail-wi0-f182.google.com with SMTP id e4so1267538wiv.3\n\tfor <dev@dpdk.org>; Wed, 17 Sep 2014 06:47:14 -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.10 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 17 Sep 2014 06:47:13 -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-8-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 07/20] 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>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Received": "by 10.180.210.231 with SMTP id mx7mr5728565wic.42.1410961634397; \n\tWed, 17 Sep 2014 06:47:14 -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_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 98fbd46..4876feb 100644\n--- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c\n+++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c\n@@ -1976,15 +1976,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",
        "v3",
        "07/20"
    ]
}