Cover Detail
Show a cover letter.
GET /api/covers/49459/?format=api
http://patches.dpdk.org/api/covers/49459/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/cover/1546851432-19397-1-git-send-email-david.marchand@redhat.com/", "project": { "id": 1, "url": "http://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": "<1546851432-19397-1-git-send-email-david.marchand@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1546851432-19397-1-git-send-email-david.marchand@redhat.com", "date": "2019-01-07T08:57:09", "name": "[v2,0/3] segment sanity checks", "submitter": { "id": 1173, "url": "http://patches.dpdk.org/api/people/1173/?format=api", "name": "David Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/cover/1546851432-19397-1-git-send-email-david.marchand@redhat.com/mbox/", "series": [ { "id": 3026, "url": "http://patches.dpdk.org/api/series/3026/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3026", "date": "2019-01-07T08:57:09", "name": "segment sanity checks", "version": 2, "mbox": "http://patches.dpdk.org/series/3026/mbox/" } ], "comments": "http://patches.dpdk.org/api/covers/49459/comments/", "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 1C3E01B45A;\n\tMon, 7 Jan 2019 09:57:21 +0100 (CET)", "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 7321A1B457\n\tfor <dev@dpdk.org>; Mon, 7 Jan 2019 09:57:20 +0100 (CET)", "from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 5A0EF87628;\n\tMon, 7 Jan 2019 08:57:19 +0000 (UTC)", "from dmarchan.remote.csb (ovpn-117-97.ams2.redhat.com\n\t[10.36.117.97])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id BED48600CC;\n\tMon, 7 Jan 2019 08:57:17 +0000 (UTC)" ], "From": "David Marchand <david.marchand@redhat.com>", "To": "dev@dpdk.org", "Cc": "olivier.matz@6wind.com, yskoh@mellanox.com, arybchenko@solarflare.com,\n\tbernard.iremonger@intel.com", "Date": "Mon, 7 Jan 2019 09:57:09 +0100", "Message-Id": "<1546851432-19397-1-git-send-email-david.marchand@redhat.com>", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.11", "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.26]); Mon, 07 Jan 2019 08:57:19 +0000 (UTC)", "Subject": "[dpdk-dev] [PATCH v2 0/3] segment sanity checks", "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": "Resubmitting this series that I did not finish in my previous life (6WIND\npeople are okay with this).\n\nHere is a little series which helped me identify a multi segment issue.\nHope it can help others.\n\nThe difference since the RFC patches I sent some time ago is that, rather\nthan force the user to build the dpdk with CONFIG_RTE_LIBRTE_MBUF_DEBUG\nenabled, it uses rx/tx callbacks to apply checks on the mbufs.\n\nChangelog since v1:\n- dropped unnecessary casts in patch 1,\n- rewrote patch 3: reused the existing rx/tx callbacks and left the invalid\n mbufs in rx bulk\n\nExample (with [1] that generates invalid mbufs):\n./testpmd --no-huge -l 2,3 -m 512 --log-level *:debug --vdev=eth_ring0\n --vdev=eth_ring1 -- -i --total-num-mbufs 2048\n\n[...]\n\ntestpmd> set verbose 1\ntestpmd> set burst 4\nNumber of packets per burst set to 4\ntestpmd> start tx_first\nport 0/queue 0: received 4 packets\n src=00:00:00:00:00:00 - dst=02:00:00:00:00:00 - type=0x0800 - length=64\n - nb_segs=2 - sw ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=14 - l3_len=20\n - l4_len=8 - Receive queue=0x0\n ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_UNKNOWN\n PKT_RX_OUTER_L4_CKSUM_UNKNOWN \nINVALID mbuf: bad nb_segs\n src=00:00:00:00:00:00 - dst=02:00:00:00:00:00 - type=0x0800 - length=64\n - nb_segs=1 - sw ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=14 - l3_len=20\n - l4_len=8 - Receive queue=0x0\n ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_UNKNOWN\n PKT_RX_OUTER_L4_CKSUM_UNKNOWN \nINVALID mbuf: bad pkt_len\n src=00:00:00:00:00:00 - dst=02:00:00:00:00:00 - type=0x0800 - length=64\n - nb_segs=1 - sw ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=14 - l3_len=20\n - l4_len=8 - Receive queue=0x0\n ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_UNKNOWN\n PKT_RX_OUTER_L4_CKSUM_UNKNOWN \nINVALID mbuf: bad nb_segs\n src=00:00:00:00:00:00 - dst=02:00:00:00:00:00 - type=0x0800 - length=64\n - nb_segs=2 - sw ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=14 - l3_len=20\n - l4_len=8 - Receive queue=0x0\n ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_UNKNOWN\n PKT_RX_OUTER_L4_CKSUM_UNKNOWN \nINVALID mbuf: bad nb_segs\nport 1/queue 0: received 4 packets\n[...]\ntestpmd> stop\n\n\n1: https://github.com/david-marchand/dpdk/commit/601630d8db0e" }{ "id": 49459, "url": "