get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 117489,
    "url": "http://patches.dpdk.org/api/patches/117489/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20221007003137.12787-3-zhiminx.huang@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": "<20221007003137.12787-3-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20221007003137.12787-3-zhiminx.huang@intel.com",
    "date": "2022-10-07T00:31:36",
    "name": "[V6,2/3] test_plans/*:modify cases to check dcf as a full feature pmd",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "558c7ec06c68b59e14277b726455e059b78e20bb",
    "submitter": {
        "id": 1685,
        "url": "http://patches.dpdk.org/api/people/1685/?format=api",
        "name": "Huang, ZhiminX",
        "email": "zhiminx.huang@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20221007003137.12787-3-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 25014,
            "url": "http://patches.dpdk.org/api/series/25014/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=25014",
            "date": "2022-10-07T00:31:34",
            "name": "modify cases to check dcf as a full feature pmd",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/25014/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/117489/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/117489/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 71BBCA00C2;\n\tThu,  6 Oct 2022 18:20:58 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6E294410D3;\n\tThu,  6 Oct 2022 18:20:58 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id E100E40042\n for <dts@dpdk.org>; Thu,  6 Oct 2022 18:20:55 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Oct 2022 09:20:55 -0700",
            "from unknown (HELO cvl_100g_103.icx.intel.com) ([10.239.252.93])\n by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Oct 2022 09:20:54 -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=1665073256; x=1696609256;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=juTvJC+RwcQNsJwBUM0D2ZLfhOiQUr71WWwHfcKUMPo=;\n b=SmE/uLSU8h5oLqdW1xojW5mVcPiUcjdCLvmSOQ8zHqL0+j52yQbo6IPg\n v3MaU90IKm36ttz6j4vnExy41+7M4fpbn9825es0tqCsEmEaXw8nFhTr4\n QNaozHMd6zVGw+flvdM5RWRxt0FmPyXUOmFtP9B1Gjj7JVFyEgc1gLana\n C5ZeL+4QazprhVWO+l5ijAK9DdXGrWFhtQVfI7XrIBvrE3OTYwme3jPed\n 7NBjwQJqAvQWj9Sva81jsGrpSp5P7ok4Y2TjXcMNFgjpbMG1T0faAsEY8\n mSiHSzpiauKYIt5DBJh0H91YZd7D2isIKx0+thX3qR/x3QgJTNgxtvawQ g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10492\"; a=\"303469908\"",
            "E=Sophos;i=\"5.95,164,1661842800\"; d=\"scan'208\";a=\"303469908\"",
            "E=McAfee;i=\"6500,9779,10492\"; a=\"575888456\"",
            "E=Sophos;i=\"5.95,164,1661842800\"; d=\"scan'208\";a=\"575888456\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Subject": "[dts][PATCH V6 2/3] test_plans/*:modify cases to check dcf as a full\n feature pmd",
        "Date": "Fri,  7 Oct 2022 08:31:36 +0800",
        "Message-Id": "<20221007003137.12787-3-zhiminx.huang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20221007003137.12787-1-zhiminx.huang@intel.com>",
        "References": "<20221007003137.12787-1-zhiminx.huang@intel.com>",
        "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": "the dcf mode support more pmd feature in dpdk22.07.\nmodify cases to support dcf and check normal datapath in dcf mode.\nadd description for support dcf case in testplan.\n1.set vf trust on before start dcf\n2.start up testpmd with dcf parm.\n\nSigned-off-by: Zhimin Huang <zhiminx.huang@intel.com>\nAcked-by: Xueqin Lin <xueqin.lin@intel.com>\n---\nv6:\n-optimize testplan, replace 'or' to 'if'\n\nv5:\n-detailed the subject and comments.\n\n test_plans/kernelpf_iavf_test_plan.rst | 14 +++++++++++++-\n test_plans/stats_checks_test_plan.rst  | 16 +++++++++++++++-\n test_plans/vf_macfilter_test_plan.rst  | 22 ++++++++++++++++++++++\n test_plans/vf_offload_test_plan.rst    | 18 +++++++++++++++++-\n test_plans/vf_rss_test_plan.rst        | 15 ++++++++++++++-\n test_plans/vf_smoke_test_plan.rst      | 17 ++++++++++++++++-\n test_plans/vf_vlan_test_plan.rst       | 16 +++++++++++++++-\n 7 files changed, 112 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/test_plans/kernelpf_iavf_test_plan.rst b/test_plans/kernelpf_iavf_test_plan.rst\nindex d877bb90..4b797122 100644\n--- a/test_plans/kernelpf_iavf_test_plan.rst\n+++ b/test_plans/kernelpf_iavf_test_plan.rst\n@@ -43,10 +43,22 @@ Test IAVF cases on host or in qemu\n \n Bind VF device to igb_uio or vfio-pci\n \n-Start up VF port::\n+if test IAVF, start up VF port::\n \n     ./<build_target>/app/dpdk-testpmd -c f -n 4 -- -i\n \n+if test DCF, set VF port to dcf and start up::\n+\n+   Enable kernel trust mode:\n+\n+       ip link set $PF_INTF vf 0 trust on\n+\n+    ./<build_target>/app/dpdk-testpmd -c f -n 4 -a 0000:18:01.0,cap=dcf -- -i\n+\n+.. note::\n+\n+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.\n+\n Test case: VF basic RX/TX\n =========================\n Set rxonly forward, start testpmd\ndiff --git a/test_plans/stats_checks_test_plan.rst b/test_plans/stats_checks_test_plan.rst\nindex 8c7e0add..1b7d722f 100644\n--- a/test_plans/stats_checks_test_plan.rst\n+++ b/test_plans/stats_checks_test_plan.rst\n@@ -259,11 +259,25 @@ Test Case: VF xstats Checks\n     ./usertools/dpdk-devbind.py -s\n     ./usertools/dpdk-devbind.py -b vfio-pci vf_bus_id\n \n-2. Launch testpmd on the VF and enable RSS::\n+2. Launch testpmd on the VF and enable RSS:\n+\n+   if test IAVF, start up VF port::\n \n     ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 4 -- -i --rxq=4 --txq=4\n     testpmd> port config all rss all\n     testpmd> set fwd mac\n \n+   if test DCF, set VF port to dcf and start up::\n+\n+    Enable kernel trust mode:\n+\n+       ip link set $PF_INTF vf 0 trust on\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 4 -a 0000:18:01.0,cap=dcf -- -i --rxq=4 --txq=4\n+\n+.. note::\n+\n+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.\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.\ndiff --git a/test_plans/vf_macfilter_test_plan.rst b/test_plans/vf_macfilter_test_plan.rst\nindex d623cf04..4c57f51f 100644\n--- a/test_plans/vf_macfilter_test_plan.rst\n+++ b/test_plans/vf_macfilter_test_plan.rst\n@@ -68,6 +68,9 @@ Test Case 1: test_kernel_2pf_2vf_1vm_iplink_macfilter\n    disable promisc mode,set it in mac forward mode::\n \n       ./usertools/dpdk-devbind.py --bind=igb_uio 00:06.0 00:07.0\n+\n+   if test IAVF, start up VF port::\n+\n       ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x0f -n 4 -a 00:06.0 -a 00:07.0 -- -i --portmask=0x3\n \n       testpmd> port stop all\n@@ -77,6 +80,14 @@ Test Case 1: test_kernel_2pf_2vf_1vm_iplink_macfilter\n       testpmd> set fwd mac\n       testpmd> start\n \n+   if test DCF, set VF port to dcf and start up::\n+\n+      ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x0f -n 4 -a 00:06.0,cap=dcf -a 00:07.0,cap=dcf -- -i --portmask=0x3\n+\n+.. note::\n+\n+      make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.\n+\n 6. Use scapy to send 100 random packets with ip link set MAC to VF, verify the\n    packets can be received by one VF and can be forwarded to another VF\n    correctly.\n@@ -146,6 +157,9 @@ Test Case 2: test_kernel_2pf_2vf_1vm_mac_add_filter\n    VF, disable promisc mode, add a new MAC to VF0 and then start::\n \n       ./usertools/dpdk-devbind.py --bind=igb_uio 00:06.0 00:07.0\n+\n+   if test IAVF, start up VF port::\n+\n       ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x0f -n 4 -a 00:06.0 -a 00:07.0 -- -i --portmask=0x3\n \n       testpmd> port stop all\n@@ -156,6 +170,14 @@ Test Case 2: test_kernel_2pf_2vf_1vm_mac_add_filter\n       testpmd> set fwd mac\n       testpmd> start\n \n+   if test DCF, set VF port to dcf and start up::\n+\n+      ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x0f -n 4 -a 00:06.0,cap=dcf -a 00:07.0,cap=dcf -- -i --portmask=0x3\n+\n+.. note::\n+\n+      make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.\n+\n 6. Use scapy to send 100 random packets with current VF0's MAC, verify the\n    packets can be received by one VF and can be forwarded to another VF\n    correctly.\ndiff --git a/test_plans/vf_offload_test_plan.rst b/test_plans/vf_offload_test_plan.rst\nindex ba490e06..c5e720f2 100644\n--- a/test_plans/vf_offload_test_plan.rst\n+++ b/test_plans/vf_offload_test_plan.rst\n@@ -24,12 +24,28 @@ IP link set VF trust on and spoofchk off on DUT::\n \n Assuming that ports ``0`` and ``1`` are connected to a traffic generator,\n enable hardware rx checksum offload with \"--enable-rx-cksum\",\n-launch the ``testpmd`` with the following arguments::\n+launch the ``testpmd`` with the following arguments:\n+\n+ if test IAVF, start up VF port::\n \n   ./build/app/dpdk-testpmd -cffffff -n 1 -- -i --burst=1 --txpt`=32 \\\n   --txht=8 --txwt=0 --txfreet=0 --rxfreet=64 --mbcache=250 --portmask=0x5\n   --enable-rx-cksum\n \n+ if test DCF, set VF port to dcf and start up::\n+\n+   Enable kernel trust mode:\n+\n+       ip link set $PF_INTF vf 0 trust on\n+\n+   dpdk-testpmd -c 0x0f -n 4 -a 00:04.0,cap=dcf -a 00:05.0,cap=dcf -- -i --burst=1 --txpt=32 \\\n+   --txht=8 --txwt=0 --txfreet=0 --rxfreet=64 --mbcache=250 --portmask=0x5\n+   --enable-rx-cksum\n+\n+.. note::\n+\n+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.\n+\n Set the verbose level to 1 to display information for each received packet::\n \n   testpmd> set verbose 1\ndiff --git a/test_plans/vf_rss_test_plan.rst b/test_plans/vf_rss_test_plan.rst\nindex 846de2d7..92a417f4 100644\n--- a/test_plans/vf_rss_test_plan.rst\n+++ b/test_plans/vf_rss_test_plan.rst\n@@ -50,10 +50,23 @@ The following RX Ports/Queues configurations have to be benchmarked:\n Testpmd configuration - 4 RX/TX queues per port\n -----------------------------------------------\n \n-::\n+ if test IAVF, start up VF port::\n \n   dpdk-testpmd -c 1f -n 3  -- -i --rxq=4 --txq=4\n \n+\n+ if test DCF, set VF port to dcf and start up::\n+\n+   Enable kernel trust mode:\n+\n+       ip link set $PF_INTF vf 0 trust on\n+\n+    dpdk-testpmd -c 0x0f -n 4 -a 00:04.0,cap=dcf -a 00:05.0,cap=dcf -- -i --rxq=4 --txq=4\n+\n+.. note::\n+\n+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.\n+\n Testpmd Configuration Options\n -----------------------------\n \ndiff --git a/test_plans/vf_smoke_test_plan.rst b/test_plans/vf_smoke_test_plan.rst\nindex 33a3273c..40f7611d 100644\n--- a/test_plans/vf_smoke_test_plan.rst\n+++ b/test_plans/vf_smoke_test_plan.rst\n@@ -51,7 +51,9 @@ Prerequisites\n     modprobe vfio-pci\n     ./usertools/dpdk-devbind.py -b vfio-pci 0000:86:01.0\n \n-8. Launch dpdk on VF::\n+8. Launch dpdk on VF:\n+\n+ if test IAVF, start up VF port::\n \n     ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:86:01.0 --file-prefix=pf -- -i --rxq=4 --txq=4\n     testpmd> set fwd mac\n@@ -59,6 +61,19 @@ Prerequisites\n     testpmd> start\n     testpmd> show port info all\n \n+ if test DCF, set VF port to dcf and start up::\n+\n+   Enable kernel trust mode:\n+\n+       ip link set $PF_INTF vf 0 trust on\n+\n+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:86:01.0,cap=dcf --file-prefix=pf -- -i --rxq=4\n+    --txq=4\n+\n+.. note::\n+\n+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.\n+\n \n Test Case 1: test enable and disable jumbo frame\n ====================================================\ndiff --git a/test_plans/vf_vlan_test_plan.rst b/test_plans/vf_vlan_test_plan.rst\nindex 2c38d4dd..24877c6c 100644\n--- a/test_plans/vf_vlan_test_plan.rst\n+++ b/test_plans/vf_vlan_test_plan.rst\n@@ -59,13 +59,27 @@ Prerequisites\n \n      ./tools/dpdk_nic_bind.py --bind=igb_uio 00:04.0 00:05.0\n \n-5. Start testpmd, set it in rxonly mode and enable verbose output::\n+5. Start testpmd, set it in rxonly mode and enable verbose output:\n+\n+ if test IAVF, start up VF port::\n \n      dpdk-testpmd -c 0x0f -n 4 -a 00:04.0 -a 00:05.0 -- -i --portmask=0x3\n      testpmd> set fwd rxonly\n      testpmd> set verbose 1\n      testpmd> start\n \n+ if test DCF, set VF port to dcf and start up::\n+\n+   Enable kernel trust mode:\n+\n+       ip link set $PF_INTF vf 0 trust on\n+\n+    dpdk-testpmd -c 0x0f -n 4 -a 00:04.0,cap=dcf -a 00:05.0,cap=dcf -- -i --portmask=0x3\n+\n+.. note::\n+\n+   make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.\n+\n Test Case 1: Add port based vlan on VF\n ======================================\n \n",
    "prefixes": [
        "V6",
        "2/3"
    ]
}