Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/43697/?format=api
http://patchwork.dpdk.org/api/patches/43697/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1534176226-21911-2-git-send-email-david.marchand@6wind.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1534176226-21911-2-git-send-email-david.marchand@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1534176226-21911-2-git-send-email-david.marchand@6wind.com", "date": "2018-08-13T16:03:46", "name": "[RFC,2/2] ethdev: check received mbufs sanity", "commit_ref": null, "pull_url": null, "state": "rfc", "archived": true, "hash": "9f8d674ed77ed4e770d99c52587843c90f5a88c0", "submitter": { "id": 3, "url": "http://patchwork.dpdk.org/api/people/3/?format=api", "name": "David Marchand", "email": "david.marchand@6wind.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1534176226-21911-2-git-send-email-david.marchand@6wind.com/mbox/", "series": [ { "id": 974, "url": "http://patchwork.dpdk.org/api/series/974/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=974", "date": "2018-08-13T16:03:45", "name": "[RFC,1/2] mbuf: add a sanity check on segment metadata", "version": 1, "mbox": "http://patchwork.dpdk.org/series/974/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/43697/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/43697/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4686F49CF;\n\tMon, 13 Aug 2018 18:04:29 +0200 (CEST)", "from mail-wm0-f68.google.com (mail-wm0-f68.google.com\n\t[74.125.82.68]) by dpdk.org (Postfix) with ESMTP id 9618D493D\n\tfor <dev@dpdk.org>; Mon, 13 Aug 2018 18:04:28 +0200 (CEST)", "by mail-wm0-f68.google.com with SMTP id w24-v6so9342083wmc.1\n\tfor <dev@dpdk.org>; Mon, 13 Aug 2018 09:04:28 -0700 (PDT)", "from 6wind.com (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tm207-v6sm10613247wma.31.2018.08.13.09.04.27\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 13 Aug 2018 09:04:27 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=F8ay8Sr30dnYt6hsKjgTHghlrOSSEb07gwA0PfNGyjI=;\n\tb=BtOgwK0sdDm0XwRyz7QV3iAyH3fVEmd1DaielanTWP3nXhqTvKEXTQYtnVJL1bjkVO\n\tTBK1k6GtXC09oWTvlVffsu5SMnvue5U3KPlxejAgkuy3K+vfwYDpoqvRYzkhRTQ7xl0q\n\thybwwSPJD5uSVJ1G63uWAE4agT/hbmuuPwJhl0lcPF/He9+dXfHqGIze+zavTEnIf6DJ\n\tLHWF0g/YdIU+BUu9jY3cp+8Rwww19C/1CCQisUZA/Kt9gnmONyOL77cjdG7iAQQGQpML\n\ttMLjsM3SMEQDmabyrfBgdmx4MsmvrYZWODCumaxhvhUb+w1M5AVRs0y+Kte72ML1/Bi9\n\tiF2A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=F8ay8Sr30dnYt6hsKjgTHghlrOSSEb07gwA0PfNGyjI=;\n\tb=KFnIiSNM7QsnyN57d+X76ebobuUNJtlrwJSvk7dWXobswqVyNKO8sbUy+1Hu7gLnUv\n\t+ZB3x+3Uw7luEnEGqJRoCOTteoUYAqlYJACri7qZS5ZIyRKbBlP+olCdor3ZLWFtQQ6U\n\tZwyL8CQUhW/+GkpyNlT1mMkuEZKuNrvra8G1zFf4czaBkVx6Hp3KZGRZAPNVNhmgNn3A\n\tMXtCedX8pmljBtnCcZMmF8G7EJHxai+wWdimFg9fVOud5fXtCEfL4L93FqWWqL5u6sZL\n\tNSJuUilaII2tPhqgycq2hWDT+17iO1/U249vLb2y0zqY2duUV1xZj95PVOGu/pv2+dR/\n\tibsg==", "X-Gm-Message-State": "AOUpUlEZDBESliAZT67bUKTa09LSlbQItvhgtr23IJWRxKHPHoQaRvp1\n\tOPKtDtA8cpEjnXmPWolAicD+Z7A9Bfs=", "X-Google-Smtp-Source": "AA+uWPxVDJFtBlUxJ/GsezSrJjYOX8NZCoJv+0NCCtxkALD+pnul1W4Q4CAcebOqFlT75oHGqDjmfQ==", "X-Received": "by 2002:a1c:7c13:: with SMTP id\n\tx19-v6mr8949272wmc.27.1534176268016; \n\tMon, 13 Aug 2018 09:04:28 -0700 (PDT)", "From": "David Marchand <david.marchand@6wind.com>", "To": "dev@dpdk.org", "Cc": "Thomas Monjalon <thomas@monjalon.net>,\n\tFerruh Yigit <ferruh.yigit@intel.com>,\n\tAndrew Rybchenko <arybchenko@solarflare.com>,\n\tOlivier Matz <olivier.matz@6wind.com>", "Date": "Mon, 13 Aug 2018 18:03:46 +0200", "Message-Id": "<1534176226-21911-2-git-send-email-david.marchand@6wind.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1534176226-21911-1-git-send-email-david.marchand@6wind.com>", "References": "<1534176226-21911-1-git-send-email-david.marchand@6wind.com>", "Subject": "[dpdk-dev] [RFC 2/2] ethdev: check received mbufs sanity", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Let's check the mbufs given by the drivers directly in the rx handler.\nThe only drawback is that you need CONFIG_RTE_LIBRTE_MBUF_DEBUG to be set\nfor this to actually do some real checks.\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n lib/librte_ethdev/rte_ethdev.h | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\nindex 7070e9a..8843307 100644\n--- a/lib/librte_ethdev/rte_ethdev.h\n+++ b/lib/librte_ethdev/rte_ethdev.h\n@@ -3803,6 +3803,7 @@ rte_eth_rx_burst(uint16_t port_id, uint16_t queue_id,\n {\n \tstruct rte_eth_dev *dev = &rte_eth_devices[port_id];\n \tuint16_t nb_rx;\n+\tuint16_t index;\n \n #ifdef RTE_LIBRTE_ETHDEV_DEBUG\n \tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, 0);\n@@ -3816,6 +3817,9 @@ rte_eth_rx_burst(uint16_t port_id, uint16_t queue_id,\n \tnb_rx = (*dev->rx_pkt_burst)(dev->data->rx_queues[queue_id],\n \t\t\t\t rx_pkts, nb_pkts);\n \n+\tfor (index = 0; index < nb_rx; index++)\n+\t\t__rte_mbuf_sanity_check(rx_pkts[index], 1);\n+\n #ifdef RTE_ETHDEV_RXTX_CALLBACKS\n \tif (unlikely(dev->post_rx_burst_cbs[queue_id] != NULL)) {\n \t\tstruct rte_eth_rxtx_callback *cb =\n", "prefixes": [ "RFC", "2/2" ] }{ "id": 43697, "url": "