Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/22448/?format=api
https://patches.dpdk.org/api/patches/22448/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20170327163035.76744-1-allain.legacy@windriver.com/", "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", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20170327163035.76744-1-allain.legacy@windriver.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20170327163035.76744-1-allain.legacy@windriver.com", "date": "2017-03-27T16:30:35", "name": "[dpdk-dev] net/i40e: mbuf alloc failed counter not incremented", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "cf938295572b7ced29e0382fa57b1e104d909d6c", "submitter": { "id": 679, "url": "https://patches.dpdk.org/api/people/679/?format=api", "name": "Allain Legacy", "email": "allain.legacy@windriver.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20170327163035.76744-1-allain.legacy@windriver.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/22448/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/22448/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 7ED8E11DE;\n\tMon, 27 Mar 2017 18:30:47 +0200 (CEST)", "from mail1.windriver.com (mail1.windriver.com [147.11.146.13])\n\tby dpdk.org (Postfix) with ESMTP id 00E2C11C5\n\tfor <dev@dpdk.org>; Mon, 27 Mar 2017 18:30:44 +0200 (CEST)", "from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com\n\t[147.11.189.40])\n\tby mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id v2RGUhWq010137\n\t(version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL);\n\tMon, 27 Mar 2017 09:30:43 -0700 (PDT)", "from yow-cgts4-lx.wrs.com (128.224.145.137) by\n\tALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server\n\t(TLS) id 14.3.294.0; Mon, 27 Mar 2017 09:30:41 -0700" ], "From": "Allain Legacy <allain.legacy@windriver.com>", "To": "<helin.zhang@intel.com>, <jingjing.wu@intel.com>", "CC": "<dev@dpdk.org>, <matt.peters@windriver.com>", "Date": "Mon, 27 Mar 2017 12:30:35 -0400", "Message-ID": "<20170327163035.76744-1-allain.legacy@windriver.com>", "X-Mailer": "git-send-email 2.12.1", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[128.224.145.137]", "Subject": "[dpdk-dev] [PATCH] net/i40e: mbuf alloc failed counter not\n\tincremented", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Matt Peters <matt.peters@windriver.com>\n\nWhen an mbuf alloc fails during the mempool get operation for the\ni40e bulk alloc receive function, the rx_mbuf_alloc_failed counter\nis not incremented to record the error.\n\nThis fix ensures consistency with the other i40e receive procedures and\nother net drivers.\n\nSigned-off-by: Matt Peters <matt.peters@windriver.com>\nSigned-off-by: Allain Legacy <allain.legacy@windriver.com>\n---\n drivers/net/i40e/i40e_rxtx.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex ec64a20eb..794d8717e 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -610,6 +610,7 @@ static inline uint16_t\n rx_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)\n {\n \tstruct i40e_rx_queue *rxq = (struct i40e_rx_queue *)rx_queue;\n+\tstruct rte_eth_dev *dev;\n \tuint16_t nb_rx = 0;\n \n \tif (!nb_pkts)\n@@ -630,6 +631,10 @@ rx_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)\n \t\t\tPMD_RX_LOG(DEBUG, \"Rx mbuf alloc failed for \"\n \t\t\t\t \"port_id=%u, queue_id=%u\",\n \t\t\t\t rxq->port_id, rxq->queue_id);\n+\n+\t\t\tdev = &rte_eth_devices[rxq->port_id];\n+\t\t\tdev->data->rx_mbuf_alloc_failed += rxq->rx_free_thresh;\n+\n \t\t\trxq->rx_nb_avail = 0;\n \t\t\trxq->rx_tail = (uint16_t)(rxq->rx_tail - nb_rx);\n \t\t\tfor (i = 0, j = rxq->rx_tail; i < nb_rx; i++, j++)\n", "prefixes": [ "dpdk-dev" ] }{ "id": 22448, "url": "