get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 116632,
    "url": "http://patches.dpdk.org/api/patches/116632/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220922070426.788643-3-kevinx.liu@intel.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": "<20220922070426.788643-3-kevinx.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220922070426.788643-3-kevinx.liu@intel.com",
    "date": "2022-09-22T07:04:26",
    "name": "[2/2] net/ice: check illegal packets",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e7455668e226b625872bfa8a42d4e2cb749accaa",
    "submitter": {
        "id": 2440,
        "url": "http://patches.dpdk.org/api/people/2440/?format=api",
        "name": "Kevin Liu",
        "email": "kevinx.liu@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220922070426.788643-3-kevinx.liu@intel.com/mbox/",
    "series": [
        {
            "id": 24771,
            "url": "http://patches.dpdk.org/api/series/24771/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24771",
            "date": "2022-09-22T07:04:24",
            "name": "check illegal packets",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/24771/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/116632/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/116632/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 38F74A0543;\n\tThu, 22 Sep 2022 09:14:04 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 81021427F0;\n\tThu, 22 Sep 2022 09:14:01 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id E7786400D7\n for <dev@dpdk.org>; Thu, 22 Sep 2022 09:13:58 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Sep 2022 00:13:51 -0700",
            "from intel-cd-odc-robin.cd.intel.com ([10.240.178.136])\n by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Sep 2022 00:13:48 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1663830839; x=1695366839;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=eCY5VZirPCrWyfSDO2t0z2nGuZ6vm9EI9Gqa1eErP1s=;\n b=LCH9LsAIizPtdwWN1W03tDkvIIRyvyCRi5w7tfexcwMgY23ajgfYGhv+\n RJmZ6W/pfIy1GlJ6U11fNN5h4W1Fwsm6MKW2q5k9s1xMiElBm0Af+UlG1\n FBUWQduZszmWo/VlC52GJb0DyCV6czg9Hr76vzQas+grbAkLyqQGxtr9q\n k8Vcua9441r09ZMOr8G60GGfZ+VxPqMpn97Q9h3uE51qOqDhyYY12KcGv\n ZMWPbsc9vLOUv/ZBGCjsUxaco5khDsZdluS1Ey1epBuFltFFM9ApFT6QF\n QRaFdsrkSEIRgoTRHY38ISVTrMzmpEYj+iXWjn+B2EFp6g6IcEHHwuzFW Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10477\"; a=\"301066712\"",
            "E=Sophos;i=\"5.93,335,1654585200\"; d=\"scan'208\";a=\"301066712\"",
            "E=Sophos;i=\"5.93,335,1654585200\"; d=\"scan'208\";a=\"864746716\""
        ],
        "From": "Kevin Liu <kevinx.liu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com,\n beilei.xing@intel.com, jingjing.wu@intel.com,\n Kevin Liu <kevinx.liu@intel.com>",
        "Subject": "[PATCH 2/2] net/ice: check illegal packets",
        "Date": "Thu, 22 Sep 2022 07:04:26 +0000",
        "Message-Id": "<20220922070426.788643-3-kevinx.liu@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220922070426.788643-1-kevinx.liu@intel.com>",
        "References": "<20220922070426.788643-1-kevinx.liu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Some illegal packets will lead to TX/RX hang and\ncan't recover automatically. This patch check those\nillegal packets and protect TX/RX from hanging.\n\nFixes: 17c7d0f9d6a4 (\"net/ice: support basic Rx/Tx\")\nSigned-off-by: Kevin Liu <kevinx.liu@intel.com>\n---\n drivers/net/ice/ice_rxtx.c | 13 +++++++++++++\n drivers/net/ice/ice_rxtx.h |  2 ++\n 2 files changed, 15 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c\nindex 5af7c0c8f6..0d0b093537 100644\n--- a/drivers/net/ice/ice_rxtx.c\n+++ b/drivers/net/ice/ice_rxtx.c\n@@ -3458,6 +3458,19 @@ ice_prep_pkts(__rte_unused void *tx_queue, struct rte_mbuf **tx_pkts,\n \t\t\treturn i;\n \t\t}\n \n+\t\t/* check the size of packet */\n+\t\tif (!(ol_flags & RTE_MBUF_F_TX_TCP_SEG) &&\n+\t\t\tm->pkt_len > ICE_FRAME_SIZE_MAX) {\n+\t\t\trte_errno = EINVAL;\n+\t\t\tPMD_DRV_LOG(ERR, \"INVALID mbuf: bad pkt_len=[%hu]\", m->pkt_len);\n+\t\t\treturn i;\n+\t\t}\n+\t\tif (m->pkt_len < ICE_TX_MIN_PKT_LEN) {\n+\t\t\trte_errno = EINVAL;\n+\t\t\tPMD_DRV_LOG(ERR, \"INVALID mbuf: bad pkt_len=[%hu]\", m->pkt_len);\n+\t\t\treturn i;\n+\t\t}\n+\n #ifdef RTE_ETHDEV_DEBUG_TX\n \t\tret = rte_validate_tx_offload(m);\n \t\tif (ret != 0) {\ndiff --git a/drivers/net/ice/ice_rxtx.h b/drivers/net/ice/ice_rxtx.h\nindex 6c08c175dc..e1d4fe8e47 100644\n--- a/drivers/net/ice/ice_rxtx.h\n+++ b/drivers/net/ice/ice_rxtx.h\n@@ -40,6 +40,8 @@\n \n #define ICE_RXDID_COMMS_OVS\t22\n \n+#define ICE_TX_MIN_PKT_LEN 17\n+\n extern uint64_t ice_timestamp_dynflag;\n extern int ice_timestamp_dynfield_offset;\n \n",
    "prefixes": [
        "2/2"
    ]
}