Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/75703/?format=api
http://patches.dpdk.org/api/patches/75703/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/1597795052-24744-1-git-send-email-xueqin.lin@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": "<1597795052-24744-1-git-send-email-xueqin.lin@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/1597795052-24744-1-git-send-email-xueqin.lin@intel.com", "date": "2020-08-18T23:57:32", "name": "[2/2] tests/cvl_fdir: add outer pattern case script for gtp fdir", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "d974bcc2bcf2be0454e99fe41638d72d87243eb5", "submitter": { "id": 498, "url": "http://patches.dpdk.org/api/people/498/?format=api", "name": "Lin, Xueqin", "email": "xueqin.lin@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/1597795052-24744-1-git-send-email-xueqin.lin@intel.com/mbox/", "series": [ { "id": 11704, "url": "http://patches.dpdk.org/api/series/11704/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=11704", "date": "2020-08-18T23:57:17", "name": "[1/2] test_plan/cvl_fdir: add outer pattern cases for gtp fdir", "version": 1, "mbox": "http://patches.dpdk.org/series/11704/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/75703/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/75703/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 C39ADA04AF;\n\tWed, 19 Aug 2020 07:55:54 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id AC05A1C00D;\n\tWed, 19 Aug 2020 07:55:54 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id E6A94AAB7\n for <dts@dpdk.org>; Wed, 19 Aug 2020 07:55:51 +0200 (CEST)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Aug 2020 22:55:50 -0700", "from unknown (HELO dpdk-test60-xueqin.sh.intel.com)\n ([10.67.116.150])\n by fmsmga006.fm.intel.com with ESMTP; 18 Aug 2020 22:55:49 -0700" ], "IronPort-SDR": [ "\n XuNBw24+CSChBiu81v5yZP+QaJYbCesRxVhG4arOcUBmjhAmXQxj1q2/ZgVsULTHHCr+wLB/+a\n 0nHQStFtGaUw==", "\n v/GwQRckYSkF2bWDKFrMf8/pzJA2xB3Ocf9fSoNFeH998iwkNrPz+mN8pXlxOX1065UV6YYVt6\n JSzb5czcBY0A==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9717\"; a=\"134570563\"", "E=Sophos;i=\"5.76,330,1592895600\"; d=\"scan'208\";a=\"134570563\"", "E=Sophos;i=\"5.76,330,1592895600\"; d=\"scan'208\";a=\"497115035\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Xueqin Lin <xueqin.lin@intel.com>", "To": "dts@dpdk.org", "Cc": "Xueqin Lin <xueqin.lin@intel.com>", "Date": "Tue, 18 Aug 2020 19:57:32 -0400", "Message-Id": "<1597795052-24744-1-git-send-email-xueqin.lin@intel.com>", "X-Mailer": "git-send-email 2.5.5", "Subject": "[dts] [PATCH 2/2] tests/cvl_fdir: add outer pattern case script for\n\tgtp fdir", "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": "Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>\n\n---\n tests/TestSuite_cvl_fdir.py | 766 +++++++++++++++++++++++++++++++++++++++++++-\n 1 file changed, 764 insertions(+), 2 deletions(-)", "diff": "diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py\nindex c50799b..3bbb830 100644\n--- a/tests/TestSuite_cvl_fdir.py\n+++ b/tests/TestSuite_cvl_fdir.py\n@@ -284,6 +284,44 @@ MAC_IPV4_GTPU = {\n 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IP()/Raw(\"x\"*20)']\n }\n \n+MAC_IPV6_GTPU_EH = {\n+ \"match\": [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP(frag=1)/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/UDP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/TCP(sport=22, dport=23)/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/ICMP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/UDP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/ICMP()/Raw(\"x\"*20)'],\n+ \"unmatched\": [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/ICMP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/TCP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/UDP()/Raw(\"x\"*20)']\n+}\n+\n+MAC_IPV6_GTPU = {\n+ \"match\": [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP(frag=1)/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/UDP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/TCP(sport=22, dport=23)/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/ICMP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/UDP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/ICMP()/Raw(\"x\"*20)'],\n+ \"unmatched\": [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/TCP()/Raw(\"x\"*20)',\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/UDP()/Raw(\"x\"*20)']\n+}\n+\n L2_Ethertype = [\n 'Ether(dst=\"00:11:22:33:44:55\")/PPPoED()/PPP()/IP()/Raw(\"x\" *80)',\n 'Ether(dst=\"00:11:22:33:44:55\", type=0x8863)/IP()/Raw(\"x\" * 80)',\n@@ -1196,10 +1234,189 @@ tv_mac_ipv4_gtpu_eh_qfi_rss_queues_mark = {\n \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [2, 3]}\n }\n \n+tv_mac_ipv4_gtpu_eh_4tuple_queue_index = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_4tuple_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_4tuple_queue_group = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_4tuple_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_4tuple_passthru = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_4tuple_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_4tuple_drop = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_4tuple_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions drop / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_4tuple_mark_rss = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_4tuple_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_dstip_queue_index = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_dstip_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / gtp_psc / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_dstip_queue_group = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_dstip_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / gtp_psc / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_dstip_passthru = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_dstip_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / gtp_psc / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_dstip_drop = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_dstip_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / gtp_psc / end actions drop / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_dstip_mark_rss = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_dstip_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / gtp_psc / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_srcip_queue_index = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_srcip_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / gtp_psc / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_srcip_queue_group = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_srcip_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / gtp_psc / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_srcip_passthru = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_srcip_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / gtp_psc / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_srcip_drop = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_srcip_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / gtp_psc / end actions drop / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_eh_srcip_mark_rss = {\n+ \"name\": \"test_mac_ipv4_gtpu_eh_srcip_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / gtp_psc / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IP()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n vectors_mac_ipv4_gtpu_eh = [tv_mac_ipv4_gtpu_eh_queue_index, tv_mac_ipv4_gtpu_eh_queue_group,\n tv_mac_ipv4_gtpu_eh_passthru, tv_mac_ipv4_gtpu_eh_drop,\n tv_mac_ipv4_gtpu_eh_mark_rss, tv_mac_ipv4_gtpu_eh_mark,\n- tv_mac_ipv4_gtpu_eh_qfi_queue_index_mark, tv_mac_ipv4_gtpu_eh_qfi_rss_queues_mark]\n+ tv_mac_ipv4_gtpu_eh_qfi_queue_index_mark, tv_mac_ipv4_gtpu_eh_qfi_rss_queues_mark,\n+\t\t\t tv_mac_ipv4_gtpu_eh_4tuple_queue_index, tv_mac_ipv4_gtpu_eh_4tuple_queue_group,\n+ tv_mac_ipv4_gtpu_eh_4tuple_passthru, tv_mac_ipv4_gtpu_eh_4tuple_drop,\n+ tv_mac_ipv4_gtpu_eh_4tuple_mark_rss,\n+ tv_mac_ipv4_gtpu_eh_dstip_queue_index, tv_mac_ipv4_gtpu_eh_dstip_queue_group,\n+ tv_mac_ipv4_gtpu_eh_dstip_passthru, tv_mac_ipv4_gtpu_eh_dstip_drop,\n+ tv_mac_ipv4_gtpu_eh_dstip_mark_rss,\n+ tv_mac_ipv4_gtpu_eh_srcip_queue_index, tv_mac_ipv4_gtpu_eh_srcip_queue_group,\n+ tv_mac_ipv4_gtpu_eh_srcip_passthru, tv_mac_ipv4_gtpu_eh_srcip_drop,\n+ tv_mac_ipv4_gtpu_eh_srcip_mark_rss]\n \n tv_mac_ipv4_gtpu_queue_index = {\n \"name\": \"test_mac_ipv4_gtpu_queue_index\",\n@@ -1249,9 +1466,548 @@ tv_mac_ipv4_gtpu_mark = {\n \"check_param\": {\"port_id\": 0, \"mark_id\": 0, \"rss\": True}\n }\n \n+tv_mac_ipv4_gtpu_3tuple_queue_index = {\n+ \"name\": \"test_mac_ipv4_gtpu_3tuple_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv4_gtpu_3tuple_queue_group = {\n+ \"name\": \"test_mac_ipv4_gtpu_3tuple_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv4_gtpu_3tuple_passthru = {\n+ \"name\": \"test_mac_ipv4_gtpu_3tuple_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_3tuple_drop = {\n+ \"name\": \"test_mac_ipv4_gtpu_3tuple_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / end actions drop / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_3tuple_mark_rss = {\n+ \"name\": \"test_mac_ipv4_gtpu_3tuple_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 / udp / gtpu teid is 0x12345678 / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": MAC_IPV4_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_dstip_queue_index = {\n+ \"name\": \"test_mac_ipv4_gtpu_dstip_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv4_gtpu_dstip_queue_group = {\n+ \"name\": \"test_mac_ipv4_gtpu_dstip_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv4_gtpu_dstip_passthru = {\n+ \"name\": \"test_mac_ipv4_gtpu_dstip_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_dstip_drop = {\n+ \"name\": \"test_mac_ipv4_gtpu_dstip_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / end actions drop / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_dstip_mark_rss = {\n+ \"name\": \"test_mac_ipv4_gtpu_dstip_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 / udp / gtpu / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_srcip_queue_index = {\n+ \"name\": \"test_mac_ipv4_gtpu_srcip_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/UDP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv4_gtpu_srcip_queue_group = {\n+ \"name\": \"test_mac_ipv4_gtpu_srcip_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/UDP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv4_gtpu_srcip_passthru = {\n+ \"name\": \"test_mac_ipv4_gtpu_srcip_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/UDP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_srcip_drop = {\n+ \"name\": \"test_mac_ipv4_gtpu_srcip_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / end actions drop / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/UDP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv4_gtpu_srcip_mark_rss = {\n+ \"name\": \"test_mac_ipv4_gtpu_srcip_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 / udp / gtpu / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.20\", dst=\"192.168.0.22\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/UDP()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IP(src=\"192.168.0.21\", dst=\"192.168.0.21\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IP()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n vectors_mac_ipv4_gtpu = [tv_mac_ipv4_gtpu_queue_index, tv_mac_ipv4_gtpu_queue_group,\n tv_mac_ipv4_gtpu_passthru, tv_mac_ipv4_gtpu_drop,\n- tv_mac_ipv4_gtpu_mark_rss, tv_mac_ipv4_gtpu_mark]\n+ tv_mac_ipv4_gtpu_mark_rss, tv_mac_ipv4_gtpu_mark,\n+\t\t\t tv_mac_ipv4_gtpu_3tuple_queue_index, tv_mac_ipv4_gtpu_3tuple_queue_group,\n+ tv_mac_ipv4_gtpu_3tuple_passthru, tv_mac_ipv4_gtpu_3tuple_drop,\n+ tv_mac_ipv4_gtpu_3tuple_mark_rss,\n+ tv_mac_ipv4_gtpu_dstip_queue_index, tv_mac_ipv4_gtpu_dstip_queue_group,\n+ tv_mac_ipv4_gtpu_dstip_passthru, tv_mac_ipv4_gtpu_dstip_drop,\n+ tv_mac_ipv4_gtpu_dstip_mark_rss,\n+ tv_mac_ipv4_gtpu_srcip_queue_index, tv_mac_ipv4_gtpu_srcip_queue_group,\n+ tv_mac_ipv4_gtpu_srcip_passthru, tv_mac_ipv4_gtpu_srcip_drop,\n+ tv_mac_ipv4_gtpu_srcip_mark_rss]\n+\n+tv_mac_ipv6_gtpu_eh_4tuple_queue_index = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_4tuple_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_4tuple_queue_group = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_4tuple_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_4tuple_passthru = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_4tuple_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_4tuple_drop = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_4tuple_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions drop / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_4tuple_mark_rss = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_4tuple_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU_EH,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_dstip_queue_index = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_dstip_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / gtp_psc / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_dstip_queue_group = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_dstip_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / gtp_psc / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_dstip_passthru = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_dstip_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / gtp_psc / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_dstip_drop = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_dstip_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / gtp_psc / end actions drop / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_dstip_mark_rss = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_dstip_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / gtp_psc / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_srcip_queue_index = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_srcip_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / gtp_psc / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_srcip_queue_group = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_srcip_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / gtp_psc / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_srcip_passthru = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_srcip_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / gtp_psc / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_srcip_drop = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_srcip_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / gtp_psc / end actions drop / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_eh_srcip_mark_rss = {\n+ \"name\": \"test_mac_ipv6_gtpu_eh_srcip_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / gtp_psc / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x35)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/GTP_PDUSession_ExtensionHeader(pdu_type=0, qos_flow=0x34)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+vectors_mac_ipv6_gtpu_eh = [tv_mac_ipv6_gtpu_eh_4tuple_queue_index, tv_mac_ipv6_gtpu_eh_4tuple_queue_group,\n+ tv_mac_ipv6_gtpu_eh_4tuple_passthru, tv_mac_ipv6_gtpu_eh_4tuple_drop,\n+ tv_mac_ipv6_gtpu_eh_4tuple_mark_rss,\n+ tv_mac_ipv6_gtpu_eh_dstip_queue_index, tv_mac_ipv6_gtpu_eh_dstip_queue_group,\n+ tv_mac_ipv6_gtpu_eh_dstip_passthru, tv_mac_ipv6_gtpu_eh_dstip_drop,\n+ tv_mac_ipv6_gtpu_eh_dstip_mark_rss,\n+ tv_mac_ipv6_gtpu_eh_srcip_queue_index, tv_mac_ipv6_gtpu_eh_srcip_queue_group,\n+ tv_mac_ipv6_gtpu_eh_srcip_passthru, tv_mac_ipv6_gtpu_eh_srcip_drop,\n+ tv_mac_ipv6_gtpu_eh_srcip_mark_rss]\n+\n+tv_mac_ipv6_gtpu_3tuple_queue_index = {\n+ \"name\": \"test_mac_ipv6_gtpu_3tuple_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv6_gtpu_3tuple_queue_group = {\n+ \"name\": \"test_mac_ipv6_gtpu_3tuple_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv6_gtpu_3tuple_passthru = {\n+ \"name\": \"test_mac_ipv6_gtpu_3tuple_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_3tuple_drop = {\n+ \"name\": \"test_mac_ipv6_gtpu_3tuple_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / end actions drop / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_3tuple_mark_rss = {\n+ \"name\": \"test_mac_ipv6_gtpu_3tuple_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu teid is 0x12345678 / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": MAC_IPV6_GTPU,\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_dstip_queue_index = {\n+ \"name\": \"test_mac_ipv6_gtpu_dstip_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv6_gtpu_dstip_queue_group = {\n+ \"name\": \"test_mac_ipv6_gtpu_dstip_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv6_gtpu_dstip_passthru = {\n+ \"name\": \"test_mac_ipv6_gtpu_dstip_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_dstip_drop = {\n+ \"name\": \"test_mac_ipv6_gtpu_dstip_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / end actions drop / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_dstip_mark_rss = {\n+ \"name\": \"test_mac_ipv6_gtpu_dstip_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 / udp / gtpu / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/IPv6ExtHdrFragment()/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_srcip_queue_index = {\n+ \"name\": \"test_mac_ipv6_gtpu_srcip_queue_index\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / end actions queue index 10 / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": 10}\n+}\n+\n+tv_mac_ipv6_gtpu_srcip_queue_group = {\n+ \"name\": \"test_mac_ipv6_gtpu_srcip_queue_group\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / end actions rss queues 0 1 2 3 end / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"queue\": [0, 1, 2, 3]}\n+}\n+\n+tv_mac_ipv6_gtpu_srcip_passthru = {\n+ \"name\": \"test_mac_ipv6_gtpu_srcip_passthru\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / end actions passthru / mark id 1 / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_srcip_drop = {\n+ \"name\": \"test_mac_ipv6_gtpu_srcip_drop\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / end actions drop / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"drop\": True}\n+}\n+\n+tv_mac_ipv6_gtpu_srcip_mark_rss = {\n+ \"name\": \"test_mac_ipv6_gtpu_srcip_mark_rss\",\n+ \"rule\": \"flow create 0 ingress pattern eth / ipv6 src is 2001::2 / udp / gtpu / end actions mark id 1 / rss / end\",\n+ \"scapy_str\": {\"match\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::2\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2021\")/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x1234567)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)'],\n+ \"unmatched\":\n+ [\n+ 'Ether(src=\"a4:bf:01:51:27:ca\", dst=\"00:11:22:33:44:55\")/IPv6(src=\"2001::3\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2020\")/UDP( dport=2152)/GTP_U_Header(gtp_type=255, teid=0x12345678)/IPv6()/TCP(sport=22, dport=23)/Raw(\"x\"*20)']},\n+ \"check_func\": rfc.check_mark,\n+ \"check_param\": {\"port_id\": 0, \"mark_id\": 1, \"rss\": True}\n+}\n+\n+vectors_mac_ipv6_gtpu = [tv_mac_ipv6_gtpu_3tuple_queue_index, tv_mac_ipv6_gtpu_3tuple_queue_group,\n+ tv_mac_ipv6_gtpu_3tuple_passthru, tv_mac_ipv6_gtpu_3tuple_drop,\n+ tv_mac_ipv6_gtpu_3tuple_mark_rss,\n+ tv_mac_ipv6_gtpu_dstip_queue_index, tv_mac_ipv6_gtpu_dstip_queue_group,\n+ tv_mac_ipv6_gtpu_dstip_passthru, tv_mac_ipv6_gtpu_dstip_drop,\n+ tv_mac_ipv6_gtpu_dstip_mark_rss,\n+ tv_mac_ipv6_gtpu_srcip_queue_index, tv_mac_ipv6_gtpu_srcip_queue_group,\n+ tv_mac_ipv6_gtpu_srcip_passthru, tv_mac_ipv6_gtpu_srcip_drop,\n+ tv_mac_ipv6_gtpu_srcip_mark_rss]\n \n tv_l2_ethertype_queue_index = {\n \"name\": \"test_l2_ethertype_queue_index\",\n@@ -2458,6 +3214,12 @@ class TestCVLFdir(TestCase):\n def test_mac_ipv4_gtpu(self):\n self._rte_flow_validate(vectors_mac_ipv4_gtpu)\n \n+ def test_mac_ipv6_gtpu_eh(self):\n+ self._rte_flow_validate(vectors_mac_ipv6_gtpu_eh)\n+\n+ def test_mac_ipv6_gtpu(self):\n+ self._rte_flow_validate(vectors_mac_ipv6_gtpu)\n+\n def test_l2_ethertype(self):\n self._multirules_process(vectors_l2_ethertype)\n \n", "prefixes": [ "2/2" ] }{ "id": 75703, "url": "