From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2DCC0A0C46; Mon, 16 Aug 2021 09:12:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1D4E940143; Mon, 16 Aug 2021 09:12:53 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id BCE184003C for ; Mon, 16 Aug 2021 09:12:50 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10077"; a="279550944" X-IronPort-AV: E=Sophos;i="5.84,324,1620716400"; d="scan'208";a="279550944" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2021 00:12:50 -0700 X-IronPort-AV: E=Sophos;i="5.84,324,1620716400"; d="scan'208";a="530256060" Received: from unknown (HELO cvl_tetser_105.icx.intel.com) ([10.240.183.105]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2021 00:12:48 -0700 From: Qin Sun To: dts@dpdk.org Cc: xueqin.lin@intel.com, Qin Sun Date: Mon, 16 Aug 2021 15:45:20 +0000 Message-Id: <20210816154520.9805-3-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210816154520.9805-1-qinx.sun@intel.com> References: <20210816154520.9805-1-qinx.sun@intel.com> Subject: [dts] [PATCH V1 2/2] tests/iavf_fdir: add gre inner fdir cases for iavf X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" according to test plan to add 12 new cases related gre inner for iavf fdir Signed-off-by: Qin Sun --- tests/TestSuite_iavf_fdir.py | 308 +++++++++++++++++++++++++++++++++++ 1 file changed, 308 insertions(+) diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py index 805f35ac..56272c8e 100644 --- a/tests/TestSuite_iavf_fdir.py +++ b/tests/TestSuite_iavf_fdir.py @@ -996,6 +996,52 @@ MAC_IPV4_GTPU_EH_UL_IPV6_UDP_WITHOUT_INPUTSET = { 'Ether(dst="00:11:22:33:44:55")/IP()/UDP()/GTP_U_Header()/GTPPDUSessionContainer(type=1)/IP()/UDP()/("X"*480)'] } +MAC_IPV4_GRE_IPV4 = { + "match": [ + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.20",dst="192.168.0.21", tos=4)/Raw("x" * 80)'], + "mismatch": [ + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.22",dst="192.168.0.21", tos=4)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.20",dst="192.168.0.22", tos=4)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.20",dst="192.168.0.21", tos=8)/Raw("x" * 80)', + ] +} + +MAC_IPV4_GRE_IPV4_TCP = { + "match": [ + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.20",dst="192.168.0.21", tos=4)/TCP(sport=22,dport=23)/Raw("x" * 80)'], + "mismatch": [ + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.22",dst="192.168.0.21", tos=4)/TCP(sport=22,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.20",dst="192.168.0.22", tos=4)/TCP(sport=22,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.20",dst="192.168.0.21", tos=8)/TCP(sport=22,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.20",dst="192.168.0.21", tos=4)/TCP(sport=21,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IP(src="192.168.0.20",dst="192.168.0.21", tos=4)/TCP(sport=22,dport=24)/Raw("x" * 80)' + ] +} + +MAC_IPV4_GRE_IPV6_TCP = { + "match": [ + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2",tc=1)/TCP(sport=22,dport=23)/Raw("x" * 80)'], + "mismatch": [ + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2021", src="2001::2",tc=1)/TCP(sport=22,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::3",tc=1)/TCP(sport=22,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2",tc=2)/TCP(sport=22,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2",tc=1)/TCP(sport=21,dport=23)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2",tc=1)/TCP(sport=22,dport=24)/Raw("x" * 80)' + ] +} + +MAC_IPV6_GRE_IPV4 = eval(str(MAC_IPV4_GRE_IPV4).replace('IP()','IPv6()')) + +MAC_IPV4_GRE_IPV6 = { + "match": [ + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2",tc=1)/Raw("x" * 80)'], + "mismatch": [ + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2021", src="2001::2",tc=1)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::3",tc=1)/Raw("x" * 80)', + 'Ether(dst="00:11:22:33:44:55")/IP()/GRE()/IPv6(dst="CDCD:910A:2222:5498:8475:1111:3900:2020", src="2001::2",tc=2)/Raw("x" * 80)', + ] +} + tv_mac_ipv4_pay_queue_index = { "name": "test_mac_ipv4_pay_queue_index", "rule": "flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is 192.168.0.21 proto is 255 ttl is 2 tos is 4 / end actions queue index 1 / end", @@ -6609,6 +6655,175 @@ tv_mac_ipv4_gtpu_eh_ul_ipv6_udp_without_inputset_mark_rss = { "check_param": {"port_id": 0, "passthru": 1, "mark_id": 0} } +#gre tunnel inner fdir +tv_mac_ipv4_gre_ipv4_queue_index = { + "name": "test_mac_ipv4_gre_ipv4_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / end actions queue index 1 / end", + "scapy_str": MAC_IPV4_GRE_IPV4, + "check_param": {"port_id": 0, "queue": 1} +} + +tv_mac_ipv4_gre_ipv4_rss_queue = { + "name": "mac_ipv4_gre_ipv4_rss_queue", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / end actions rss queues 2 3 end / end", + "scapy_str": MAC_IPV4_GRE_IPV4, + "check_param": {"port_id": 0, "queue": [2,3]} +} + +tv_mac_ipv4_gre_ipv4_passthru = { + "name": "mac_ipv4_gre_ipv4_passthru", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / end actions passthru / end", + "scapy_str": MAC_IPV4_GRE_IPV4, + "check_param": {"port_id": 0, "passthru": 1} +} + +tv_mac_ipv4_gre_ipv4_drop = { + "name": "mac_ipv4_gre_ipv4_drop", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / end actions drop / end", + "scapy_str": MAC_IPV4_GRE_IPV4, + "check_param": {"port_id": 0, "drop":1} +} + +tv_mac_ipv4_gre_ipv4_mark_rss ={ + "name": "mac_ipv4_gre_ipv4_mark_rss", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / end actions mark / rss / end", + "scapy_str": MAC_IPV4_GRE_IPV4, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 0} +} + +tv_mac_ipv4_gre_ipv4_mark = { + "name": "mac_ipv4_gre_ipv4_mark", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / end actions mark id 5 / end", + "scapy_str": MAC_IPV4_GRE_IPV4, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 5} +} + +tv_mac_ipv4_gre_ipv6_queue_index = { + "name": "test_mac_ipv4_gre_ipv6_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / end actions queue index 15 / mark id 1 / end", + "scapy_str": MAC_IPV4_GRE_IPV6, + "check_param": {"port_id": 0, "queue": 15, "mark_id": 1} +} + +tv_mac_ipv4_gre_ipv6_drop = { + "name": "test_mac_ipv4_gre_ipv6_drop", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / end actions drop / end", + "scapy_str": MAC_IPV4_GRE_IPV6, + "check_param": {"port_id": 0, "drop": 1} +} + +tv_mac_ipv4_gre_ipv6_rss_queue = { + "name": "test_mac_ipv4_gre_ipv6_rss_queue", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / end actions rss queues 8 9 10 11 12 13 14 15 end / mark id 2 / end", + "scapy_str": MAC_IPV4_GRE_IPV6, + "check_param": {"port_id": 0, "queue": [8, 9, 10, 11, 12, 13, 14, 15], "mark_id": 2} +} + +tv_mac_ipv4_gre_ipv6_passthru = { + "name": "test_mac_ipv4_gre_ipv6_passthru", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / end actions passthru / mark id 3 / end", + "scapy_str": MAC_IPV4_GRE_IPV6, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 3} +} + +tv_mac_ipv4_gre_ipv6_mark_rss = { + "name": "test_mac_ipv4_gre_ipv6_mark_rss", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / end actions mark id 4 / rss / end", + "scapy_str": MAC_IPV4_GRE_IPV6, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 4} +} + +tv_mac_ipv4_gre_ipv6_mark = { + "name": "test_mac_ipv4_gre_ipv6_mark", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / end actions mark id 5 / rss / end", + "scapy_str": MAC_IPV4_GRE_IPV6, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 5} +} + +tv_mac_ipv4_gre_ipv4_tcp_queue_index = { + "name": "test_mac_ipv4_gre_ipv4_tcp_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 1 / mark id 0 / end", + "scapy_str": MAC_IPV4_GRE_IPV4_TCP, + "check_param": {"port_id": 0, "queue": 1, "mark_id": 0} +} + +tv_mac_ipv4_gre_ipv4_tcp_rss_queue = { + "name": "mac_ipv4_gre_ipv4_tcp_rss_queue", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / tcp src is 22 dst is 23 / end actions rss queues 1 2 3 4 end / mark id 4294967294 / end", + "scapy_str": MAC_IPV4_GRE_IPV4_TCP, + "check_param": {"port_id": 0, "queue": [1, 2, 3, 4], "mark_id": 4294967294 } +} + +tv_mac_ipv4_gre_ipv4_tcp_passthru = { + "name": "mac_ipv4_gre_ipv4_tcp_passthru", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / tcp src is 22 dst is 23 / end actions passthru / mark id 1 / end", + "scapy_str": MAC_IPV4_GRE_IPV4_TCP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 1 } +} + +tv_mac_ipv4_gre_ipv4_tcp_drop = { + "name": "mac_ipv4_gre_ipv4_tcp_drop", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / tcp src is 22 dst is 23 / end actions drop / end", + "scapy_str": MAC_IPV4_GRE_IPV4_TCP, + "check_param": {"port_id": 0, "drop": 1 } +} + +tv_mac_ipv4_gre_ipv4_tcp_mark_rss = { + "name": "mac_ipv4_gre_ipv4_tcp_mark_rss", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / tcp src is 22 dst is 23 / end actions mark id 2 / rss / end ", + "scapy_str": MAC_IPV4_GRE_IPV4_TCP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 2} +} + +tv_mac_ipv4_gre_ipv4_tcp_mark = { + "name": "mac_ipv4_gre_ipv4_tcp_mark", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv4 src is 192.168.0.20 dst is 192.168.0.21 tos is 4 / tcp src is 22 dst is 23 / end actions mark id 1 / end ", + "scapy_str": MAC_IPV4_GRE_IPV4_TCP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 1} +} + +tv_mac_ipv4_gre_ipv6_tcp_queue_index = { + "name": "test_mac_ipv4_gre_ipv6_tcp_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / tcp src is 22 dst is 23 / end actions queue index 6 / mark id 4 / end", + "scapy_str": MAC_IPV4_GRE_IPV6_TCP, + "check_param": {"port_id": 0, "queue": 6, "mark_id": 4} +} + +tv_mac_ipv4_gre_ipv6_tcp_rss_queue = { + "name": "mac_ipv4_gre_ipv6_tcp_rss_queue", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / tcp src is 22 dst is 23 / end actions rss queues 4 5 6 7 end / mark id 4294967294 / end", + "scapy_str": MAC_IPV4_GRE_IPV6_TCP, + "check_param": {"port_id": 0, "queue": [4, 5, 6, 7], "mark_id": 4294967294} +} + +tv_mac_ipv4_gre_ipv6_tcp_passthru = { + "name": "mac_ipv4_gre_ipv6_tcp_passthru", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / tcp src is 22 dst is 23 / end actions passthru / mark id 7 / end", + "scapy_str": MAC_IPV4_GRE_IPV6_TCP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 7} +} + +tv_mac_ipv4_gre_ipv6_tcp_drop = { + "name": "mac_ipv4_gre_ipv6_tcp_drop", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / tcp src is 22 dst is 23 / end actions drop / end", + "scapy_str": MAC_IPV4_GRE_IPV6_TCP, + "check_param": {"port_id": 0, "drop": 1} +} + +tv_mac_ipv4_gre_ipv6_tcp_mark_rss = { + "name": "mac_ipv4_gre_ipv6_tcp_mark_rss", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / tcp src is 22 dst is 23 / end actions mark id 6 / rss / end ", + "scapy_str": MAC_IPV4_GRE_IPV6_TCP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 6} +} + +tv_mac_ipv4_gre_ipv6_tcp_mark = { + "name": "mac_ipv4_gre_ipv6_tcp_mark", + "rule": "flow create 0 ingress pattern eth / ipv4 / gre / ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 tc is 1 / tcp src is 22 dst is 23 / end actions mark id 3 / end ", + "scapy_str": MAC_IPV4_GRE_IPV6_TCP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 3} +} + vectors_ipv4_pay = [tv_mac_ipv4_pay_queue_index, tv_mac_ipv4_pay_mark_rss,tv_mac_ipv4_pay_passthru, tv_mac_ipv4_pay_drop, tv_mac_ipv4_pay_queue_group, tv_mac_ipv4_pay_mark] @@ -7099,6 +7314,63 @@ vectors_ipv4_gtpu_eh_ul_ipv6_udp = [tv_mac_ipv4_gtpu_eh_ul_ipv6_udp_inner_srcip_ tv_mac_ipv4_gtpu_eh_ul_ipv6_udp_without_inputset_passthru, tv_mac_ipv4_gtpu_eh_ul_ipv6_udp_without_inputset_drop, tv_mac_ipv4_gtpu_eh_ul_ipv6_udp_without_inputset_mark_rss] +#gre tunnel inner +vectors_ipv4_gre_ipv4 = [ + tv_mac_ipv4_gre_ipv4_queue_index, + tv_mac_ipv4_gre_ipv4_rss_queue, + tv_mac_ipv4_gre_ipv4_passthru, + tv_mac_ipv4_gre_ipv4_drop, + tv_mac_ipv4_gre_ipv4_mark_rss, + tv_mac_ipv4_gre_ipv4_mark + ] + +vectors_ipv6_gre_ipv4 = [eval(str(each).replace('ipv4_gre_ipv4','ipv6_gre_ipv4').replace('IP()','IPv6()') + .replace('eth / ipv4','eth / ipv6')) for each in vectors_ipv4_gre_ipv4] + +vectors_ipv4_gre_ipv6 = [ + tv_mac_ipv4_gre_ipv6_queue_index, + tv_mac_ipv4_gre_ipv6_rss_queue, + tv_mac_ipv4_gre_ipv6_passthru, + tv_mac_ipv4_gre_ipv6_drop, + tv_mac_ipv4_gre_ipv6_mark_rss, + tv_mac_ipv4_gre_ipv6_mark +] + +vectors_ipv6_gre_ipv6 = [eval(str(each).replace('ipv4_gre_ipv6','ipv6_gre_ipv6').replace('IP()','IPv6()') + .replace('eth / ipv4','eth / ipv6')) for each in vectors_ipv4_gre_ipv6] + +vectors_ipv4_gre_ipv4_tcp = [ + tv_mac_ipv4_gre_ipv4_tcp_queue_index, + tv_mac_ipv4_gre_ipv4_tcp_rss_queue, + tv_mac_ipv4_gre_ipv4_tcp_passthru, + tv_mac_ipv4_gre_ipv4_tcp_drop, + tv_mac_ipv4_gre_ipv4_tcp_mark_rss, + tv_mac_ipv4_gre_ipv4_tcp_mark +] + +vectors_ipv6_gre_ipv4_tcp = [eval(str(each).replace('ipv4_gre_ipv4','ipv6_gre_ipv4').replace('eth / ipv4','eth / ipv6') + .replace('IP()','IPv6()')) for each in vectors_ipv4_gre_ipv4_tcp] + +vectors_ipv4_gre_ipv6_tcp = [ + tv_mac_ipv4_gre_ipv6_tcp_queue_index, + tv_mac_ipv4_gre_ipv6_tcp_rss_queue, + tv_mac_ipv4_gre_ipv6_tcp_passthru, + tv_mac_ipv4_gre_ipv6_tcp_drop, + tv_mac_ipv4_gre_ipv6_tcp_mark_rss, + tv_mac_ipv4_gre_ipv6_tcp_mark + ] + +vectors_ipv6_gre_ipv6_tcp = [eval(str(each).replace('ipv4_gre_ipv6','ipv6_gre_ipv6').replace('eth / ipv4','eth / ipv6') + .replace('IP()','IPv6()'))for each in vectors_ipv4_gre_ipv6_tcp] + +vectors_ipv4_gre_ipv4_udp = [eval(str(each).replace('tcp','udp').replace('TCP','UDP')) for each in vectors_ipv4_gre_ipv4_tcp] + +vectors_ipv6_gre_ipv4_udp = [eval(str(each).replace('tcp','udp').replace('TCP','UDP')) for each in vectors_ipv6_gre_ipv4_tcp] + +vectors_ipv4_gre_ipv6_udp = [eval(str(each).replace('tcp','udp').replace('TCP','UDP')) for each in vectors_ipv4_gre_ipv6_tcp] + +vectors_ipv6_gre_ipv6_udp = [eval(str(each).replace('tcp','udp').replace('TCP','UDP')) for each in vectors_ipv6_gre_ipv6_tcp] + class TestIAVFFdir(TestCase): def rte_flow_process(self, vectors): @@ -9372,6 +9644,42 @@ class TestIAVFFdir(TestCase): self._create_check_conflict_rule(rules, pkts) + def test_mac_ipv4_gre_ipv4(self): + self.rte_flow_process(vectors_ipv4_gre_ipv4) + + def test_mac_ipv6_gre_ipv4(self): + self.rte_flow_process(vectors_ipv6_gre_ipv4) + + def test_mac_ipv4_gre_ipv6(self): + self.rte_flow_process(vectors_ipv4_gre_ipv6) + + def test_mac_ipv6_gre_ipv6(self): + self.rte_flow_process(vectors_ipv6_gre_ipv6) + + def test_mac_ipv4_gre_ipv4_tcp(self): + self.rte_flow_process(vectors_ipv4_gre_ipv4_tcp) + + def test_mac_ipv6_gre_ipv4_tcp(self): + self.rte_flow_process(vectors_ipv6_gre_ipv4_tcp) + + def test_mac_ipv4_gre_ipv6_tcp(self): + self.rte_flow_process(vectors_ipv4_gre_ipv6_tcp) + + def test_mac_ipv6_gre_ipv6_tcp(self): + self.rte_flow_process(vectors_ipv6_gre_ipv6_tcp) + + def test_mac_ipv4_gre_ipv4_udp(self): + self.rte_flow_process(vectors_ipv4_gre_ipv4_udp) + + def test_mac_ipv6_gre_ipv4_udp(self): + self.rte_flow_process(vectors_ipv6_gre_ipv4_udp) + + def test_mac_ipv4_gre_ipv6_udp(self): + self.rte_flow_process(vectors_ipv4_gre_ipv6_udp) + + def test_mac_ipv6_gre_ipv6_udp(self): + self.rte_flow_process(vectors_ipv6_gre_ipv6_udp) + def tear_down(self): # destroy all flow rule on port 0 self.dut.kill_all() -- 2.17.1