get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 126022,
    "url": "http://patchwork.dpdk.org/api/patches/126022/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dts/patch/20230413181540.51536-2-songx.jiale@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patchwork.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20230413181540.51536-2-songx.jiale@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20230413181540.51536-2-songx.jiale@intel.com",
    "date": "2023-04-13T18:15:39",
    "name": "[V1,1/2] test_plans/stats_checks: add a case",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "d2f02762add835dcb8f054088beb5e7014e7f18e",
    "submitter": {
        "id": 2352,
        "url": "http://patchwork.dpdk.org/api/people/2352/?format=api",
        "name": "Jiale, SongX",
        "email": "songx.jiale@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dts/patch/20230413181540.51536-2-songx.jiale@intel.com/mbox/",
    "series": [
        {
            "id": 27693,
            "url": "http://patchwork.dpdk.org/api/series/27693/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=27693",
            "date": "2023-04-13T18:15:38",
            "name": "add a case to test pf negative xstats check",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/27693/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/126022/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/126022/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-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 47CE342932;\n\tThu, 13 Apr 2023 11:57:47 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EE1A241138;\n\tThu, 13 Apr 2023 11:57:46 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 9E84240A84\n for <dts@dpdk.org>; Thu, 13 Apr 2023 11:57:45 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2023 02:57:45 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.96])\n by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2023 02:57:44 -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=1681379865; x=1712915865;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=kiCh9CobKLJqDN7eq3AHz3kC08adfqoGfdbncaaVJtI=;\n b=jE3QTx3nMi+t8CsQNutto8Tw1Id2yug/yEWLHlKCQaRsmgA5vqgHzK2b\n 3YhAxQjb1YtVmmp1VsHeiJS4mUh3ngjhspoy2vRC29Q5c8sEEO20U+ivf\n EgCKI+tsssWfsYD8XWdcz8r3AEZ6WeqWdMExJbAPWpTSwzGQDC9g5w8wW\n f3WGenC6hX4v0RQerNO73VUBV8fTUyV5hkHWAtqZZdZBGh+iG9JyF7l6I\n OdjxYbZpiz86CJTNyF5rET8IZWSsuwiPhfBhZKmB3WkUU6i3UVRsF7euz\n lpGPUnS4eE+rmunEc7mjVo0rxG0k8xOwAwsedkPwMIHtEC/7BbYdtGIWR w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10678\"; a=\"332849772\"",
            "E=Sophos;i=\"5.98,341,1673942400\"; d=\"scan'208\";a=\"332849772\"",
            "E=McAfee;i=\"6600,9927,10678\"; a=\"833082367\"",
            "E=Sophos;i=\"5.98,341,1673942400\"; d=\"scan'208\";a=\"833082367\""
        ],
        "X-ExtLoop1": "1",
        "From": "Jiale Song <songx.jiale@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Jiale Song <songx.jiale@intel.com>",
        "Subject": "[dts] [PATCH V1 1/2] test_plans/stats_checks: add a case",
        "Date": "Thu, 13 Apr 2023 18:15:39 +0000",
        "Message-Id": "<20230413181540.51536-2-songx.jiale@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230413181540.51536-1-songx.jiale@intel.com>",
        "References": "<20230413181540.51536-1-songx.jiale@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "add a case to test pf negative xstats check.\n\nSigned-off-by: Jiale Song <songx.jiale@intel.com>\n---\n test_plans/stats_checks_test_plan.rst | 138 ++++++++++++++++++++++++++\n 1 file changed, 138 insertions(+)",
    "diff": "diff --git a/test_plans/stats_checks_test_plan.rst b/test_plans/stats_checks_test_plan.rst\nindex 1b7d722f..e4731b95 100644\n--- a/test_plans/stats_checks_test_plan.rst\n+++ b/test_plans/stats_checks_test_plan.rst\n@@ -281,3 +281,141 @@ Test Case: VF xstats Checks\n \n 3. Then run the same steps of PF xstats Checks, get same result.\n note: because one port forwarding packets, so check rx and tx both in port 0.\n+\n+Test Case: PF negative xstats check\n+===================================\n+1. Blind the PF to vfio-pci::\n+\n+    ./usertools/dpdk-devbind.py -b vfio-pci {pf_pci}\n+\n+2. Launch testpmd with default mtu::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 4 -- -i --rxq=4 --txq=4\n+    testpmd> set fwd mac\n+    testpmd> start\n+    testpmd> clear port xstats all\n+\n+3. Set the mtu for the port where the data packet is sent::\n+\n+    ifconfig ens7 mtu 5018\n+\n+4. Send jumbo frames::\n+\n+    sendp(Ether(dst=\"00:00:00:00:01:00\", src=\"52:00:00:00:00:00\")/IP()/Raw(load=\"X\"*4980), iface=\"ens7\")\n+\n+5. Check port 0 xstats::\n+\n+    Check rx port can not receive packet and rx_errors increased.\n+    testpmd> show port xstats 0\n+      ###### NIC extended statistics for port 0\n+      rx_good_packets: 0\n+      tx_good_packets: 0\n+      rx_good_bytes: 0\n+      tx_good_bytes: 0\n+      rx_missed_errors: 0\n+      rx_errors: 1\n+      tx_errors: 0\n+      rx_mbuf_allocation_errors: 0\n+      rx_q0_packets: 0\n+      rx_q0_bytes: 0\n+      rx_q0_errors: 0\n+      tx_q0_packets: 0\n+      tx_q0_bytes: 0\n+      rx_unicast_packets: 0\n+      rx_multicast_packets: 0\n+      rx_broadcast_packets: 0\n+      rx_dropped_packets: 0\n+      rx_unknown_protocol_packets: 0\n+      tx_unicast_packets: 0\n+      tx_multicast_packets: 0\n+      tx_broadcast_packets: 0\n+      tx_dropped_packets: 0\n+      tx_link_down_dropped: 0\n+      rx_crc_errors: 0\n+      rx_illegal_byte_errors: 0\n+      rx_error_bytes: 0\n+      mac_local_errors: 0\n+      mac_remote_errors: 0\n+      rx_len_errors: 0\n+      tx_xon_packets: 0\n+      rx_xon_packets: 0\n+      tx_xoff_packets: 0\n+      rx_xoff_packets: 0\n+      rx_size_64_packets: 0\n+      rx_size_65_to_127_packets: 0\n+      rx_size_128_to_255_packets: 0\n+      rx_size_256_to_511_packets: 0\n+      rx_size_512_to_1023_packets: 0\n+      rx_size_1024_to_1522_packets: 0\n+      rx_size_1523_to_max_packets: 0\n+      rx_undersized_errors: 0\n+      rx_oversize_errors: 1\n+      rx_mac_short_pkt_dropped: 0\n+      rx_fragmented_errors: 0\n+      rx_jabber_errors: 0\n+      tx_size_64_packets: 0\n+      tx_size_65_to_127_packets: 0\n+      tx_size_128_to_255_packets: 0\n+      tx_size_256_to_511_packets: 0\n+      tx_size_512_to_1023_packets: 0\n+      tx_size_1024_to_1522_packets: 0\n+      tx_size_1523_to_max_packets: 0\n+\n+6. Check port 1 xstats::\n+\n+    Check all statistics are 0 for tx port.\n+    testpmd> show port xstats 1\n+      ###### NIC extended statistics for port 1\n+      rx_good_packets: 0\n+      tx_good_packets: 0\n+      rx_good_bytes: 0\n+      tx_good_bytes: 0\n+      rx_missed_errors: 0\n+      rx_errors: 0\n+      tx_errors: 0\n+      rx_mbuf_allocation_errors: 0\n+      rx_q0_packets: 0\n+      rx_q0_bytes: 0\n+      rx_q0_errors: 0\n+      tx_q0_packets: 0\n+      tx_q0_bytes: 0\n+      rx_unicast_packets: 0\n+      rx_multicast_packets: 0\n+      rx_broadcast_packets: 0\n+      rx_dropped_packets: 0\n+      rx_unknown_protocol_packets: 0\n+      tx_unicast_packets: 0\n+      tx_multicast_packets: 0\n+      tx_broadcast_packets: 0\n+      tx_dropped_packets: 0\n+      tx_link_down_dropped: 0\n+      rx_crc_errors: 0\n+      rx_illegal_byte_errors: 0\n+      rx_error_bytes: 0\n+      mac_local_errors: 0\n+      mac_remote_errors: 0\n+      rx_len_errors: 0\n+      tx_xon_packets: 0\n+      rx_xon_packets: 0\n+      tx_xoff_packets: 0\n+      rx_xoff_packets: 0\n+      rx_size_64_packets: 0\n+      rx_size_65_to_127_packets: 0\n+      rx_size_128_to_255_packets: 0\n+      rx_size_256_to_511_packets: 0\n+      rx_size_512_to_1023_packets: 0\n+      rx_size_1024_to_1522_packets: 0\n+      rx_size_1523_to_max_packets: 0\n+      rx_undersized_errors: 0\n+      rx_oversize_errors: 0\n+      rx_mac_short_pkt_dropped: 0\n+      rx_fragmented_errors: 0\n+      rx_jabber_errors: 0\n+      tx_size_64_packets: 0\n+      tx_size_65_to_127_packets: 0\n+      tx_size_128_to_255_packets: 0\n+      tx_size_256_to_511_packets: 0\n+      tx_size_512_to_1023_packets: 0\n+      tx_size_1024_to_1522_packets: 0\n+      tx_size_1523_to_max_packets: 0\n+\n",
    "prefixes": [
        "V1",
        "1/2"
    ]
}