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 AB5B2A09E4; Thu, 28 Jan 2021 11:22:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8696D4067A; Thu, 28 Jan 2021 11:22:13 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id EC22240395 for ; Thu, 28 Jan 2021 11:22:10 +0100 (CET) IronPort-SDR: cp0XwBWLtyqxzy/Rk0rBe6Ha2Sb0bpD1IY0J0Wt2qKJg8ngsPk252D67709u/kxgRJMzkw/SEA QZdvtFuzU/RQ== X-IronPort-AV: E=McAfee;i="6000,8403,9877"; a="265044040" X-IronPort-AV: E=Sophos;i="5.79,382,1602572400"; d="scan'208";a="265044040" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2021 02:22:10 -0800 IronPort-SDR: hAGbjt6YvRhDLsjqQa87GTRKHfx2zq/IjKCpK4Hy7clz5h28AyKmbbgQPQJEJ1vS0pn950de4j ZZ4aBQao0luw== X-IronPort-AV: E=Sophos;i="5.79,382,1602572400"; d="scan'208";a="578457365" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2021 02:22:08 -0800 From: sunqin To: dts@dpdk.org Cc: sunqin Date: Thu, 28 Jan 2021 18:53:30 +0000 Message-Id: <20210128185330.30849-1-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] tests/cvl_advanced_rss_pppoe: add 4 subcase for pppoe 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" Add 4 subcase for pppoe: MAC_PPPOE_IPV4_UDP_PAY_IPV4 MAC_PPPOE_IPV4_TCP_PAY_IPV4 MAC_PPPOE_IPV6_UDP_PAY_IPV6 MAC_PPPOE_IPV6_TCP_PAY_IPV6 Signed-off-by: sunqin --- ...dvanced_rss_pppoe_vlan_esp_ah_l2tp_pfcp.py | 221 +++++++++++++++++- 1 file changed, 217 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_cvl_advanced_rss_pppoe_vlan_esp_ah_l2tp_pfcp.py b/tests/TestSuite_cvl_advanced_rss_pppoe_vlan_esp_ah_l2tp_pfcp.py index eb941b88..acde66b2 100644 --- a/tests/TestSuite_cvl_advanced_rss_pppoe_vlan_esp_ah_l2tp_pfcp.py +++ b/tests/TestSuite_cvl_advanced_rss_pppoe_vlan_esp_ah_l2tp_pfcp.py @@ -1661,6 +1661,60 @@ mac_pppoe_ipv4_udp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only = { ], } +mac_pppoe_ipv4_udp_pay_ipv4_packets = { + 'mac_pppoe_ipv4_udp_pay':[ + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/UDP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.2")/UDP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.7")/UDP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.7")/UDP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/UDP(sport=19,dport=99)/Raw("x"*80)', + ] +} + +mac_pppoe_ipv4_udp_pay_ipv4 = { + 'sub_casename': 'mac_pppoe_ipv4_udp_pay_ipv4', + 'port_id': 0, + 'rule': 'flow create 0 ingress pattern eth / pppoes / ipv4 / udp / end actions rss types ipv4 end key_len 0 queues end / end', + 'test': [ + { + 'send_packet': mac_pppoe_ipv4_udp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_udp_pay'][0], + 'action': {'save_hash': 'mac_pppoe_ipv4_udp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv4_udp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_udp_pay'][1], + 'action': {'check_hash_different': 'mac_pppoe_ipv4_udp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv4_udp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_udp_pay'][2], + 'action': {'check_hash_different': 'mac_pppoe_ipv4_udp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv4_udp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_udp_pay'][3], + 'action': {'check_hash_different': 'mac_pppoe_ipv4_udp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv4_udp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_udp_pay'][-1], + 'action': {'check_hash_same', 'mac_pppoe_ipv4_udp_pay'}, + }, + { + 'send_packet': [i for i in mac_pppoe_ipv4_udp_pay_packets['mismatch']], + 'action': 'check_no_hash', + }, + ], + 'post-test': [ + { + 'send_packet': mac_pppoe_ipv4_udp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_udp_pay'], + 'action': 'check_no_hash', + }, + ], +} + mac_pppoe_ipv4_tcp_pay_packets = { 'mismatch': [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/' @@ -2223,6 +2277,58 @@ mac_pppoe_ipv4_tcp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only = { ], } +mac_pppoe_ipv4_tcp_pay_ipv4_packets = { + 'mac_pppoe_ipv4_tcp_pay': [ + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/TCP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.2")/TCP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.7")/TCP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.7")/TCP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/TCP(sport=19,dport=99)/Raw("x"*80)', + ] +} + +mac_pppoe_ipv4_tcp_pay_ipv4 = { + 'sub_casename': 'mac_pppoe_ipv4_tcp_pay_ipv4', + 'port_id': 0, + 'rule': 'flow create 0 ingress pattern eth / pppoes / ipv4 / tcp / end actions rss types ipv4 end key_len 0 queues end / end', + 'test': [ + { + 'send_packet': mac_pppoe_ipv4_tcp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_tcp_pay'][0], + 'action': {'save_hash': 'mac_pppoe_ipv4_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv4_tcp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_tcp_pay'][1], + 'action': {'check_hash_different': 'mac_pppoe_ipv4_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv4_tcp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_tcp_pay'][2], + 'action': {'check_hash_different': 'mac_pppoe_ipv4_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv4_tcp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_tcp_pay'][3], + 'action': {'check_hash_different': 'mac_pppoe_ipv4_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv4_tcp_pay_ipv4_packets[ + 'mac_pppoe_ipv4_tcp_pay'][-1], + 'action': {'check_hash_same', 'mac_pppoe_ipv4_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv4_tcp_pay_packets['mismatch'], + 'action': 'check_no_hash', + }, + ], + 'post-test': [ + { + 'send_packet': mac_pppoe_ipv4_tcp_pay_ipv4_packets['mac_pppoe_ipv4_tcp_pay'], + 'action': 'check_no_hash', + }, + ], +} mac_pppoe_ipv6_pay_packets = { 'mismatch': [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)', @@ -3158,6 +3264,60 @@ mac_pppoe_ipv6_udp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only = { ], } +mac_pppoe_ipv6_udp_pay_ipv6_packets = { + 'mac_pppoe_ipv6_udp_pay': [ + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/UDP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/UDP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/UDP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1538", dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/UDP(sport=19,dport=99)/Raw("x"*80)', + ] +} + +mac_pppoe_ipv6_udp_pay_ipv6 = { + 'sub_casename': 'mac_pppoe_ipv6_udp_pay_ipv6', + 'port_id': 0, + 'rule': 'flow create 0 ingress pattern eth / pppoes / ipv6 / udp / end actions rss types ipv6 end key_len 0 queues end / end', + 'test': [ + { + 'send_packet': mac_pppoe_ipv6_udp_pay_ipv6_packets[ + 'mac_pppoe_ipv6_udp_pay'][0], + 'action': {'save_hash': 'mac_pppoe_ipv6_udp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_udp_pay_ipv6_packets[ + 'mac_pppoe_ipv6_udp_pay'][1], + 'action': {'check_hash_different': 'mac_pppoe_ipv6_udp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_udp_pay_ipv6_packets[ + 'mac_pppoe_ipv6_udp_pay'][2], + 'action': {'check_hash_different': 'mac_pppoe_ipv6_udp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_udp_pay_ipv6_packets[ + 'mac_pppoe_ipv6_udp_pay'][3], + 'action': {'check_hash_different': 'mac_pppoe_ipv6_udp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_udp_pay_ipv6_packets[ + 'mac_pppoe_ipv6_udp_pay'][-1], + 'action': {'check_hash_same', 'mac_pppoe_ipv6_udp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_udp_pay_packets['mismatch'], + 'action': 'check_no_hash', + }, + ], + 'post-test': [ + { + 'send_packet':mac_pppoe_ipv6_udp_pay_ipv6_packets['mac_pppoe_ipv6_udp_pay'], + 'action': 'check_no_hash', + }, + ], + +} + mac_pppoe_ipv6_tcp_pay_packets = { 'mismatch': [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/UDP(sport=25,dport=23)/Raw("x"*80)', @@ -3714,6 +3874,54 @@ mac_pppoe_ipv6_tcp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only = { ], } +mac_pppoe_ipv6_tcp_pay_ipv6_packets = { + 'mac_pppoe_ipv6_tcp_pay': [ + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/TCP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/TCP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/TCP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1538", dst="CDCD:910A:2222:5498:8475:1111:3900:2024")/TCP(sport=25,dport=23)/Raw("x"*80)', + 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/TCP(sport=19,dport=99)/Raw("x"*80)', + ] +} + +mac_pppoe_ipv6_tcp_pay_ipv6 = { + 'sub_casename': 'mac_pppoe_ipv6_tcp_pay_ipv6', + 'port_id': 0, + 'rule': 'flow create 0 ingress pattern eth / pppoes / ipv6 / tcp / end actions rss types ipv6 end key_len 0 queues end / end', + 'test': [ + { + 'send_packet': mac_pppoe_ipv6_tcp_pay_ipv6_packets['mac_pppoe_ipv6_tcp_pay'][0], + 'action': {'save_hash': 'mac_pppoe_ipv6_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_tcp_pay_ipv6_packets['mac_pppoe_ipv6_tcp_pay'][1], + 'action': {'check_hash_different': 'mac_pppoe_ipv6_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_tcp_pay_ipv6_packets['mac_pppoe_ipv6_tcp_pay'][2], + 'action': {'check_hash_different': 'mac_pppoe_ipv6_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_tcp_pay_ipv6_packets['mac_pppoe_ipv6_tcp_pay'][3], + 'action': {'check_hash_different': 'mac_pppoe_ipv6_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_tcp_pay_ipv6_packets['mac_pppoe_ipv6_tcp_pay'][-1], + 'action': {'check_hash_same', 'mac_pppoe_ipv6_tcp_pay'}, + }, + { + 'send_packet': mac_pppoe_ipv6_tcp_pay_packets['mismatch'], + 'action': 'check_no_hash', + }, + ], + 'post-test': [ + { + 'send_packet': mac_pppoe_ipv6_tcp_pay_ipv6_packets['mac_pppoe_ipv6_tcp_pay'], + 'action': 'check_no_hash', + }, + ], +} + mac_pppoe_ipv6_tcp_pay = [ mac_pppoe_ipv6_tcp_pay_l2_src_only, mac_pppoe_ipv6_tcp_pay_l2_dst_only, @@ -3726,7 +3934,8 @@ mac_pppoe_ipv6_tcp_pay = [ mac_pppoe_ipv6_tcp_pay_l3_src_only_l4_dst_only, mac_pppoe_ipv6_tcp_pay_l3_dst_only_l4_src_only, mac_pppoe_ipv6_tcp_pay_l3_dst_only_l4_dst_only, - mac_pppoe_ipv6_tcp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only + mac_pppoe_ipv6_tcp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only, + mac_pppoe_ipv6_tcp_pay_ipv6 ] mac_pppoe_ipv6_udp_pay = [ @@ -3741,7 +3950,8 @@ mac_pppoe_ipv6_udp_pay = [ mac_pppoe_ipv6_udp_pay_l3_src_only_l4_dst_only, mac_pppoe_ipv6_udp_pay_l3_dst_only_l4_src_only, mac_pppoe_ipv6_udp_pay_l3_dst_only_l4_dst_only, - mac_pppoe_ipv6_udp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only + mac_pppoe_ipv6_udp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only, + mac_pppoe_ipv6_udp_pay_ipv6 ] @@ -3766,7 +3976,8 @@ mac_pppoe_ipv4_tcp_pay = [ mac_pppoe_ipv4_tcp_pay_l3_src_only_l4_dst_only, mac_pppoe_ipv4_tcp_pay_l3_dst_only_l4_src_only, mac_pppoe_ipv4_tcp_pay_l3_dst_only_l4_dst_only, - mac_pppoe_ipv4_tcp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only + mac_pppoe_ipv4_tcp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only, + mac_pppoe_ipv4_tcp_pay_ipv4 ] mac_pppoe_ipv4_udp_pay = [ @@ -3781,7 +3992,9 @@ mac_pppoe_ipv4_udp_pay = [ mac_pppoe_ipv4_udp_pay_l3_src_only_l4_dst_only, mac_pppoe_ipv4_udp_pay_l3_dst_only_l4_src_only, mac_pppoe_ipv4_udp_pay_l3_dst_only_l4_dst_only, - mac_pppoe_ipv4_udp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only, ] + mac_pppoe_ipv4_udp_pay_l3_src_only_l3_dst_only_l4_src_only_l4_dst_only, + mac_pppoe_ipv4_udp_pay_ipv4, + ] mac_pppoe_ipv4_pay_cases = [ mac_pppoe_ipv4_pay_l2_src_only, -- 2.17.1