get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 86274,
    "url": "http://patches.dpdk.org/api/patches/86274/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20210111102630.28937-3-weix.xie@intel.com/",
    "project": {
        "id": 3,
        "url": "http://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": "<20210111102630.28937-3-weix.xie@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210111102630.28937-3-weix.xie@intel.com",
    "date": "2021-01-11T10:26:30",
    "name": "[V2,2/2] tests/TestSuite_veb_switch:vf1 RX-bytes need add 4 bytes",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a3b5fbe9388d5c8e6685bb0567c4a8e506fc004a",
    "submitter": {
        "id": 1686,
        "url": "http://patches.dpdk.org/api/people/1686/?format=api",
        "name": "Xie, WeiX",
        "email": "weix.xie@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20210111102630.28937-3-weix.xie@intel.com/mbox/",
    "series": [
        {
            "id": 14631,
            "url": "http://patches.dpdk.org/api/series/14631/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=14631",
            "date": "2021-01-11T10:26:29",
            "name": "switch i40evf to iavf",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/14631/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/86274/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/86274/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 974CDA09EF;\n\tMon, 11 Jan 2021 11:24:50 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2C85F140CCA;\n\tMon, 11 Jan 2021 11:24:50 +0100 (CET)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 341F2140CB5\n for <dts@dpdk.org>; Mon, 11 Jan 2021 11:24:48 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Jan 2021 02:24:46 -0800",
            "from unknown (HELO localhost.localdomain) ([10.240.183.80])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Jan 2021 02:24:44 -0800"
        ],
        "IronPort-SDR": [
            "\n LU0NGbD33clfDbVd6ZM8Fdirl9ROXlQFZyBv94cIUjvLFhvw3N4DttHk8xaZIs9++StmWz63Of\n uA3vBMjuq78w==",
            "\n Xj2D+uVPS28u9n4WAUpKorvL8QRo8BrIymRyaLtq2DTV7SmeBWndlYFjrbEPvdhgMO5vA6kwyW\n wTSxm0iXTldg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9860\"; a=\"165520868\"",
            "E=Sophos;i=\"5.79,338,1602572400\"; d=\"scan'208\";a=\"165520868\"",
            "E=Sophos;i=\"5.79,338,1602572400\"; d=\"scan'208\";a=\"380963517\""
        ],
        "From": "Xie wei <weix.xie@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Xie wei <weix.xie@intel.com>",
        "Date": "Mon, 11 Jan 2021 18:26:30 +0800",
        "Message-Id": "<20210111102630.28937-3-weix.xie@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210111102630.28937-1-weix.xie@intel.com>",
        "References": "<20210111102630.28937-1-weix.xie@intel.com>",
        "Subject": "[dts] [PATCH V2 2/2] tests/TestSuite_veb_switch:vf1 RX-bytes need\n add 4 bytes",
        "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": "DTS framework has switched i40evf to iavf, so align with it.\nAfter testing, found that:\nwhen send a packet which length is 60 bytes.\nfor net_iavf driver; the statistic from \"show port stats 0\" is: RX-bytes:56,\nbut set verbose 1, we can see the packet length is 60.\nfor net_i40e_vf driver; the statistic from \"show port stats 0\" is: RX-bytes: 60\n\nSigned-off-by: Xie wei <weix.xie@intel.com>\n---\n tests/TestSuite_veb_switch.py | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/tests/TestSuite_veb_switch.py b/tests/TestSuite_veb_switch.py\nindex 00dd76e7..cdd2b3c4 100644\n--- a/tests/TestSuite_veb_switch.py\n+++ b/tests/TestSuite_veb_switch.py\n@@ -283,11 +283,18 @@ class TestVEBSwitching(TestCase):\n \n         self.dut.send_expect(\"stop\", \"testpmd>\", 2)\n         self.session_secondary.send_expect(\"stop\", \"testpmd>\", 2)\n+        out = self.session_secondary.send_expect(\"show port info 0\", \"testpmd>\")\n+        vf1_driver = re.findall(\"Driver\\s*name:\\s*(\\w+)\", out)[0]\n \n         vf0_tx_stats = self.veb_get_pmd_stats(\"first\", 0, \"tx\")\n         vf1_rx_stats = self.veb_get_pmd_stats(\"second\", 0, \"rx\")\n         if self.kdriver == 'ice':\n             vf1_rx_stats[-1] = vf1_rx_stats[-1] + 4\n+        if self.kdriver == 'i40e':\n+            if vf1_driver == 'net_iavf':\n+                vf1_rx_stats[-1] = vf1_rx_stats[-1] + 4\n+            else:\n+                vf1_rx_stats[-1] = vf1_rx_stats[-1]\n         self.verify(vf0_tx_stats[0] != 0, \"no packet was sent by VF0\")\n         self.verify(vf0_tx_stats == vf1_rx_stats, \"VF1 failed to receive packets from VF0\")\n     \n",
    "prefixes": [
        "V2",
        "2/2"
    ]
}