get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 81908,
    "url": "https://patches.dpdk.org/api/patches/81908/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20201023173012.21141-2-qinx.sun@intel.com/",
    "project": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20201023173012.21141-2-qinx.sun@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20201023173012.21141-2-qinx.sun@intel.com",
    "date": "2020-10-23T17:30:11",
    "name": "[V2,1/2] add iavf_rss_vlan_esp_ah_l2tp_pfcp suite",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "a51458ef2878db3617264c2dd46493b949aa1149",
    "submitter": {
        "id": 1956,
        "url": "https://patches.dpdk.org/api/people/1956/?format=api",
        "name": "Sun, QinX",
        "email": "qinx.sun@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20201023173012.21141-2-qinx.sun@intel.com/mbox/",
    "series": [
        {
            "id": 13257,
            "url": "https://patches.dpdk.org/api/series/13257/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=13257",
            "date": "2020-10-23T17:30:11",
            "name": "Add cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp test suite and configure file",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/13257/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/81908/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/81908/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id BFFA2A04DE;\n\tFri, 23 Oct 2020 10:51:03 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B1579A8F1;\n\tFri, 23 Oct 2020 10:51:02 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 74A16A8E7\n for <dts@dpdk.org>; Fri, 23 Oct 2020 10:50:59 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Oct 2020 01:50:57 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.105])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Oct 2020 01:50:55 -0700"
        ],
        "IronPort-SDR": [
            "\n nDZNOc4K7jDpS2pdoFfZBnCeFNFdWLPibG/TFFa5pYzaLUEy2nM2OuhRGQb3wWvbPdMg3URY5G\n EeT3C3b+V71Q==",
            "\n XerHrdTsO0KiOU4tO0h6+ozlN/ap2SDZOuCVD9wGiaOcFlzTgVzjgxwlD/2VkpLuy0ha5jUxf9\n R7zQmrL9059w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9782\"; a=\"146939049\"",
            "E=Sophos;i=\"5.77,407,1596524400\"; d=\"scan'208\";a=\"146939049\"",
            "E=Sophos;i=\"5.77,407,1596524400\"; d=\"scan'208\";a=\"524612331\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "From": "sunqin <qinx.sun@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "sunqin <qinx.sun@intel.com>",
        "Date": "Fri, 23 Oct 2020 17:30:11 +0000",
        "Message-Id": "<20201023173012.21141-2-qinx.sun@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20201023173012.21141-1-qinx.sun@intel.com>",
        "References": "<20201023173012.21141-1-qinx.sun@intel.com>",
        "Subject": "[dts]  [PATCH V2 1/2] add iavf_rss_vlan_esp_ah_l2tp_pfcp suite",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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 TestSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py test suite\n\nSigned-off-by: sunqin <qinx.sun@intel.com>\n---\n ...advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py | 1047 +++++++++++++++++\n 1 file changed, 1047 insertions(+)\n create mode 100644 tests/TestSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py",
    "diff": "diff --git a/tests/TestSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py b/tests/TestSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py\nnew file mode 100644\nindex 0000000..ffafd80\n--- /dev/null\n+++ b/tests/TestSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py\n@@ -0,0 +1,1047 @@\n+# BSD LICENSE\n+#\n+# Copyright(c) 2010-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+import re\n+import random\n+import string\n+import time\n+from test_case import TestCase\n+from pmd_output import PmdOutput\n+from packet import Packet\n+from rte_flow_common import RssProcessing\n+from config import UserConf\n+\n+vf0_mac = '00:11:22:33:44:55'\n+\n+mac_ipv4_pfcp_session_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.20\",dst=\"192.168.0.21\")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=1)/Raw(\"x\"*80)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.20\",dst=\"192.168.0.21\")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=2)/Raw(\"x\"*80)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.25\",dst=\"192.168.0.23\")/UDP(sport=23,dport=8805)/PFCP(Sfield=1, SEID=1)/Raw(\"x\"*80)'.format(\n+            vf0_mac)],\n+    'mismatch': [\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=1)/Raw(\"x\"*80)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.20\",dst=\"192.168.0.21\")/UDP(sport=22,dport=25)/Raw(\"x\"*80)'.format(vf0_mac)]\n+}\n+\n+mac_ipv4_pfcp_session = {\n+    'sub_casename': 'mac_ipv4_pfcp_session',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv4 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv4_pfcp_session_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv4_pfcp_session_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv4_pfcp_session_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': [i for i in mac_ipv4_pfcp_session_packets['mismatch']],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in mac_ipv4_pfcp_session_packets['match']],\n+}\n+\n+mac_ipv6_pfcp_session_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=1)/Raw(\"x\"*80)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=2)/Raw(\"x\"*80)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/UDP(sport=23,dport=8805)/PFCP(Sfield=1, SEID=1)/Raw(\"x\"*80)'.format(\n+            vf0_mac)],\n+    'mismatch': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.20\",dst=\"192.168.0.21\")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=1)/Raw(\"x\"*80)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=22,dport=25)/Raw(\"x\"*80)'.format(\n+            vf0_mac)]\n+}\n+\n+mac_ipv6_pfcp_session = {\n+    'sub_casename': 'mac_ipv6_pfcp_session',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv6 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv6_pfcp_session_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv6_pfcp_session_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv6_pfcp_session_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': [i for i in mac_ipv6_pfcp_session_packets['mismatch']],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in mac_ipv6_pfcp_session_packets['match']],\n+}\n+\n+mac_ipv4_l2tpv3_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\", proto=115)/L2TP(\\'\\\\x00\\\\x00\\\\x00\\\\x11\\')/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.4\", proto=115)/L2TP(\\'\\\\x00\\\\x00\\\\x00\\\\x12\\')/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.5\",dst=\"192.168.0.7\", proto=115)/L2TP(\\'\\\\x00\\\\x00\\\\x00\\\\x11\\')/Raw(\"x\"*480)'.format(\n+            vf0_mac)\n+    ],\n+    'mismatch': [\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=115)/L2TP(\\'\\\\x00\\\\x00\\\\x00\\\\x11\\')/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.20\",dst=\"192.168.0.21\")/UDP(sport=22,dport=25)/Raw(\"x\"*80)'.format(vf0_mac)\n+    ]\n+}\n+\n+mac_ipv4_l2tpv3 = {\n+    'sub_casename': 'mac_ipv4_l2tpv3',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv4 / l2tpv3oip / end actions rss types l2tpv3 end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv4_l2tpv3_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv4_l2tpv3_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv4_l2tpv3_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': [i for i in mac_ipv4_l2tpv3_packets['mismatch']],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in mac_ipv4_l2tpv3_packets['match']],\n+}\n+\n+mac_ipv6_l2tpv3_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=115)/L2TP(\\'\\\\x00\\\\x00\\\\x00\\\\x11\\')/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=115)/L2TP(\\'\\\\x00\\\\x00\\\\x00\\\\x12\\')/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\", nh=115)/L2TP(\\'\\\\x00\\\\x00\\\\x00\\\\x11\\')/Raw(\"x\"*480)'.format(\n+            vf0_mac)\n+    ],\n+    'mismatch': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\", proto=115)/L2TP(\\'\\\\x00\\\\x00\\\\x00\\\\x11\\')/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=22,dport=25)/Raw(\"x\"*80)'.format(\n+            vf0_mac)\n+    ]\n+}\n+\n+mac_ipv6_l2tpv3 = {\n+    'sub_casename': 'mac_ipv6_l2tpv3',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv6 / l2tpv3oip / end actions rss types l2tpv3 end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv6_l2tpv3_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv6_l2tpv3_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv6_l2tpv3_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': [i for i in mac_ipv6_l2tpv3_packets['mismatch']],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in mac_ipv6_l2tpv3_packets['match']]\n+}\n+\n+mac_ipv4_esp_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\",proto=50)/ESP(spi=11)/Raw(\"x\"*480)'.format(vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\",proto=50)/ESP(spi=12)/Raw(\"x\"*480)'.format(vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.4\",dst=\"192.168.0.7\",proto=50)/ESP(spi=11)/Raw(\"x\"*480)'.format(vf0_mac)],\n+    'mismatch': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\", proto=115)/L2TP(\\'\\\\x00\\\\x00\\\\x00\\\\x11\\')/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=50)/ESP(spi=12)/Raw(\"x\"*480)'.format(\n+            vf0_mac)\n+    ]\n+}\n+\n+mac_ipv4_esp = {\n+    'sub_casename': 'mac_ipv4_esp',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv4 / esp / end actions rss types esp end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv4_esp_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv4_esp_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv4_esp_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': [\n+        #         i for i in mac_ipv4_esp_packets['mismatch']],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in mac_ipv4_esp_packets['match']],\n+}\n+\n+mac_ipv4_udp_esp_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\")/UDP(dport=4500)/ESP(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\")/UDP(dport=4500)/ESP(spi=12)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.4\",dst=\"192.168.0.7\")/UDP(dport=4500)/ESP(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac)],\n+    'mismatch': [\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(dport=4500)/ESP(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(src=\"00:11:22:33:44:55\", dst=\"10:22:33:44:55:66\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\")/UDP(sport=25,dport=23)/Raw(\"x\"*80)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\",proto=50)/ESP(spi=11)/Raw(\"x\"*480)'.format(vf0_mac)]\n+}\n+\n+mac_ipv4_udp_esp = {\n+    'sub_casename': 'mac_ipv4_udp_esp',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv4 / udp / esp / end actions rss types esp end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv4_udp_esp_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv4_udp_esp_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv4_udp_esp_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': [i for i in mac_ipv4_udp_esp_packets['mismatch']],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_ipv4_esp_packets['match']],\n+}\n+\n+mac_ipv6_esp_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=50)/ESP(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=50)/ESP(spi=12)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\", nh=50)/ESP(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac)],\n+    'mismatch': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\",proto=50)/ESP(spi=11)/Raw(\"x\"*480)'.format(vf0_mac),\n+        'Ether(src=\"00:11:22:33:44:55\", dst=\"10:22:33:44:55:66\")/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)'.format(\n+            vf0_mac)]\n+}\n+\n+mac_ipv6_esp = {\n+    'sub_casename': 'mac_ipv6_esp',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv6 / esp / end actions rss types esp end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv6_esp_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv6_esp_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv6_esp_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': [i for i in mac_ipv6_esp_packets['mismatch']],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_ipv6_esp_packets['match']],\n+}\n+\n+mac_ipv6_udp_esp_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(dport=4500)/ESP(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(dport=4500)/ESP(spi=12)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/UDP(dport=4500)/ESP(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac)],\n+    'mismatch': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\")/UDP(dport=4500)/ESP(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(src=\"00:11:22:33:44:55\", dst=\"10:22:33:44:55:66\")/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)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=50)/ESP(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac)]\n+}\n+\n+mac_ipv6_udp_esp = {\n+    'sub_casename': 'mac_ipv6_udp_esp',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv6 / udp / esp / end actions rss types esp end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv6_udp_esp_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv6_udp_esp_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv6_udp_esp_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': [i for i in mac_ipv6_udp_esp_packets['mismatch']],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_ipv6_udp_esp_packets['match']],\n+\n+}\n+\n+mac_ipv4_ah_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\",proto=51)/AH(spi=11)/Raw(\"x\"*480)'.format(vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\",proto=51)/AH(spi=12)/Raw(\"x\"*480)'.format(vf0_mac),\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.4\",dst=\"192.168.0.8\",proto=51)/AH(spi=11)/Raw(\"x\"*480)'.format(vf0_mac)],\n+    'mismatch': [\n+        'Ether(src=\"00:11:22:33:44:55\", dst=\"10:22:33:44:55:66\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\")/UDP(sport=25,dport=23)/Raw(\"x\"*80)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=51)/AH(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac)]\n+}\n+\n+mac_ipv4_ah = {\n+    'sub_casename': 'mac_ipv4_ah',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv4 / ah / end actions rss types ah end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv4_ah_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv4_ah_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv4_ah_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': mac_ipv4_ah_packets['mismatch'],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in mac_ipv4_ah_packets['match']],\n+\n+}\n+\n+mac_ipv6_ah_packets = {\n+    'match': [\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=51)/AH(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\", nh=51)/AH(spi=12)/Raw(\"x\"*480)'.format(\n+            vf0_mac),\n+        'Ether(dst=\"{}\")/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\", nh=51)/AH(spi=11)/Raw(\"x\"*480)'.format(\n+            vf0_mac)],\n+    'mismatch': [\n+        'Ether(dst=\"{}\")/IP(src=\"192.168.0.3\",dst=\"192.168.0.5\",proto=51)/AH(spi=11)/Raw(\"x\"*480)'.format(vf0_mac),\n+        'Ether(src=\"00:11:22:33:44:55\", dst=\"10:22:33:44:55:66\")/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)'.format(\n+            vf0_mac)]\n+}\n+\n+mac_ipv6_ah = {\n+    'sub_casename': 'mac_ipv6_ah',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / ipv6 / ah / end actions rss types ah end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_ipv6_ah_packets['match'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_ipv6_ah_packets['match'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_ipv6_ah_packets['match'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': [i for i in mac_ipv6_ah_packets['mismatch']],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in mac_ipv6_ah_packets['match']],\n+}\n+\n+mac_vlan_ipv4_pay_packets = {\n+    'match': {\n+        'mac_vlan_ipv4_pay': [\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=2,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:99\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.3\", dst=\"192.168.1.4\")/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+        ],\n+    },\n+    'mismatch': [\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\" * 80)'.format(\n+            vf0_mac)\n+    ]\n+}\n+\n+mac_vlan_ipv4_pay = {\n+    'sub_casename': 'mac_vlan_ipv4_pay',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / vlan / ipv4 / end actions rss types c-vlan end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_vlan_ipv4_pay_packets['match']['mac_vlan_ipv4_pay'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv4_pay_packets['match']['mac_vlan_ipv4_pay'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv4_pay_packets['match']['mac_vlan_ipv4_pay'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': mac_vlan_ipv4_pay_packets['mismatch'][0],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_vlan_ipv4_pay_packets['match']['mac_vlan_ipv4_pay']],\n+}\n+\n+mac_vlan_ipv4_udp_pay_packets = {\n+    'match': {\n+        'mac_vlan_ipv4_udp_pay': [\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=2,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:99\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.3\", dst=\"192.168.1.4\")/UDP(sport=19,dport=99)/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+        ]\n+    },\n+    'mismatch': [\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+            vf0_mac),\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/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)'.format(\n+            vf0_mac)\n+    ]\n+}\n+\n+mac_vlan_ipv4_udp_pay = {\n+    'sub_casename': 'mac_vlan_ipv4_udp_pay',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / vlan / ipv4 / udp / end actions rss types c-vlan end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_vlan_ipv4_udp_pay_packets['match']['mac_vlan_ipv4_udp_pay'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv4_udp_pay_packets['match']['mac_vlan_ipv4_udp_pay'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv4_udp_pay_packets['match']['mac_vlan_ipv4_udp_pay'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': mac_vlan_ipv4_udp_pay_packets['mismatch'],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_vlan_ipv4_udp_pay_packets['match']['mac_vlan_ipv4_udp_pay']],\n+}\n+\n+mac_vlan_ipv4_tcp_pay_packets = {\n+    'match': {\n+        'mac_vlan_ipv4_tcp_pay': [\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=2,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:99\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.3\", dst=\"192.168.1.4\")/TCP(sport=19,dport=99)/Raw(\"x\" * 80)'.format(\n+                vf0_mac)\n+        ]\n+    },\n+    'mismatch': [\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+            vf0_mac),\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/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)'.format(\n+            vf0_mac)\n+    ]\n+}\n+\n+mac_vlan_ipv4_tcp_pay = {\n+    'sub_casename': 'mac_vlan_ipv4_tcp_pay',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / vlan / ipv4 / tcp / end actions rss types c-vlan end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_vlan_ipv4_tcp_pay_packets['match']['mac_vlan_ipv4_tcp_pay'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv4_tcp_pay_packets['match']['mac_vlan_ipv4_tcp_pay'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv4_tcp_pay_packets['match']['mac_vlan_ipv4_tcp_pay'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': mac_vlan_ipv4_tcp_pay_packets['mismatch'],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_vlan_ipv4_tcp_pay_packets['match']['mac_vlan_ipv4_tcp_pay']],\n+}\n+\n+mac_vlan_ipv4_sctp_pay_packets = {\n+    'match': {\n+        'mac_vlan_ipv4_sctp_pay': [\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/SCTP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=2,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/SCTP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:99\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.3\", dst=\"192.168.1.5\")/SCTP(sport=19,dport=99)/Raw(\"x\" * 80)'.format(\n+                vf0_mac)\n+        ]\n+    },\n+    'mismatch': [\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+            vf0_mac),\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/SCTP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+            vf0_mac)\n+\n+    ]\n+}\n+\n+mac_vlan_ipv4_sctp_pay = {\n+    'sub_casename': 'mac_vlan_ipv4_sctp_pay',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / vlan / ipv4 / sctp / end actions rss types c-vlan end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_vlan_ipv4_sctp_pay_packets['match']['mac_vlan_ipv4_sctp_pay'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv4_sctp_pay_packets['match']['mac_vlan_ipv4_sctp_pay'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv4_sctp_pay_packets['match']['mac_vlan_ipv4_sctp_pay'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': mac_vlan_ipv4_sctp_pay_packets['mismatch'],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_vlan_ipv4_sctp_pay_packets['match']['mac_vlan_ipv4_sctp_pay']],\n+}\n+\n+mac_vlan_ipv6_pay_packets = {\n+    'match': {\n+        'mac_vlan_ipv6_pay': [\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=2,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:99\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/Raw(\"y\" * 80)'.format(\n+                vf0_mac)\n+        ]\n+    },\n+    'mismatch': [\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/Raw(\"x\" * 80)'.format(\n+            vf0_mac)\n+    ]\n+}\n+\n+mac_vlan_ipv6_pay = {\n+    'sub_casename': 'mac_vlan_ipv6_pay',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / vlan / ipv6 / end actions rss types c-vlan end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_vlan_ipv6_pay_packets['match']['mac_vlan_ipv6_pay'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv6_pay_packets['match']['mac_vlan_ipv6_pay'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv6_pay_packets['match']['mac_vlan_ipv6_pay'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': mac_vlan_ipv6_pay_packets['mismatch'],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_vlan_ipv6_pay_packets['match']['mac_vlan_ipv6_pay']],\n+}\n+\n+mac_vlan_ipv6_udp_pay_packets = {\n+    'match': {\n+        'mac_vlan_ipv6_udp_pay': [\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/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)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=2,type=0x86dd)/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)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:99\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/UDP(sport=23,dport=99)/Raw(\"x\" * 80)'.format(\n+                vf0_mac)\n+        ]\n+    },\n+    'mismatch': [\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+            vf0_mac),\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/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)'.format(\n+            vf0_mac)\n+    ]\n+}\n+\n+mac_vlan_ipv6_udp_pay = {\n+    'sub_casename': 'mac_vlan_ipv6_udp_pay',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / vlan / ipv6 / udp / end actions rss types c-vlan end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_vlan_ipv6_udp_pay_packets['match']['mac_vlan_ipv6_udp_pay'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv6_udp_pay_packets['match']['mac_vlan_ipv6_udp_pay'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv6_udp_pay_packets['match']['mac_vlan_ipv6_udp_pay'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': mac_vlan_ipv6_udp_pay_packets['mismatch'],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_vlan_ipv6_udp_pay_packets['match']['mac_vlan_ipv6_udp_pay']],\n+}\n+\n+mac_vlan_ipv6_tcp_pay_packets = {\n+    'match': {\n+        'mac_vlan_ipv6_tcp_pay': [\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/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)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=2,type=0x86dd)/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)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:99\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/TCP(sport=19,dport=99)/Raw(\"x\" * 80)'.format(\n+                vf0_mac)\n+        ]\n+    },\n+    'mismatch': [\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+            vf0_mac),\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/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)'.format(\n+            vf0_mac)\n+    ]\n+}\n+\n+mac_vlan_ipv6_tcp_pay = {\n+    'sub_casename': 'mac_vlan_ipv6_tcp_pay',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / vlan / ipv6 / tcp / end actions rss types c-vlan end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_vlan_ipv6_tcp_pay_packets['match']['mac_vlan_ipv6_tcp_pay'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv6_tcp_pay_packets['match']['mac_vlan_ipv6_tcp_pay'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv6_tcp_pay_packets['match']['mac_vlan_ipv6_tcp_pay'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': mac_vlan_ipv6_tcp_pay_packets['mismatch'],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_vlan_ipv6_tcp_pay_packets['match']['mac_vlan_ipv6_tcp_pay']],\n+}\n+\n+mac_vlan_ipv6_sctp_pay_packets = {\n+    'match': {\n+        'mac_vlan_ipv6_sctp_pay': [\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/SCTP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=2,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/SCTP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+                vf0_mac),\n+            'Ether(src=\"10:22:33:44:55:99\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1537\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2023\")/SCTP(sport=25,dport=99)/Raw(\"x\" * 80)'.format(\n+                vf0_mac)\n+        ]\n+    },\n+    'mismatch': [\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/SCTP(sport=25,dport=23)/Raw(\"x\" * 80)'.format(\n+            vf0_mac),\n+        'Ether(src=\"10:22:33:44:55:66\", dst=\"{}\",type=0x8100)/Dot1Q(vlan=1,type=0x86dd)/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)'.format(\n+            vf0_mac)\n+    ]\n+}\n+\n+mac_vlan_ipv6_sctp_pay = {\n+    'sub_casename': 'mac_vlan_ipv6_sctp_pay',\n+    'port_id': 0,\n+    'rule': 'flow create 0 ingress pattern eth / vlan / ipv6 / sctp / end actions rss types c-vlan end key_len 0 queues end / end',\n+    'test': [\n+        {\n+            'send_packet': mac_vlan_ipv6_sctp_pay_packets['match']['mac_vlan_ipv6_sctp_pay'][0],\n+            'action': 'save_hash',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv6_sctp_pay_packets['match']['mac_vlan_ipv6_sctp_pay'][1],\n+            'action': 'check_hash_different',\n+        },\n+        {\n+            'send_packet': mac_vlan_ipv6_sctp_pay_packets['match']['mac_vlan_ipv6_sctp_pay'][2],\n+            'action': 'check_hash_same',\n+        },\n+        # {\n+        #     'send_packet': mac_vlan_ipv6_sctp_pay_packets['mismatch'],\n+        #     'action': 'check_no_hash_or_different',\n+        # },\n+    ],\n+    'post-test': [{'send_packet': pkt, 'action': 'check_no_hash_or_different'} for pkt in\n+                  mac_vlan_ipv6_sctp_pay_packets['match']['mac_vlan_ipv6_sctp_pay']],\n+}\n+\n+\n+class Cvl_advance_iavf_rss_vlan_ah_l2tp_pfcp(TestCase):\n+\n+    def set_up_all(self):\n+        \"\"\"\n+        Run at the start of each test suite.\n+        Generic filter Prerequistites\n+        \"\"\"\n+\n+        # Based on h/w type, choose how many ports to use\n+        self.dut_ports = self.dut.get_ports(self.nic)\n+        self.verify(len(self.dut_ports) >= 2, \"Insufficient ports for testing\")\n+        # Verify that enough threads are available\n+        cores = self.dut.get_core_list(\"1S/4C/1T\")\n+        self.verify(cores is not None, \"Insufficient cores for speed testing\")\n+        self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])\n+        self.tester_port0 = self.tester.get_local_port(self.dut_ports[0])\n+        self.tester_port1 = self.tester.get_local_port(self.dut_ports[1])\n+        self.tester_iface0 = self.tester.get_interface(self.tester_port0)\n+        self.tester_iface1 = self.tester.get_interface(self.tester_port1)\n+        self.pci0 = self.dut.ports_info[self.dut_ports[0]]['pci']\n+        self.pci1 = self.dut.ports_info[self.dut_ports[1]]['pci']\n+\n+        self.used_dut_port = self.dut_ports[0]\n+        self.pf_interface = self.dut.ports_info[self.dut_ports[0]]['intf']\n+        self.vf_flag = False\n+        self.create_iavf()\n+\n+        self.pkt = Packet()\n+        self.pmd_output = PmdOutput(self.dut)\n+        self.ddp_dir = \"/lib/firmware/updates/intel/ice/ddp/\"\n+        conf_file = 'conf/cvl_advanced_rss_pppoe.cfg'\n+        conf_info = UserConf(conf_file)\n+        conf_section = conf_info.conf._sections['suite']\n+        self.os_default_package = conf_section['os_default_package_file_location']\n+        self.comms_package = conf_section['comms_package_file_location']\n+        self.ice_driver = conf_section['ice_driver_file_location']\n+        self.symmetric = False\n+        self.rxq = 16\n+        self.rsspro = RssProcessing(self, self.pmd_output, [self.tester_iface0, self.tester_iface1], self.rxq)\n+        self.logger.info('rssprocess.tester_ifaces: {}'.format(self.rsspro.tester_ifaces))\n+        self.logger.info('rssprocess.test_case: {}'.format(self.rsspro.test_case))\n+\n+    def set_up(self):\n+        \"\"\"\n+        Run before each test case.\n+        \"\"\"\n+        pass\n+\n+    def create_iavf(self):\n+        if self.vf_flag is False:\n+            self.dut.bind_interfaces_linux('ice')\n+            self.dut.generate_sriov_vfs_by_port(self.used_dut_port, 1)\n+            self.sriov_vfs_port = self.dut.ports_info[self.used_dut_port]['vfs_port']\n+            self.vf_flag = True\n+            try:\n+                for port in self.sriov_vfs_port:\n+                    port.bind_driver(self.drivername)\n+                self.vf0_prop = {'opt_host': self.sriov_vfs_port[0].pci}\n+                self.dut.send_expect(\"ifconfig %s up\" % self.pf_interface, \"# \")\n+                self.dut.send_expect(\"ip link set %s vf 0 mac %s\" % (self.pf_interface, vf0_mac), \"# \")\n+            except Exception as e:\n+                self.destroy_iavf()\n+                raise Exception(e)\n+\n+    def destroy_iavf(self):\n+        if self.vf_flag is True:\n+            self.dut.destroy_sriov_vfs_by_port(self.used_dut_port)\n+            self.vf_flag = False\n+\n+    def tear_down(self):\n+        \"\"\"\n+        Run after each test case.\n+        \"\"\"\n+        # destroy all flow rule on port 0\n+        self.dut.send_command(\"flow flush 0\", timeout=1)\n+        self.dut.send_command(\"clear port stats all\", timeout=1)\n+        self.pmd_output.execute_cmd(\"stop\")\n+        self.dut.kill_all()\n+\n+    def tear_down_all(self):\n+        \"\"\"\n+        Run after each test suite.\n+        \"\"\"\n+        self.dut.kill_all()\n+        self.destroy_iavf()\n+\n+    def replace_package(self, package='comms'):\n+        ice_pkg_path = ''.join([self.ddp_dir,\"ice.pkg\"])\n+        self.dut.send_expect(\"rm -f {}\".format(ice_pkg_path), \"# \")\n+        if package == 'os_default':\n+            self.dut.send_expect(\"cp {} {}\".format(self.os_default_package,ice_pkg_path), \"# \")\n+        elif package == 'comms':\n+            self.dut.send_expect(\"cp {} {}\".format(self.comms_package,ice_pkg_path), \"# \")\n+        self.dut.send_expect(\"rmmod ice\", \"# \", 15)\n+        self.dut.send_expect(\"insmod {}\".format(self.ice_driver), \"# \",)\n+\n+    def launch_testpmd(self, symmetric=False):\n+        param = \"--rxq=16 --txq=16\"\n+        self.pmd_output.start_testpmd(cores=\"1S/4C/1T\", param=param,\n+                                            ports=[self.sriov_vfs_port[0].pci], socket=self.ports_socket)\n+        self.symmetric = symmetric\n+        if symmetric:\n+            # Need config rss in setup\n+            self.pmd_output.execute_cmd(\"port config all rss all\")\n+        self.pmd_output.execute_cmd(\"set fwd rxonly\")\n+        self.pmd_output.execute_cmd(\"set verbose 1\")\n+        res = self.pmd_output.wait_link_status_up('all', timeout=15)\n+        self.verify(res is True, 'there have port link is down')\n+\n+    def switch_testpmd(self, symmetric=False):\n+        self.dut.kill_all()\n+        self.launch_testpmd(symmetric)\n+        self.pmd_output.execute_cmd(\"start\")\n+\n+    def _gener_str(self, str_len=6):\n+        return ''.join(random.sample(string.ascii_letters + string.digits, k=str_len))\n+\n+    def test_mac_ipv4_pfcp_session(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv4_pfcp_session)\n+\n+    def test_mac_ipv6_pfcp_session(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv6_pfcp_session)\n+\n+    def test_mac_ipv4_l2tpv3(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv4_l2tpv3)\n+\n+    def test_mac_ipv6_l2tpv3(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv6_l2tpv3)\n+\n+    def test_mac_ipv4_esp(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv4_esp)\n+\n+    def test_mac_ipv4_udp_esp(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv4_udp_esp)\n+\n+    def test_mac_ipv6_esp(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv6_esp)\n+\n+    def test_mac_ipv6_udp_esp(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv6_udp_esp)\n+\n+    def test_mac_ipv4_ah(self):\n+        self.switch_testpmd()\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv4_ah)\n+\n+    def test_mac_ipv6_ah(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_ipv6_ah)\n+\n+    def test_wrong_hash_input_set(self):\n+        self.switch_testpmd(symmetric=False)\n+        rule_list = [\n+            'flow create 0 ingress pattern eth / pppoes / ipv4 / end actions rss types l2-src-only l2-dst-only end key_len 0 queues end / end',\n+            'flow create 0 ingress pattern eth / pppoes / ipv4 / udp / end actions rss types ipv4-tcp end key_len 0 queues end / end',\n+            'flow create 0 ingress pattern eth / pppoes / ipv4 / udp / end actions rss func symmetric_toeplitz types ipv4-udp l3-src-only end key_len 0 queues end / end']\n+\n+        for rule in rule_list:\n+            self.rsspro.validate_rule(rule, check_stats=False, check_msg='Invalid argument')\n+            self.rsspro.create_rule(rule, check_stats=False, msg='Invalid argument')\n+\n+    def stest_void_action(self):\n+        self.switch_testpmd(symmetric=False)\n+        rule = 'flow create 0 ingress pattern eth / ipv4 / udp / pfcp / end actions end'\n+        # self.rsspro.validate_rule(rule, check_stats=False, check_msg='Invalid argument')\n+        self.rsspro.create_rule(rule, check_stats=False, msg='Invalid argument')\n+        self.rsspro.check_rule(stats=False, rule_list=[rule])\n+\n+    def test_delete_nonexisting_rule(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.check_rule(stats=False)\n+        out = self.dut.send_command(\"flow destroy 0 rule 0\", timeout=1)\n+        self.verify('error' not in out, 'delete nonexisting rule raise err,expected no err')\n+        self.dut.send_command(\"flow flush 0\", timeout=1)\n+\n+    def test_unsupported_pattern_with_OS_default_package(self):\n+        self.destroy_iavf()\n+        self.replace_package('os_default')\n+        self.create_iavf()\n+        self.switch_testpmd(symmetric=True)\n+        rule_list = [\n+            'flow create 0 ingress pattern eth / ipv4 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end',\n+            'flow create 0 ingress pattern eth / ipv4 / l2tpv3oip / end actions rss types l2tpv3 end key_len 0 queues end / end',\n+            'flow create 0 ingress pattern eth / ipv4 / esp / end actions rss types esp end key_len 0 queues end / end',\n+            'flow create 0 ingress pattern eth / ipv4 / ah / end actions rss types ah end key_len 0 queues end / end'\n+        ]\n+        self.rsspro.create_rule(rule_list, check_stats=False, msg='Invalid argument')\n+        self.rsspro.check_rule(stats=False)\n+        self.dut.kill_all()\n+        self.destroy_iavf()\n+        self.replace_package('comms')\n+        self.create_iavf()\n+        self.switch_testpmd(symmetric=True)\n+        self.rsspro.create_rule(rule_list, check_stats=True)\n+\n+    def test_invalid_port(self):\n+        self.switch_testpmd(symmetric=False)\n+        rule = 'flow create 1 ingress pattern eth / ipv4 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end'\n+        self.rsspro.create_rule(rule, check_stats=False, msg='No such device')\n+        self.rsspro.check_rule(stats=False, rule_list=[rule])\n+        pattern = 'Invalid port 1'\n+        out = self.dut.send_command(\"flow list 1\", timeout=1)\n+        result = re.search(r'%s' % pattern, out)\n+        self.verify(result, 'actual result not match expected,expected result is:{}'.format(pattern))\n+\n+    def test_mac_vlan_ipv4_pay(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_vlan_ipv4_pay)\n+\n+    def test_mac_vlan_ipv4_udp_pay(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_vlan_ipv4_udp_pay)\n+\n+    def test_mac_vlan_ipv4_tcp_pay(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_vlan_ipv4_tcp_pay)\n+\n+    def test_mac_vlan_ipv4_sctp_pay(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_vlan_ipv4_sctp_pay)\n+\n+    def test_mac_vlan_ipv6_pay(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_vlan_ipv6_pay)\n+\n+    def test_mac_vlan_ipv6_udp_pay(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_vlan_ipv6_udp_pay)\n+\n+    def test_mac_vlan_ipv6_tcp_pay(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_vlan_ipv6_tcp_pay)\n+\n+    def test_mac_vlan_ipv6_sctp_pay(self):\n+        self.switch_testpmd(symmetric=False)\n+        self.rsspro.handle_rss_distribute_cases(cases_info=mac_vlan_ipv6_sctp_pay)\n",
    "prefixes": [
        "V2",
        "1/2"
    ]
}