get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 89442,
    "url": "http://patches.dpdk.org/api/patches/89442/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/1616045251-65532-8-git-send-email-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": "<1616045251-65532-8-git-send-email-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/1616045251-65532-8-git-send-email-zhiminx.huang@intel.com",
    "date": "2021-03-18T05:27:30",
    "name": "[V1,7/8] tests/cvl_dcf_switch_filter_pppoe:split pppoe into new suite",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "82e445fdfab2494598c73a6aeae5e55bd8fab0f5",
    "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/1616045251-65532-8-git-send-email-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 15752,
            "url": "http://patches.dpdk.org/api/series/15752/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=15752",
            "date": "2021-03-18T05:27:23",
            "name": "modified suite to support pkg check",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/15752/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/89442/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/89442/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 43C7BA0561;\n\tThu, 18 Mar 2021 06:40:06 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3CD08141056;\n\tThu, 18 Mar 2021 06:40:06 +0100 (CET)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 69488141049\n for <dts@dpdk.org>; Thu, 18 Mar 2021 06:40:03 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Mar 2021 22:40:02 -0700",
            "from unknown (HELO dpdk-huangzm-d.sh.intel.com) ([10.240.183.72])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Mar 2021 22:40:00 -0700"
        ],
        "IronPort-SDR": [
            "\n D9jBrKcY8OamghtJRD+35QDRwgmtu+jEJ49Zn9o3IdZZoajziOLghMbY2DdxmZHcnXrdLQZ1G4\n 61wXtk1m1/5w==",
            "\n ZFsn117CS2t2NrmwZtOaOa1B2w+p8Wna7poWMCwuzHqMidOfQa9uaEqkYvVKxFZidJw/ryBw1C\n Ky3GmH5ZKq0w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9926\"; a=\"176736190\"",
            "E=Sophos;i=\"5.81,257,1610438400\"; d=\"scan'208\";a=\"176736190\"",
            "E=Sophos;i=\"5.81,257,1610438400\"; d=\"scan'208\";a=\"406214371\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Date": "Thu, 18 Mar 2021 13:27:30 +0800",
        "Message-Id": "<1616045251-65532-8-git-send-email-zhiminx.huang@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1616045251-65532-1-git-send-email-zhiminx.huang@intel.com>",
        "References": "<1616045251-65532-1-git-send-email-zhiminx.huang@intel.com>",
        "Subject": "[dts] [PATCH V1 7/8] tests/cvl_dcf_switch_filter_pppoe:split pppoe\n into new suite",
        "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 new pppoe new suite and add pkg check\n\nSigned-off-by: Zhimin Huang <zhiminx.huang@intel.com>\n---\n tests/TestSuite_cvl_dcf_switch_filter_pppoe.py | 912 +++++++++++++++++++++++++\n 1 file changed, 912 insertions(+)\n create mode 100644 tests/TestSuite_cvl_dcf_switch_filter_pppoe.py",
    "diff": "diff --git a/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py b/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py\nnew file mode 100644\nindex 0000000..247561c\n--- /dev/null\n+++ b/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py\n@@ -0,0 +1,912 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2020 Intel Corporation. All rights reserved.\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+#   * 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+#   * 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 FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+import json\n+import time\n+import re\n+import copy\n+\n+from test_case import TestCase, skip_unsupported_pkg, check_supported_nic\n+from pmd_output import PmdOutput\n+from packet import Packet\n+from utils import BLUE, RED, GREEN\n+import rte_flow_common as rfc\n+\n+import os\n+\n+\n+tv_mac_vlan_pppoe_ipv4_pay_session_id_proto_id = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv4_pay_session_id_proto_id\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x0021 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:54\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv6_pay_session_id_proto_id = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv6_pay_session_id_proto_id\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x0057 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:54\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv4_pay_session_id_proto_id = {\n+    \"name\":\"tv_mac_pppoe_ipv4_pay_session_id_proto_id\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / pppoes seid is 3 / pppoe_proto_id is 0x0021 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:54\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv6_pay_session_id_proto_id = {\n+    \"name\":\"tv_mac_pppoe_ipv6_pay_session_id_proto_id\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / pppoes seid is 3 / pppoe_proto_id is 0x0057 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:54\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6()/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv4_pay_ip_address = {\n+    \"name\":\"tv_mac_pppoe_ipv4_pay_ip_address\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\"*80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/Raw(\"x\"*80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/Raw(\"x\"*80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv4_udp_pay = {\n+    \"name\":\"tv_mac_pppoe_ipv4_udp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / udp src is 25 dst is 23 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=27,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=19)/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv4_udp_pay_non_src_dst_port = {\n+    \"name\":\"tv_mac_pppoe_ipv4_udp_pay_non_src_dst_port\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / udp / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv4_tcp_pay = {\n+    \"name\":\"tv_mac_pppoe_ipv4_tcp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / tcp src is 25 dst is 23 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=27,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=19)/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv4_tcp_pay_non_src_dst_port = {\n+    \"name\":\"tv_mac_pppoe_ipv4_tcp_pay_non_src_dst_port\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / tcp / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv6_pay_ip_address = {\n+    \"name\":\"tv_mac_pppoe_ipv6_pay_ip_address\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 dst is CDCD:910A:2222:5498:8475:1111:3900:2022 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\"*80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\"*80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/Raw(\"x\"*80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\"*80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv6_udp_pay = {\n+    \"name\":\"tv_mac_pppoe_ipv6_udp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2022 / udp src is 25 dst is 23 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=27,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=19)/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv6_udp_pay_non_src_dst_port = {\n+    \"name\":\"tv_mac_pppoe_ipv6_udp_pay_non_src_dst_port\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 dst is CDCD:910A:2222:5498:8475:1111:3900:2022 / udp / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv6_tcp_pay = {\n+    \"name\":\"tv_mac_pppoe_ipv6_tcp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2022 / tcp src is 25 dst is 23 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=27,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=19)/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipv6_tcp_pay_non_src_dst_port = {\n+    \"name\":\"tv_mac_pppoe_ipv6_tcp_pay_non_src_dst_port\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / pppoes / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 dst is CDCD:910A:2222:5498:8475:1111:3900:2022 / tcp / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv4_pay_ip_address = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv4_pay_ip_address\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\"*80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\"*80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/Raw(\"x\"*80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/Raw(\"x\"*80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv4_udp_pay = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv4_udp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / udp src is 25 dst is 23 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=27,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=19)/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv4_udp_pay_non_src_dst_port = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv4_udp_pay_non_src_dst_port\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / udp / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv4_tcp_pay = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv4_tcp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / tcp src is 25 dst is 23 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=27,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=19)/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv4_tcp_pay_non_src_dst_port = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv4_tcp_pay_non_src_dst_port\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv4 src is 192.168.1.1 dst is 192.168.1.2 / tcp / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.3\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.4\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv6_pay_ip_address = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv6_pay_ip_address\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\"*80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\"*80)',\n+                               'Ether(dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\"*80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv6_udp_pay = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv6_udp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2022 / udp src is 25 dst is 23 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=27,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=19)/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv6_udp_pay_non_src_dst_port = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv6_udp_pay_non_src_dst_port\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 / udp / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv6_tcp_pay = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv6_tcp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2022 / tcp src is 25 dst is 23 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=27,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=19)/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipv6_tcp_pay_non_src_dst_port = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipv6_tcp_pay_non_src_dst_port\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth / vlan tci is 1 / pppoes / ipv6 src is CDCD:910A:2222:5498:8475:1111:3900:1536 / tcp / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_lcp_pay = {\n+    \"name\":\"tv_mac_pppoe_lcp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / pppoes seid is 3 / pppoe_proto_id is 0xc021 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:53\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_pppoe_ipcp_pay = {\n+    \"name\":\"tv_mac_pppoe_ipcp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / pppoes seid is 3 / pppoe_proto_id is 0x8021 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:53\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_lcp_pay = {\n+    \"name\":\"tv_mac_vlan_pppoe_lcp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0xc021 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:53\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\xc0\\\\x21\\')/PPP_LCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+tv_mac_vlan_pppoe_ipcp_pay = {\n+    \"name\":\"tv_mac_vlan_pppoe_ipcp_pay\",\n+    \"rte_flow_pattern\":\"flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / vlan tci is 1 / pppoes seid is 3 / pppoe_proto_id is 0x8021 / end actions vf id 1 / end\",\n+    \"matched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)'],\n+               \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                             \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+               \"expect_results\":{\"expect_pkts\":1}},\n+    \"mismatched\":{\"scapy_str\":['Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:53\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=2,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=4)/PPP(b\\'\\\\x80\\\\x21\\')/PPP_IPCP()/Raw(\"x\" * 80)',\n+                               'Ether(src=\"11:22:33:44:55:99\",dst=\"00:11:22:33:44:55\",type=0x8100)/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP()/Raw(\"x\" * 80)'],\n+                  \"check_func\":{\"func\":rfc.check_vf_rx_packets_number,\n+                                \"param\":{\"expect_port\":1, \"expect_queues\":\"null\"}},\n+                  \"expect_results\":{\"expect_pkts\":0}}\n+}\n+\n+class CVLDCFSwitchFilterPPPOETest(TestCase):\n+    supported_nic = ['columbiaville_100g', 'columbiaville_25g', 'columbiaville_25gx2']\n+\n+    def bind_nics_driver(self, ports, driver=\"\"):\n+        # modprobe vfio driver\n+        if driver == \"vfio-pci\":\n+            for port in ports:\n+                netdev = self.dut.ports_info[port]['port']\n+                driver = netdev.get_nic_driver()\n+                if driver != 'vfio-pci':\n+                    netdev.bind_driver(driver='vfio-pci')\n+\n+        elif driver == \"igb_uio\":\n+            # igb_uio should insmod as default, no need to check\n+            for port in ports:\n+                netdev = self.dut.ports_info[port]['port']\n+                driver = netdev.get_nic_driver()\n+                if driver != 'igb_uio':\n+                    netdev.bind_driver(driver='igb_uio')\n+        else:\n+            for port in ports:\n+                netdev = self.dut.ports_info[port]['port']\n+                driver_now = netdev.get_nic_driver()\n+                if driver == \"\":\n+                    driver = netdev.default_driver\n+                if driver != driver_now:\n+                    netdev.bind_driver(driver=driver)\n+\n+    @check_supported_nic(supported_nic)\n+    @skip_unsupported_pkg(['os default', 'wireless'])\n+    def set_up_all(self):\n+        \"\"\"\n+        Run at the start of each test suite.\n+        \"\"\"\n+        self.dut_ports = self.dut.get_ports(self.nic)\n+        # Verify that enough ports are available\n+        self.verify(len(self.dut_ports) >= 1, \"Insufficient ports\")\n+        localPort = self.tester.get_local_port(self.dut_ports[0])\n+        self.__tx_iface = self.tester.get_interface(localPort)\n+        self.pkt = Packet()\n+        self.testpmd_status = \"close\"\n+        #bind pf to kernel\n+        self.bind_nics_driver(self.dut_ports, driver=\"ice\")\n+\n+        #set vf driver\n+        self.vf_driver = 'vfio-pci'\n+        self.dut.send_expect('modprobe vfio-pci', '#')\n+        self.path = self.dut.apps_name['test-pmd']\n+\n+    def setup_1pf_vfs_env(self, pf_port=0, driver='default'):\n+\n+        self.used_dut_port_0 = self.dut_ports[pf_port]\n+        #get PF interface name\n+        self.pf0_intf = self.dut.ports_info[self.used_dut_port_0]['intf']\n+        out = self.dut.send_expect('ethtool -i %s' % self.pf0_intf, '#')\n+        #generate 4 VFs on PF\n+        self.dut.generate_sriov_vfs_by_port(self.used_dut_port_0, 4, driver=driver)\n+        self.sriov_vfs_port_0 = self.dut.ports_info[self.used_dut_port_0]['vfs_port']\n+        #set VF0 as trust\n+        self.dut.send_expect('ip link set %s vf 0 trust on' % self.pf0_intf, '#')\n+        #bind VFs to dpdk driver\n+        for port in self.sriov_vfs_port_0:\n+            port.bind_driver(self.vf_driver)\n+        time.sleep(5)\n+\n+    def set_up(self):\n+        \"\"\"\n+        Run before each test case.\n+        \"\"\"\n+        pass\n+\n+    def create_testpmd_command(self):\n+        \"\"\"\n+        Create testpmd command\n+        \"\"\"\n+        #Prepare testpmd EAL and parameters\n+        vf0_pci = self.sriov_vfs_port_0[0].pci\n+        vf1_pci = self.sriov_vfs_port_0[1].pci\n+        all_eal_param = self.dut.create_eal_parameters(cores='1S/4C/1T',ports=[vf0_pci, vf1_pci], port_options={vf0_pci:\"cap=dcf\"})\n+        command = self.path + all_eal_param + \" -- -i\"\n+        return command\n+\n+    def launch_testpmd(self):\n+        \"\"\"\n+        launch testpmd with the command\n+        \"\"\"\n+        command = self.create_testpmd_command()\n+        out = self.dut.send_expect(command, \"testpmd> \", 15)\n+        self.testpmd_status = \"running\"\n+        self.dut.send_expect(\"set portlist 1\", \"testpmd> \", 15)\n+        self.dut.send_expect(\"set fwd rxonly\", \"testpmd> \", 15)\n+        self.dut.send_expect(\"set verbose 1\", \"testpmd> \", 15)\n+\n+    def send_packets(self, dic, session_name=\"\", tx_iface=\"\"):\n+        \"\"\"\n+        send packets.\n+        \"\"\"\n+        if session_name == \"\":\n+            session_name = self.dut\n+        if tx_iface == \"\":\n+            tx_iface = self.__tx_iface\n+        session_name.send_expect(\"start\", \"testpmd> \", 15)\n+        time.sleep(2)\n+        #send packets\n+        self.pkt.update_pkt(dic[\"scapy_str\"])\n+        self.pkt.send_pkt(self.tester, tx_port=tx_iface, count=1, timeout=370)\n+        time.sleep(3)\n+        out = session_name.send_expect(\"stop\", \"testpmd> \")\n+        return out\n+\n+    def send_and_check_packets(self, dic, session_name=\"\", tx_iface=\"\"):\n+        \"\"\"\n+        general packets processing workflow.\n+        \"\"\"\n+        if session_name == \"\":\n+            session_name = self.dut\n+        if tx_iface == \"\":\n+            tx_iface = self.__tx_iface\n+        session_name.send_expect(\"start\", \"testpmd> \", 15)\n+        time.sleep(2)\n+        #send packets\n+        self.pkt.update_pkt(dic[\"scapy_str\"])\n+        self.pkt.send_pkt(self.tester, tx_port=tx_iface, count=1, timeout=370)\n+        time.sleep(3)\n+        out = session_name.send_expect(\"stop\", \"testpmd> \", 15)\n+        dic[\"check_func\"][\"func\"](out, dic[\"check_func\"][\"param\"], dic[\"expect_results\"])\n+\n+    def send_and_get_packets_bg(self, dic, session_name=\"\", tx_iface=\"\"):\n+        \"\"\"\n+        general packets processing workflow.\n+        \"\"\"\n+        if session_name == \"\":\n+            session_name = self.dut\n+        if tx_iface == \"\":\n+            tx_iface = self.__tx_iface\n+        session_name.send_expect(\"start\", \"testpmd> \", 15)\n+        time.sleep(2)\n+        #send packets\n+        pkt = Packet()\n+        pkt.update_pkt(dic[\"scapy_str\"])\n+        pkt.send_pkt_bg(self.tester, tx_port=tx_iface, count=1, loop=0, timeout=370)\n+        time.sleep(3)\n+        out = session_name.send_expect(\"stop\", \"testpmd> \", 15)\n+        results = dic[\"check_func\"][\"func\"](out, dic[\"check_func\"][\"param\"], dic[\"expect_results\"], False)\n+        return results\n+\n+    def validate_switch_filter_rule(self, rte_flow_pattern, session_name=\"\", check_stats=True):\n+        \"\"\"\n+        validate switch filter rules\n+        \"\"\"\n+        if session_name == \"\":\n+            session_name = self.dut\n+        p = \"Flow rule validated\"\n+        rule_list = []\n+        if isinstance(rte_flow_pattern, list):\n+            for rule in rte_flow_pattern:\n+                length = len(rule)\n+                rule_rep = rule[0:5] + \"validate\" + rule[11:length]\n+                out = session_name.send_expect(rule_rep, \"testpmd> \")  #validate a rule\n+                if (p in out) and (\"Failed\" not in out):\n+                    rule_list.append(True)\n+                else:\n+                    rule_list.append(False)\n+        elif isinstance(rte_flow_pattern, str):\n+            length = len(rte_flow_pattern)\n+            rule_rep = rte_flow_pattern[0:5] + \"validate\" + rte_flow_pattern[11:length]\n+            out = session_name.send_expect(rule_rep, \"testpmd> \")  #validate a rule\n+            if (p in out) and (\"Failed\" not in out):\n+                rule_list.append(True)\n+            else:\n+                rule_list.append(False)\n+        else:\n+            raise Exception(\"unsupported rule type, only accept list or str\")\n+        if check_stats:\n+            self.verify(all(rule_list), \"some rules not validated successfully, result %s, rule %s\" % (rule_list, rte_flow_pattern))\n+        else:\n+            self.verify(not any(rule_list), \"all rules should not validate successfully, result %s, rule %s\" % (rule_list, rte_flow_pattern))\n+\n+    def create_switch_filter_rule(self, rte_flow_pattern, session_name=\"\", check_stats=True):\n+        \"\"\"\n+        create switch filter rules\n+        \"\"\"\n+        if session_name == \"\":\n+            session_name = self.dut\n+        p = re.compile(r\"Flow rule #(\\d+) created\")\n+        rule_list = []\n+        if isinstance(rte_flow_pattern, list):\n+            for rule in rte_flow_pattern:\n+                out = session_name.send_expect(rule, \"testpmd> \")  #create a rule\n+                m = p.search(out)\n+                if m:\n+                    rule_list.append(m.group(1))\n+                else:\n+                    rule_list.append(False)\n+        else:\n+            out = session_name.send_expect(rte_flow_pattern, \"testpmd> \")  #create a rule\n+            m = p.search(out)\n+            if m:\n+                rule_list.append(m.group(1))\n+            else:\n+                rule_list.append(False)\n+        if check_stats:\n+            self.verify(all(rule_list), \"some rules not created successfully, result %s, rule %s\" % (rule_list, rte_flow_pattern))\n+        else:\n+            self.verify(not any(rule_list), \"all rules should create failed, result %s\" % rule_list)\n+        return rule_list\n+\n+    def check_switch_filter_rule_list(self, port_id, rule_list, session_name=\"\", need_verify=True):\n+        \"\"\"\n+        check the rules in list identical to ones in rule_list\n+        \"\"\"\n+        if session_name == \"\":\n+            session_name = self.dut\n+        out = session_name.send_expect(\"flow list %d\" % port_id, \"testpmd> \", 15)\n+        p = re.compile(r\"ID\\s+Group\\s+Prio\\s+Attr\\s+Rule\")\n+        m = p.search(out)\n+        if not m:\n+            result = []\n+        else:\n+            p_spec = re.compile(\"^(\\d+)\\s\")\n+            out_lines = out.splitlines()\n+            res = filter(bool, map(p_spec.match, out_lines))\n+            result = [i.group(1) for i in res]\n+        if need_verify:\n+            self.verify(result == rule_list,\n+                    \"the rule list is not the same. expect %s, result %s\" % (rule_list, result))\n+        else:\n+            return result\n+\n+    def destroy_switch_filter_rule(self, port_id, rule_list, session_name=\"\", need_verify=True):\n+        if session_name == \"\":\n+            session_name = self.dut\n+        p = re.compile(r\"Flow rule #(\\d+) destroyed\")\n+        destroy_list = []\n+        if isinstance(rule_list, list):\n+            for i in rule_list:\n+                out = session_name.send_expect(\"flow destroy %s rule %s\" % (port_id, i), \"testpmd> \", 15)\n+                m = p.search(out)\n+                if m:\n+                    destroy_list.append(m.group(1))\n+                else:\n+                    destroy_list.append(False)\n+        else:\n+            out = session_name.send_expect(\"flow destroy %s rule %s\" % (port_id, rule_list), \"testpmd> \", 15)\n+            m = p.search(out)\n+            if m:\n+                destroy_list.append(m.group(1))\n+            else:\n+                destroy_list.append(False)\n+            rule_list = [rule_list]\n+        if need_verify:\n+            self.verify(destroy_list == rule_list, \"flow rule destroy failed, expect %s result %s\" % (rule_list, destroy_list))\n+        else:\n+            return destroy_list\n+\n+    def get_kernel_vf_log(self, vf_intfs, session_name):\n+        \"\"\"\n+        get the log of each kernel vf in list vf_intfs\n+        \"\"\"\n+        out_vfs = []\n+        for intf in vf_intfs:\n+            out = session_name.send_expect('ifconfig %s' % intf, '#')\n+            out_vfs.append(out)\n+        return out_vfs\n+\n+    def _rte_flow_validate_pattern(self, test_vector, launch_testpmd=True):\n+\n+        if launch_testpmd:\n+            #launch testpmd\n+            self.launch_testpmd()\n+        #validate a rule\n+        self.validate_switch_filter_rule(test_vector[\"rte_flow_pattern\"])\n+        #create a rule\n+        rule_list = self.create_switch_filter_rule(test_vector[\"rte_flow_pattern\"])   #create a rule\n+        self.check_switch_filter_rule_list(0, rule_list)\n+        #send matched packets and check\n+        matched_dic = test_vector[\"matched\"]\n+        self.send_and_check_packets(matched_dic)\n+        #send mismatched packets and check\n+        mismatched_dic = test_vector[\"mismatched\"]\n+        self.send_and_check_packets(mismatched_dic)\n+        #destroy rule and send matched packets\n+        self.destroy_switch_filter_rule(0, rule_list)\n+        self.check_switch_filter_rule_list(0, [])\n+        #send matched packets and check\n+        destroy_dict = copy.deepcopy(matched_dic)\n+        if isinstance(destroy_dict[\"expect_results\"][\"expect_pkts\"], list):\n+            destroy_dict[\"expect_results\"][\"expect_pkts\"] = [0]*len(destroy_dict[\"expect_results\"][\"expect_pkts\"])\n+        else:\n+            destroy_dict[\"expect_results\"][\"expect_pkts\"] = 0\n+        self.send_and_check_packets(destroy_dict)\n+\n+    def test_mac_vlan_pppoe_ipv4_pay_session_id_proto_id(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv4_pay_session_id_proto_id)\n+\n+    def test_mac_vlan_pppoe_ipv6_pay_session_id_proto_id(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv6_pay_session_id_proto_id)\n+\n+    def test_mac_pppoe_ipv4_pay_session_id_proto_id(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv4_pay_session_id_proto_id)\n+\n+    def test_mac_pppoe_ipv6_pay_session_id_proto_id(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv6_pay_session_id_proto_id)\n+\n+    def test_mac_pppoe_ipv4_pay_ip_address(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv4_pay_ip_address)\n+\n+    def test_mac_pppoe_ipv4_udp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv4_udp_pay)\n+\n+    def test_mac_pppoe_ipv4_udp_pay_non_src_dst_port(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv4_udp_pay_non_src_dst_port)\n+\n+    def test_mac_pppoe_ipv4_tcp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv4_tcp_pay)\n+\n+    def test_mac_pppoe_ipv4_tcp_pay_non_src_dst_port(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv4_tcp_pay_non_src_dst_port)\n+\n+    def test_mac_pppoe_ipv6_pay_ip_address(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv6_pay_ip_address)\n+\n+    def test_mac_pppoe_ipv6_udp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv6_udp_pay)\n+\n+    def test_mac_pppoe_ipv6_udp_pay_non_src_dst_port(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv6_udp_pay_non_src_dst_port)\n+\n+    def test_mac_pppoe_ipv6_tcp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv6_tcp_pay)\n+\n+    def test_mac_pppoe_ipv6_tcp_pay_non_src_dst_port(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipv6_tcp_pay_non_src_dst_port)\n+\n+    def test_mac_vlan_pppoe_ipv4_pay_ip_address(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv4_pay_ip_address)\n+\n+    def test_mac_vlan_pppoe_ipv4_udp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv4_udp_pay)\n+\n+    def test_mac_vlan_pppoe_ipv4_udp_pay_non_src_dst_port(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv4_udp_pay_non_src_dst_port)\n+\n+    def test_mac_vlan_pppoe_ipv4_tcp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv4_tcp_pay)\n+\n+    def test_mac_vlan_pppoe_ipv4_tcp_pay_non_src_dst_port(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv4_tcp_pay_non_src_dst_port)\n+\n+    def test_mac_vlan_pppoe_ipv6_pay_ip_address(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv6_pay_ip_address)\n+\n+    def test_mac_vlan_pppoe_ipv6_udp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv6_udp_pay)\n+\n+    def test_mac_vlan_pppoe_ipv6_udp_pay_non_src_dst_port(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv6_udp_pay_non_src_dst_port)\n+\n+    def test_mac_vlan_pppoe_ipv6_tcp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv6_tcp_pay)\n+\n+    def test_mac_vlan_pppoe_ipv6_tcp_pay_non_src_dst_port(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipv6_tcp_pay_non_src_dst_port)\n+\n+    def test_mac_pppoe_lcp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_lcp_pay)\n+\n+    def test_mac_pppoe_ipcp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_pppoe_ipcp_pay)\n+\n+    def test_mac_vlan_pppoe_lcp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_lcp_pay)\n+\n+    def test_mac_vlan_pppoe_ipcp_pay(self):\n+        self.setup_1pf_vfs_env()\n+        self._rte_flow_validate_pattern(tv_mac_vlan_pppoe_ipcp_pay)\n+\n+    def tear_down(self):\n+        \"\"\"\n+        Run after each test case.\n+        \"\"\"\n+        if self.testpmd_status != \"close\":\n+            # destroy all flow rules on DCF\n+            self.dut.send_expect(\"flow flush 0\", \"testpmd> \", 15)\n+            self.dut.send_expect(\"clear port stats all\", \"testpmd> \", 15)\n+            self.dut.send_expect(\"quit\", \"#\", 15)\n+            #kill all DPDK application\n+            self.dut.kill_all()\n+            # destroy vfs\n+            for port_id in self.dut_ports:\n+                self.dut.destroy_sriov_vfs_by_port(port_id)\n+        self.testpmd_status = \"close\"\n+        if getattr(self, 'session_secondary', None):\n+            self.dut.close_session(self.session_secondary)\n+\n+    def tear_down_all(self):\n+        \"\"\"\n+        Run after each test suite.\n+        \"\"\"\n+        self.dut.kill_all()\n",
    "prefixes": [
        "V1",
        "7/8"
    ]
}