Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/41782/?format=api
http://patchwork.dpdk.org/api/patches/41782/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180628031940.17397-12-johndale@cisco.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": "<20180628031940.17397-12-johndale@cisco.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180628031940.17397-12-johndale@cisco.com", "date": "2018-06-28T03:19:38", "name": "[12/14] net/enic: check maximum packet size in Tx prepare handler", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "fcbe3d367505da06bce6d3b88c5064ecf7d76c0f", "submitter": { "id": 359, "url": "http://patchwork.dpdk.org/api/people/359/?format=api", "name": "John Daley (johndale)", "email": "johndale@cisco.com" }, "delegate": { "id": 319, "url": "http://patchwork.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20180628031940.17397-12-johndale@cisco.com/mbox/", "series": [ { "id": 279, "url": "http://patchwork.dpdk.org/api/series/279/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=279", "date": "2018-06-28T03:19:27", "name": "[01/14] net/enic: fix receive packet types", "version": 1, "mbox": "http://patchwork.dpdk.org/series/279/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/41782/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/41782/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 A8EFF5B40;\n\tThu, 28 Jun 2018 05:26:06 +0200 (CEST)", "from alln-iport-8.cisco.com (alln-iport-8.cisco.com\n\t[173.37.142.95]) by dpdk.org (Postfix) with ESMTP id 974305B20\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 05:26:04 +0200 (CEST)", "from rcdn-core-11.cisco.com ([173.37.93.147])\n\tby alln-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Jun 2018 03:26:04 +0000", "from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48])\n\tby rcdn-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id\n\tw5S3Q3ip031781; Thu, 28 Jun 2018 03:26:03 GMT", "by cisco.com (Postfix, from userid 392789)\n\tid ABC2C20F2001; Wed, 27 Jun 2018 20:26:03 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n\td=cisco.com; i=@cisco.com; l=966; q=dns/txt; s=iport;\n\tt=1530156364; x=1531365964;\n\th=from:to:cc:subject:date:message-id:in-reply-to: references;\n\tbh=dfUISO493J5eaymq4Drw0MBFdMxaZk9SL30WXWDExfs=;\n\tb=hKjMwsZxT9T6N9qAfiYRjf5tWuZWhIcaxarCKtWWI1IcdTDXJLcdcnhw\n\tHTilC/4DVIMHLvibAFxDr/wGT6ZqpWrdCol3f9DqoSkyHBAj9V4ZLNMuA\n\t93il6A1Rw+0lxPZorWuDUhrAn/3wNHZq7OOkv6GsHKtPmJw0qcdNj+dy1 8=;", "X-IronPort-AV": "E=Sophos;i=\"5.51,281,1526342400\"; d=\"scan'208\";a=\"135245370\"", "From": "John Daley <johndale@cisco.com>", "To": "ferruh.yigit@intel.com", "Cc": "dev@dpdk.org, Hyong Youb Kim <hyonkim@cisco.com>", "Date": "Wed, 27 Jun 2018 20:19:38 -0700", "Message-Id": "<20180628031940.17397-12-johndale@cisco.com>", "X-Mailer": "git-send-email 2.16.2", "In-Reply-To": "<20180628031940.17397-1-johndale@cisco.com>", "References": "<20180628031940.17397-1-johndale@cisco.com>", "Subject": "[dpdk-dev] [PATCH 12/14] net/enic: check maximum packet size in Tx\n\tprepare handler", "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": "From: Hyong Youb Kim <hyonkim@cisco.com>\n\nThe default tx handler checks the maximum packet size. Check it in the\nprepare handler too. WQ stops working if the app/driver tries to send\noversized packets, so these checks are unavoidable.\n\nSigned-off-by: Hyong Youb Kim <hyonkim@cisco.com>\nReviewed-by: John Daley <johndale@cisco.com>\n---\n drivers/net/enic/enic_rxtx.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/drivers/net/enic/enic_rxtx.c b/drivers/net/enic/enic_rxtx.c\nindex 7dec486fe..04a77fcb4 100644\n--- a/drivers/net/enic/enic_rxtx.c\n+++ b/drivers/net/enic/enic_rxtx.c\n@@ -563,6 +563,10 @@ uint16_t enic_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,\n \n \tfor (i = 0; i != nb_pkts; i++) {\n \t\tm = tx_pkts[i];\n+\t\tif (unlikely(m->pkt_len > ENIC_TX_MAX_PKT_SIZE)) {\n+\t\t\trte_errno = EINVAL;\n+\t\t\treturn i;\n+\t\t}\n \t\tol_flags = m->ol_flags;\n \t\tif (ol_flags & wq->tx_offload_notsup_mask) {\n \t\t\trte_errno = ENOTSUP;\n", "prefixes": [ "12/14" ] }{ "id": 41782, "url": "