get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 86491,
    "url": "https://patches.dpdk.org/api/patches/86491/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210114021537.8863-2-box.c.chen@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": "<20210114021537.8863-2-box.c.chen@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210114021537.8863-2-box.c.chen@intel.com",
    "date": "2021-01-14T02:15:36",
    "name": "[V2,1/2] add smoke test plan",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e49036c4bbee3fd54cd6ca03d369269ad5d01317",
    "submitter": {
        "id": 1819,
        "url": "https://patches.dpdk.org/api/people/1819/?format=api",
        "name": "Chen, BoX C",
        "email": "box.c.chen@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210114021537.8863-2-box.c.chen@intel.com/mbox/",
    "series": [
        {
            "id": 14706,
            "url": "https://patches.dpdk.org/api/series/14706/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=14706",
            "date": "2021-01-14T02:15:36",
            "name": "[V2,1/2] add smoke test plan",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/14706/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/86491/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/86491/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 948E0A0A02;\n\tThu, 14 Jan 2021 03:17:16 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5BB05140D51;\n\tThu, 14 Jan 2021 03:17:16 +0100 (CET)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id CE61F140D48\n for <dts@dpdk.org>; Thu, 14 Jan 2021 03:17:14 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Jan 2021 18:17:12 -0800",
            "from unknown (HELO localhost.localdomain) ([10.240.183.58])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Jan 2021 18:17:07 -0800"
        ],
        "IronPort-SDR": [
            "\n Z0RbtB4RuATd/a3MhbxZ5v/h4L0UkMPxzinmQOTzw8Sn5A8vxiqi11yDu7H7GsPDAirpztj1E6\n ANNrrFkDDdrg==",
            "\n TxSKaKx+Ayulmcgw7yjDzPciYYtl2hdFhjmBY43WC87dBYz4Yy9fvmNWDY1erJNxIbcd7dPznM\n cZ1gCdFFoHfA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9863\"; a=\"239838818\"",
            "E=Sophos;i=\"5.79,345,1602572400\"; d=\"scan'208\";a=\"239838818\"",
            "E=Sophos;i=\"5.79,345,1602572400\"; d=\"scan'208\";a=\"382094475\""
        ],
        "From": "ChenBo <box.c.chen@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "ChenBo <box.c.chen@intel.com>",
        "Date": "Thu, 14 Jan 2021 10:15:36 +0800",
        "Message-Id": "<20210114021537.8863-2-box.c.chen@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210114021537.8863-1-box.c.chen@intel.com>",
        "References": "<20210114021537.8863-1-box.c.chen@intel.com>",
        "Subject": "[dts] [PATCH V2 1/2] add smoke test plan",
        "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": "add smoke test plan nic part.\n\nSigned-off-by: ChenBo <box.c.chen@intel.com>\n---\n test_plans/pf_smoke_test.rst | 163 ++++++++++++++++++++++++++++++++\n test_plans/vf_smoke_test.rst | 176 +++++++++++++++++++++++++++++++++++\n 2 files changed, 339 insertions(+)\n create mode 100644 test_plans/pf_smoke_test.rst\n create mode 100644 test_plans/vf_smoke_test.rst",
    "diff": "diff --git a/test_plans/pf_smoke_test.rst b/test_plans/pf_smoke_test.rst\nnew file mode 100644\nindex 00000000..780a78f2\n--- /dev/null\n+++ b/test_plans/pf_smoke_test.rst\n@@ -0,0 +1,163 @@\n+.. Copyright (c) <2021>, Intel Corporation\n+   All rights reserved.\n+\n+   Redistribution and use in source and binary forms, with or without\n+   modification, are permitted provided that the following conditions\n+   are met:\n+\n+   - Redistributions of source code must retain the above copyright\n+     notice, this list of conditions and the following disclaimer.\n+\n+   - Redistributions in binary form must reproduce the above copyright\n+     notice, this list of conditions and the following disclaimer in\n+     the documentation and/or other materials provided with the\n+     distribution.\n+\n+   - Neither the name of Intel Corporation nor the names of its\n+     contributors may be used to endorse or promote products derived\n+     from this software without specific prior written permission.\n+\n+   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n+   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n+   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n+   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n+   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n+   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n+   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n+   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n+   OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+==================\n+NIC PF Smoke Test\n+==================\n+\n+Description\n+===========\n+Test the basic functions of dpdk.\n+1. Port connection status.\n+2. Launch testpmd normally.\n+3. Basic rx and tx.\n+\n+Prerequisites\n+=============\n+\n+1. Hardware:\n+\n+    niantic/fortville/columbiaville\n+\n+2. Software:\n+\n+    dpdk: http://dpdk.org/git/dpdk\n+    scapy: http://www.secdev.org/projects/scapy/\n+\n+3. Compile DPDK::\n+\n+    CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc\n+    ninja -C x86_64-native-linuxapp-gcc\n+\n+4. Get the pci device id of DUT, for example::\n+\n+    ./usertools/dpdk-devbind.py -s\n+\n+    0000:86:00.0 'Device 1593' if=enp134s0f0 drv=ice unused=vfio-pci\n+\n+7. Bind PF to dpdk driver::\n+\n+    modprobe vfio-pci\n+    ./usertools/dpdk-devbind.py -b vfio-pci 0000:86:00.0\n+\n+8. Launch dpdk on PF::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:86:00.0 --file-prefix=pf -- -i --max-pkt-len=9600 --tx-offloads=0x00008000 --rxq=4 --txq=4\n+    testpmd> set fwd mac\n+    testpmd> set verbose 3\n+    testpmd> start\n+    testpmd> show port info all\n+\n+Test Case 1: test enable and disable jumbo frame\n+====================================================\n+1. set fwd mode is mac::\n+\n+    testpmd> set fwd mac\n+    testpmd> set verbose 3\n+    testpmd> start\n+\n+2. Send a packet with size 9601 bytes ::\n+\n+    testpmd> show port stats 0\n+\n+    ######################## NIC statistics for port 0  ########################\n+    RX-packets: 0          RX-errors: 1         RX-bytes: 0\n+    TX-packets: 0          TX-errors: 0         TX-bytes: 0\n+    ############################################################################\n+\n+Verify that TX-bytes on port 0 and RX-bytes on port 0 are 0.\n+\n+3. Send a packet with size 9600 bytes ::\n+\n+    testpmd> show port stats 0\n+\n+    ######################## NIC statistics for port 0  ########################\n+    RX-packets: 1          RX-errors: 0         RX-bytes: 9600\n+    TX-packets: 1          TX-errors: 0         TX-bytes: 9600\n+    ############################################################################\n+\n+Verify that TX-bytes on port 0 and RX-bytes on port 0 are 9600.\n+\n+4. Set mtu is 1500 ::\n+\n+    testpmd> port config mtu 1500\n+\n+5. Send a packet with size 1518 bytes ::\n+\n+    testpmd> show port stats 0\n+\n+    ######################## NIC statistics for port 0  ########################\n+    RX-packets: 1          RX-errors: 0         RX-bytes: 1518\n+    TX-packets: 1          TX-errors: 0         TX-bytes: 1518\n+    ############################################################################\n+\n+Verify that TX-bytes on port 0 and RX-bytes on port 0 are 1518\n+\n+7. Send a packet with size 1519 bytes ::\n+\n+    testpmd> show port stats 0\n+\n+    ######################## NIC statistics for port 0  ########################\n+    RX-packets: 0          RX-errors: 1         RX-bytes: 0\n+    TX-packets: 0          TX-errors: 0         TX-bytes: 0\n+    ############################################################################\n+\n+Verify that TX-bytes on port 0 and RX-bytes on port 1 are 0\n+\n+Test Case 2: test RSS\n+====================================================\n+1. set fwd mode is rxonly::\n+\n+    testpmd> set fwd rxonly\n+    testpmd> set verbose 1\n+    testpmd> start\n+\n+4. Send different hash types' packets with different keywords, then check rx port\n+    could receive packets by different queues::\n+\n+      sendp([Ether(dst=\"00:01:23:45:67:89\")/IP(src=\"192.168.0.4\", dst=RandIP())], iface=\"eth3\")\n+\n+Test Case 3: test reset RX/TX queues\n+====================================================\n+1. Run ``port stop all`` to stop all ports.\n+\n+2. Run ``port config all rxq 2`` to change the number of receiving queues to two.\n+\n+3. Run ``port config all txq 2`` to change the number of transmitting queues to two.\n+\n+4. Run ``port start all`` to restart all ports.\n+\n+5. Check with ``show config rxtx`` that the configuration for these parameters changed.\n+\n+6. Run ``start`` again to restart the forwarding, then start packet generator to transmit\n+   and receive packets, and check if testpmd is able to receive and forward packets\n+   successfully.\ndiff --git a/test_plans/vf_smoke_test.rst b/test_plans/vf_smoke_test.rst\nnew file mode 100644\nindex 00000000..845be664\n--- /dev/null\n+++ b/test_plans/vf_smoke_test.rst\n@@ -0,0 +1,176 @@\n+.. Copyright (c) <2021>, Intel Corporation\n+   All rights reserved.\n+\n+   Redistribution and use in source and binary forms, with or without\n+   modification, are permitted provided that the following conditions\n+   are met:\n+\n+   - Redistributions of source code must retain the above copyright\n+     notice, this list of conditions and the following disclaimer.\n+\n+   - Redistributions in binary form must reproduce the above copyright\n+     notice, this list of conditions and the following disclaimer in\n+     the documentation and/or other materials provided with the\n+     distribution.\n+\n+   - Neither the name of Intel Corporation nor the names of its\n+     contributors may be used to endorse or promote products derived\n+     from this software without specific prior written permission.\n+\n+   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n+   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n+   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n+   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n+   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n+   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n+   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n+   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n+   OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+==================\n+NIC VF Smoke Test\n+==================\n+\n+Description\n+===========\n+Test the basic functions of dpdk.\n+1. Port connection status.\n+2. Launch testpmd normally.\n+3. Basic rx and tx.\n+\n+Prerequisites\n+=============\n+\n+1. Hardware:\n+\n+    niantic/fortville/columbiaville\n+\n+2. Software:\n+\n+    dpdk: http://dpdk.org/git/dpdk\n+    scapy: http://www.secdev.org/projects/scapy/\n+\n+3. Compile DPDK::\n+\n+    CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc\n+    ninja -C x86_64-native-linuxapp-gcc\n+\n+4. Get the pci device id of DUT, for example::\n+\n+    ./usertools/dpdk-devbind.py -s\n+\n+    0000:86:01.0 'Device 1593' if=enp134s0f0 drv=ice unused=vfio-pci\n+\n+5. Generate 1 VFs on PF::\n+\n+    echo 1 > /sys/bus/pci/devices/0000:86:01.0/sriov_numvfs\n+\n+    ./usertools/dpdk-devbind.py -s\n+    0000:86:01.0 'Ethernet Adaptive Virtual Function 1889' if=enp134s1 drv=iavf unused=vfio-pci\n+\n+6. Set VF MAC address::\n+\n+    ip link set enp134s0f0 vf 0 mac 00:01:23:45:67:89\n+\n+7. Bind VF to dpdk driver::\n+\n+    modprobe vfio-pci\n+    ./usertools/dpdk-devbind.py -b vfio-pci 0000:86:01.0\n+\n+8. Launch dpdk on VF::\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:86:01.0 --file-prefix=pf -- -i --max-pkt-len=9600 --tx-offloads=0x00008000 --rxq=4 --txq=4\n+    testpmd> set fwd mac\n+    testpmd> set verbose 3\n+    testpmd> start\n+    testpmd> show port info all\n+\n+\n+Test Case 1: test enable and disable jumbo frame\n+====================================================\n+\n+1. set fwd mode is mac::\n+\n+    testpmd> set fwd mac\n+    testpmd> set verbose 3\n+    testpmd> start\n+\n+2. Send a packet with size 9601 bytes ::\n+\n+    testpmd> show port stats 0\n+\n+    ######################## NIC statistics for port 0  ########################\n+    RX-packets: 0          RX-errors: 1         RX-bytes: 0\n+    TX-packets: 0          TX-errors: 0         TX-bytes: 0\n+    ############################################################################\n+\n+Verify that TX-bytes on port 0 and RX-bytes on port 0 are 0.\n+\n+3. Send a packet with size 9600 bytes ::\n+\n+    testpmd> show port stats 0\n+\n+    ######################## NIC statistics for port 0  ########################\n+    RX-packets: 1          RX-errors: 0         RX-bytes: 9600\n+    TX-packets: 1          TX-errors: 0         TX-bytes: 9600\n+    ############################################################################\n+\n+Verify that TX-bytes on port 0 and RX-bytes on port 0 are 9600.\n+\n+4. Set mtu is 1500 ::\n+\n+    testpmd> port config mtu 1500\n+\n+5. Send a packet with size 1518 bytes ::\n+\n+    testpmd> show port stats 0\n+\n+    ######################## NIC statistics for port 0  ########################\n+    RX-packets: 1          RX-errors: 0         RX-bytes: 1518\n+    TX-packets: 1          TX-errors: 0         TX-bytes: 1518\n+    ############################################################################\n+\n+Verify that TX-bytes on port 0 and RX-bytes on port 0 are 1518\n+\n+7. Send a packet with size 1519 bytes ::\n+\n+    testpmd> show port stats 0\n+\n+    ######################## NIC statistics for port 0  ########################\n+    RX-packets: 0          RX-errors: 1         RX-bytes: 0\n+    TX-packets: 0          TX-errors: 0         TX-bytes: 0\n+    ############################################################################\n+\n+Verify that TX-bytes on port 0 and RX-bytes on port 1 are 0\n+\n+Test Case 2: test RSS\n+====================================================\n+1. set fwd mode is rxonly::\n+\n+    testpmd> set fwd rxonly\n+    testpmd> set verbose 1\n+    testpmd> start\n+\n+4. Send different hash types' packets with different keywords, then check rx port\n+    could receive packets by different queues::\n+\n+      sendp([Ether(dst=\"00:01:23:45:67:89\")/IP(src=\"192.168.0.4\", dst=RandIP())], iface=\"eth3\")\n+\n+Test Case 3: test reset RX/TX queues\n+====================================================\n+1. Run ``port stop all`` to stop all ports.\n+\n+2. Run ``port config all rxq 2`` to change the number of receiving queues to two.\n+\n+3. Run ``port config all txq 2`` to change the number of transmitting queues to two.\n+\n+4. Run ``port start all`` to restart all ports.\n+\n+5. Check with ``show config rxtx`` that the configuration for these parameters changed.\n+\n+6. Run ``start`` again to restart the forwarding, then start packet generator to transmit\n+   and receive packets, and check if testpmd is able to receive and forward packets\n+   successfully.\n",
    "prefixes": [
        "V2",
        "1/2"
    ]
}