get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87728,
    "url": "https://patches.dpdk.org/api/patches/87728/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210204090745.21686-2-weix.xie@intel.com/",
    "project": {
        "id": 3,
        "url": "https://patches.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": "<20210204090745.21686-2-weix.xie@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210204090745.21686-2-weix.xie@intel.com",
    "date": "2021-02-04T09:07:44",
    "name": "[V1,1/2] tests/vf_jumboframe: change jumbo frames to adpat dpdk",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "3dcf5f6eaedcdc5c0269b7ea95cb07cb5dbb59c0",
    "submitter": {
        "id": 1686,
        "url": "https://patches.dpdk.org/api/people/1686/?format=api",
        "name": "Xie, WeiX",
        "email": "weix.xie@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210204090745.21686-2-weix.xie@intel.com/mbox/",
    "series": [
        {
            "id": 15151,
            "url": "https://patches.dpdk.org/api/series/15151/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=15151",
            "date": "2021-02-04T09:07:43",
            "name": "change jumbo frames to adpat dpdk",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/15151/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87728/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/87728/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 1A22CA09E4;\n\tThu,  4 Feb 2021 10:04:06 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0F9FE2405F2;\n\tThu,  4 Feb 2021 10:04:06 +0100 (CET)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 621B32405DD\n for <dts@dpdk.org>; Thu,  4 Feb 2021 10:04:04 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 04 Feb 2021 01:04:03 -0800",
            "from unknown (HELO localhost.localdomain) ([10.240.183.80])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 04 Feb 2021 01:04:02 -0800"
        ],
        "IronPort-SDR": [
            "\n YIzDSD+xq5p8qiE49Aa3qdvP5R//SIGwQ6RzK4hmD3EbrB+1T+m4nfyxiY1It3c9H8fDZMXiia\n NvL2x3SxSMQw==",
            "\n DXkPix9bn4WmqfV1wrUoDEC1jufId6rpmwyQ3/5APt8oAJJMJ/Nuzyn6f/tJaZr7d+JFyyVu7I\n fzD+eCSDzmkA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9884\"; a=\"245274232\"",
            "E=Sophos;i=\"5.79,400,1602572400\"; d=\"scan'208\";a=\"245274232\"",
            "E=Sophos;i=\"5.79,400,1602572400\"; d=\"scan'208\";a=\"372397378\""
        ],
        "From": "Xie wei <weix.xie@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Xie wei <weix.xie@intel.com>",
        "Date": "Thu,  4 Feb 2021 17:07:44 +0800",
        "Message-Id": "<20210204090745.21686-2-weix.xie@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210204090745.21686-1-weix.xie@intel.com>",
        "References": "<20210204090745.21686-1-weix.xie@intel.com>",
        "Subject": "[dts] [PATCH V1 1/2] tests/vf_jumboframe: change jumbo frames to\n adpat dpdk",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "a).According to dpdk commit e8326d3, fix Rx bytes statistics.\nAfter testing, found that:\nwhen send a packet which length is 1513 bytes.\nfor i40e nic; the statistic from \"show port stats 0\" is: RX-bytes: 1513,\nbut before that it show \"RX-bytes: 1517\".\nb).DPDK can receive max packet length is mtu + 14(IP_hearder_len) + 4(CRC) + 4(VLAN header len) + 4(VLAN header len).\n\nSigned-off-by: Xie wei <weix.xie@intel.com>\n---\n tests/TestSuite_vf_jumboframe.py | 19 +++----------------\n 1 file changed, 3 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_vf_jumboframe.py b/tests/TestSuite_vf_jumboframe.py\nindex cb77cf31..3eb441f2 100644\n--- a/tests/TestSuite_vf_jumboframe.py\n+++ b/tests/TestSuite_vf_jumboframe.py\n@@ -192,11 +192,6 @@ class TestVfJumboFrame(TestCase):\n         else:\n             return None\n \n-    def check_vf_driver(self):\n-        output = self.vm_testpmd.execute_cmd(\"show port info 0\")\n-        vf0_driver = re.findall(\"Driver\\s*name:\\s*(\\w+)\", output)\n-        return vf0_driver[0]\n-\n     def jumboframes_send_packet(self, pktsize, received=True):\n         \"\"\"\n         Send 1 packet to portid\n@@ -221,19 +216,11 @@ class TestVfJumboFrame(TestCase):\n         rx_bytes -= rx_bytes_ori\n         rx_err -= rx_err_ori\n \n-        vf_driver = self.check_vf_driver()\n-\n         if received:\n             self.verify((rx_pkts == 1) and (tx_pkts == 1), \"Packet forward assert error\")\n \n-            if self.kdriver == \"ixgbe\" or self.kdriver == 'ice':\n+            if self.kdriver in [\"ixgbe\", \"ice\", \"i40e\"]:\n                 self.verify((rx_bytes + 4) == pktsize, \"Rx packet size should be packet size - 4\")\n-            else:\n-                if self.kdriver == \"i40e\":\n-                    if vf_driver == \"net_iavf\":\n-                        self.verify((rx_bytes + 4) == pktsize, \"Rx packet size should be packet size - 4\")\n-                    else:\n-                        self.verify(rx_bytes == pktsize, \"Rx packet size should be equal to packet size\")\n \n             if self.kdriver == \"igb\":\n                 self.verify(tx_bytes == pktsize, \"Tx packet size should be packet size\")\n@@ -293,7 +280,7 @@ class TestVfJumboFrame(TestCase):\n         self.vm_testpmd.execute_cmd(\"start\")\n \n         # On igb, for example i350, refer to :DPDK-1117\n-        # For PF, the max-pkt-len = mtu + 18 + 4(VLAN header len).\n+        # For PF, the max-pkt-len = mtu + 14(IP_hearder_len) + 4(CRC) + 4(VLAN header len) + 4(VLAN header len).\n         # For VF, the real max-pkt-len = the given max-pkt-len + 4(VLAN header len).\n         # This behavior is leveraged from kernel driver.\n         # And it means max-pkt-len is always 4 bytes longer than assumed.\n@@ -301,7 +288,7 @@ class TestVfJumboFrame(TestCase):\n         if self.kdriver == \"igb\":\n             self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1 + 4, False)\n         else:\n-            self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1, False)\n+            self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1 + 4 + 4, False)\n \n     def test_vf_jumbo_withjumbo(self):\n         \"\"\"\n",
    "prefixes": [
        "V1",
        "1/2"
    ]
}