From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E0F7CA04A3; Thu, 11 Jun 2020 14:05:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 98CF22C5E; Thu, 11 Jun 2020 14:05:00 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A77872C39 for ; Thu, 11 Jun 2020 14:04:58 +0200 (CEST) IronPort-SDR: WXJBn5W64I2azmG0wW81HdtDDtWA2EOxBDY5WDqbTs1iC8W+sldYhSFLTK1kQsboCWhftqsyBK J+Q9Pp+7SpHQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2020 05:04:54 -0700 IronPort-SDR: FOmBew8eOjvxuJZX6QbH/HoKfOZ/vlz0HvPhFVYahP15ZS6zZnhj9DHaU+fx8rZKEImN3mPPeO ZPaCNdNpiRDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,499,1583222400"; d="scan'208";a="296568224" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 11 Jun 2020 05:04:53 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 05:04:53 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 05:04:53 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX103.ccr.corp.intel.com ([10.239.4.69]) with mapi id 14.03.0439.000; Thu, 11 Jun 2020 20:04:50 +0800 From: "Tu, Lijuan" To: "Fu, Qi" , "dts@dpdk.org" CC: "Fu, Qi" Thread-Topic: [dts] [PATCH V1]tests/TestSuite_iavf_fdir: add l2tp and esp test cases to iavf fdir Thread-Index: AQHWOXe5RZWJ3VBPVEyRtAQV13VEiqjTXg7Q Date: Thu, 11 Jun 2020 12:04:48 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC5BB38@SHSMSX101.ccr.corp.intel.com> References: <20200603161351.4839-1-qi.fu@intel.com> In-Reply-To: <20200603161351.4839-1-qi.fu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]tests/TestSuite_iavf_fdir: add l2tp and esp test cases to iavf fdir X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Applied, thanks -----Original Message----- From: dts On Behalf Of Fu Qi Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B4=1B$BF|=1B(B 0:14 To: dts@dpdk.org Cc: Fu, Qi Subject: [dts] [PATCH V1]tests/TestSuite_iavf_fdir: add l2tp and esp test c= ases to iavf fdir Add test cases for l2tpv3 and esp supported in cvl iavf fdir. Signed-off-by: Fu Qi --- tests/TestSuite_iavf_fdir.py | 279 ++++++++++++++++++++++++++++++++++- 1 file changed, 277 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py in= dex 8d11487..182d0a4 100644 --- a/tests/TestSuite_iavf_fdir.py +++ b/tests/TestSuite_iavf_fdir.py @@ -218,6 +218,72 @@ MAC_IPV4_GTPU =3D { 'Ether(src=3D"a4:bf:01:51:27:ca", dst=3D"00:11:22:33:44:55")/IP(sr= c=3D"192.168.0.20", dst=3D"192.168.0.21")/UDP(dport=3D2152)/GTP_U_Header(gt= p_type=3D255, teid=3D0x1234567)/IP()/Raw("x"*20)'] } =20 +MAC_IPV4_L2TPv3 =3D { + "match": [ + "Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D'192.168.0.3', proto=3D= 115)/L2TP('\\x00\\x00\\x00\\x11')/Raw('x'*480)", + "Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D'192.168.1.3', proto=3D= 115)/L2TP('\\x00\\x00\\x00\\x11')/Raw('x'*480)"], + "mismatch": [ + "Ether(dst=3D'00:11:22:33:44:55')/IP(src=3D'192.168.0.3',=20 +proto=3D115)/L2TP('\\x00\\x00\\x00\\x12')/Raw('x'*480)"] +} + +MAC_IPV6_L2TPv3 =3D { + "match": [ + "Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D'1111:2222:3333:4444:= 5555:6666:7777:8888',nh=3D115)/L2TP('\\x00\\x00\\x00\\x11')/Raw('x'*480)", + "Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D'1111:2222:3333:4444:= 5555:6666:7777:9999',nh=3D115)/L2TP('\\x00\\x00\\x00\\x11')/Raw('x'*480)"], + "mismatch": [ + =20 +"Ether(dst=3D'00:11:22:33:44:55')/IPv6(src=3D'1111:2222:3333:4444:5555:666= 6 +:7777:8888',nh=3D115)/L2TP('\\x00\\x00\\x00\\x12')/Raw('x'*480)"] +} + +MAC_IPV4_ESP =3D { + "match": [ + 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",proto=3D5= 0)/ESP(spi=3D7)/Raw("x"*480)', + 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.1.3",proto=3D5= 0)/ESP(spi=3D7)/Raw("x"*480)'], + "mismatch": [ + =20 +'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",proto=3D50)/ESP(s= pi=3D +17)/Raw("x"*480)'] +} + +MAC_IPV6_ESP =3D { + "match": [ + 'Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3D"1111:2222:3333:4444:= 5555:6666:7777:8888",nh=3D50)/ESP(spi=3D7)/Raw("x"*480)', + 'Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3D"1111:2222:3333:4444:= 5555:6666:7777:9999",nh=3D50)/ESP(spi=3D7)/Raw("x"*480)'], + "mismatch": [ + =20 +'Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3D"1111:2222:3333:4444:5555:666= 6 +:7777:8888",nh=3D50)/ESP(spi=3D17)/Raw("x"*480)'] +} + +MAC_IPV4_AH =3D { + "match": [ + 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",proto=3D5= 1)/AH(spi=3D7)/Raw("x"*480)', + 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.1.3",proto=3D5= 1)/AH(spi=3D7)/Raw("x"*480)'], + "mismatch": [ + =20 +'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.3",proto=3D51)/AH(sp= i=3D1 +7)/Raw("x"*480)'] +} + +MAC_IPV6_AH =3D { + "match": [ + 'Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3D"1111:2222:3333:4444:= 5555:6666:7777:8888",nh=3D51)/AH(spi=3D7)/Raw("x"*480)', + 'Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3D"1111:2222:3333:4444:= 5555:6666:7777:9999",nh=3D51)/AH(spi=3D7)/Raw("x"*480)'], + "mismatch": [ + =20 +'Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3D"1111:2222:3333:4444:5555:666= 6 +:7777:8888",nh=3D51)/AH(spi=3D17)/Raw("x"*480)'] +} + +MAC_IPV4_NAT_T_ESP =3D { + "match": [ + 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.20")/UDP(dpo= rt=3D4500)/ESP(spi=3D2)/Raw("x"*480)'], + "mismatch": [ + 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.10.20")/UDP(dp= ort=3D4500)/ESP(spi=3D2)/Raw("x"*480)', + 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.20")/UDP(dpo= rt=3D4500)/ESP(spi=3D12)/Raw("x"*480)', + =20 +'Ether(dst=3D"00:11:22:33:44:55")/IP(dst=3D"192.168.0.20")/UDP(dport=3D450= 0)/ +ESP(spi=3D2)/Raw("x"*480)'] +} + +MAC_IPV6_NAT_T_ESP =3D { + "match": [ + 'Ether(dst=3D"00:11:22:33:44:55")/IPv6(dst=3D"1111:2222:3333:4444:= 5555:6666:7777:8888")/UDP(dport=3D4500)/ESP(spi=3D2)/Raw("x"*480)'], + "mismatch": [ + 'Ether(dst=3D"00:11:22:33:44:55")/IPv6(dst=3D"1111:2222:3333:4444:= 5555:6666:7777:8888")/UDP(dport=3D4500)/ESP(spi=3D12)/Raw("x"*480)', + 'Ether(dst=3D"00:11:22:33:44:55")/IPv6(dst=3D"1111:2222:3333:4444:= 5555:6666:7777:9999")/UDP(dport=3D4500)/ESP(spi=3D2)/Raw("x"*480)', + =20 +'Ether(dst=3D"00:11:22:33:44:55")/IPv6(src=3D"1111:2222:3333:4444:5555:666= 6 +:7777:8888")/UDP(dport=3D4500)/ESP(spi=3D2)/Raw("x"*480)'] +} + L2_Ethertype =3D [ 'Ether(dst=3D"00:11:22:33:44:55")/PPPoED()/PPP()/IP()/Raw("x" *80)', 'Ether(dst=3D"00:11:22:33:44:55", type=3D0x8863)/IP()/Raw("x" * 80)', = @@ -897,6 +963,173 @@ tv_mac_ipv4_gtpu_mark =3D { "check_param": {"port_id": 0, "mark_id": 4} } =20 +tv_mac_ipv4_l2tpv3_queue_index =3D { + "name": "test_mac_ipv4_l2tpv3_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv4 / l2tpv3oip session_= id is 17 / end actions queue index 13 / mark id 7 / end", + "scapy_str": MAC_IPV4_L2TPv3, + "check_param": {"port_id": 0, "queue": 13, "mark_id": 7} } + +tv_mac_ipv4_l2tpv3_queue_group =3D { + "name": "test_mac_ipv4_l2tpv3_queue_group", + "rule": "flow create 0 ingress pattern eth / ipv4 / l2tpv3oip session_= id is 17 / end actions rss queues 1 2 3 4 end / mark id 6 / end", + "scapy_str": MAC_IPV4_L2TPv3, + "check_param": {"port_id": 0, "queue": [1, 2, 3, 4], "mark_id": 6}=20 +} + +tv_mac_ipv4_l2tpv3_mark =3D { + "name": "test_mac_ipv4_l2tpv3_mark", + "rule": "flow create 0 ingress pattern eth / ipv4 / l2tpv3oip session_= id is 17 / end actions mark id 15 / end", + "scapy_str": MAC_IPV4_L2TPv3, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 15} } + +tv_mac_ipv6_l2tpv3_queue_index =3D { + "name": "test_mac_ipv6_l2tpv3_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv6 / l2tpv3oip session_= id is 17 / end actions queue index 13 / mark id 7 / end", + "scapy_str": MAC_IPV6_L2TPv3, + "check_param": {"port_id": 0, "queue": 13, "mark_id": 7} } + +tv_mac_ipv6_l2tpv3_queue_group =3D { + "name": "test_mac_ipv6_l2tpv3_queue_group", + "rule": "flow create 0 ingress pattern eth / ipv6 / l2tpv3oip session_= id is 17 / end actions rss queues 1 2 3 4 end / mark id 6 / end", + "scapy_str": MAC_IPV6_L2TPv3, + "check_param": {"port_id": 0, "queue": [1, 2, 3, 4], "mark_id": 6}=20 +} + +tv_mac_ipv6_l2tpv3_mark =3D { + "name": "test_mac_ipv6_l2tpv3_mark", + "rule": "flow create 0 ingress pattern eth / ipv6 / l2tpv3oip session_= id is 17 / end actions mark id 15 / end", + "scapy_str": MAC_IPV6_L2TPv3, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 15} } + +tv_mac_ipv4_esp_queue_index =3D { + "name": "test_mac_ipv4_esp_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv4 / esp spi is 7 / end= actions queue index 13 / mark id 7 / end", + "scapy_str": MAC_IPV4_ESP, + "check_param": {"port_id": 0, "queue": 13, "mark_id": 7} } + +tv_mac_ipv4_esp_queue_group =3D { + "name": "test_mac_ipv4_esp_queue_group", + "rule": "flow create 0 ingress pattern eth / ipv4 / esp spi is 7 / end= actions rss queues 1 2 3 4 end / mark id 6 / end", + "scapy_str": MAC_IPV4_ESP, + "check_param": {"port_id": 0, "queue": [1, 2, 3, 4], "mark_id": 6}=20 +} + +tv_mac_ipv4_esp_mark =3D { + "name": "test_mac_ipv4_esp_mark", + "rule": "flow create 0 ingress pattern eth / ipv4 / esp spi is 7 / end= actions mark id 15 / end", + "scapy_str": MAC_IPV4_ESP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 15} } + +tv_mac_ipv6_esp_queue_index =3D { + "name": "test_mac_ipv6_esp_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv6 / esp spi is 7 / end= actions queue index 13 / mark id 7 / end", + "scapy_str": MAC_IPV6_ESP, + "check_param": {"port_id": 0, "queue": 13, "mark_id": 7} } + +tv_mac_ipv6_esp_queue_group =3D { + "name": "test_mac_ipv6_esp_queue_group", + "rule": "flow create 0 ingress pattern eth / ipv6 / esp spi is 7 / end= actions rss queues 1 2 3 4 end / mark id 6 / end", + "scapy_str": MAC_IPV6_ESP, + "check_param": {"port_id": 0, "queue": [1, 2, 3, 4], "mark_id": 6}=20 +} + +tv_mac_ipv6_esp_mark =3D { + "name": "test_mac_ipv6_esp_mark", + "rule": "flow create 0 ingress pattern eth / ipv6 / esp spi is 7 / end= actions mark id 15 / end", + "scapy_str": MAC_IPV6_ESP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 15} } + +tv_mac_ipv4_ah_queue_index =3D { + "name": "test_mac_ipv4_ah_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv4 / ah spi is 7 / end = actions queue index 13 / mark id 7 / end", + "scapy_str": MAC_IPV4_AH, + "check_param": {"port_id": 0, "queue": 13, "mark_id": 7} } + +tv_mac_ipv4_ah_queue_group =3D { + "name": "test_mac_ipv4_ah_queue_group", + "rule": "flow create 0 ingress pattern eth / ipv4 / ah spi is 7 / end = actions rss queues 1 2 3 4 end / mark id 6 / end", + "scapy_str": MAC_IPV4_AH, + "check_param": {"port_id": 0, "queue": [1, 2, 3, 4], "mark_id": 6}=20 +} + +tv_mac_ipv4_ah_mark =3D { + "name": "test_mac_ipv4_ah_mark", + "rule": "flow create 0 ingress pattern eth / ipv4 / ah spi is 7 / end = actions mark id 15 / end", + "scapy_str": MAC_IPV4_AH, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 15} } + +tv_mac_ipv6_ah_queue_index =3D { + "name": "test_mac_ipv6_ah_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv6 / ah spi is 7 / end = actions queue index 13 / mark id 7 / end", + "scapy_str": MAC_IPV6_AH, + "check_param": {"port_id": 0, "queue": 13, "mark_id": 7} } + +tv_mac_ipv6_ah_queue_group =3D { + "name": "test_mac_ipv6_ah_queue_group", + "rule": "flow create 0 ingress pattern eth / ipv6 / ah spi is 7 / end = actions rss queues 1 2 3 4 end / mark id 6 / end", + "scapy_str": MAC_IPV6_AH, + "check_param": {"port_id": 0, "queue": [1, 2, 3, 4], "mark_id": 6}=20 +} + +tv_mac_ipv6_ah_mark =3D { + "name": "test_mac_ipv6_ah_mark", + "rule": "flow create 0 ingress pattern eth / ipv6 / ah spi is 7 / end = actions mark id 15 / end", + "scapy_str": MAC_IPV6_AH, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 15} } + +tv_mac_ipv4_nat_t_esp_queue_index =3D { + "name": "test_mac_ipv4_nat_t_esp_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 = / udp / esp spi is 2 / end actions queue index 13 / mark id 7 / end", + "scapy_str": MAC_IPV4_NAT_T_ESP, + "check_param": {"port_id": 0, "queue": 13, "mark_id": 7} } + +tv_mac_ipv4_nat_t_esp_queue_group =3D { + "name": "test_mac_ipv4_nat_t_esp_queue_group", + "rule": "flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 = / udp / esp spi is 2 / end actions rss queues 1 2 3 4 end / mark id 6 / end= ", + "scapy_str": MAC_IPV4_NAT_T_ESP, + "check_param": {"port_id": 0, "queue": [1, 2, 3, 4], "mark_id": 6}=20 +} + +tv_mac_ipv4_nat_t_esp_mark =3D { + "name": "test_mac_ipv4_nat_t_esp_mark", + "rule": "flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 = / udp / esp spi is 2 / end actions mark id 15 / end", + "scapy_str": MAC_IPV4_NAT_T_ESP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 15} } + +tv_mac_ipv6_nat_t_esp_queue_index =3D { + "name": "test_mac_ipv6_nat_t_esp_queue_index", + "rule": "flow create 0 ingress pattern eth / ipv6 dst is 1111:2222:333= 3:4444:5555:6666:7777:8888 / udp / esp spi is 2 / end actions queue index 1= 3 / mark id 7 / end", + "scapy_str": MAC_IPV6_NAT_T_ESP, + "check_param": {"port_id": 0, "queue": 13, "mark_id": 7} } + +tv_mac_ipv6_nat_t_esp_queue_group =3D { + "name": "test_mac_ipv6_nat_t_esp_queue_group", + "rule": "flow create 0 ingress pattern eth / ipv6 dst is 1111:2222:333= 3:4444:5555:6666:7777:8888 / udp / esp spi is 2 / end actions rss queues 1 = 2 3 4 end / mark id 6 / end", + "scapy_str": MAC_IPV6_NAT_T_ESP, + "check_param": {"port_id": 0, "queue": [1, 2, 3, 4], "mark_id": 6}=20 +} + +tv_mac_ipv6_nat_t_esp_mark =3D { + "name": "test_mac_ipv6_nat_t_esp_mark", + "rule": "flow create 0 ingress pattern eth / ipv6 dst is 1111:2222:333= 3:4444:5555:6666:7777:8888 / udp / esp spi is 2 / end actions mark id 15 / = end", + "scapy_str": MAC_IPV6_NAT_T_ESP, + "check_param": {"port_id": 0, "passthru": 1, "mark_id": 15} } =20 vectors_ipv4_pay =3D [tv_mac_ipv4_pay_queue_index, tv_mac_ipv4_pay_mark_rs= s,tv_mac_ipv4_pay_passthru, tv_mac_ipv4_pay_drop, tv_mac_ipv4_pay_queue_group= , tv_mac_ipv4_pay_mark] @@ -934,6 +1167,22 @@ vectors_pfcp =3D [tv_pfcp_que= ue_index, tv_pfcp_queue_group, tv_pfcp_passthru, tv_p vectors_l2_ethertype= =3D [tv_l2_ethertype_drop, tv_l2_ethertype_queue_index, tv_l2_ethertype_qu= eue_group, tv_l2_ethertype_passthru, tv_l2_ethertype_mar= k, tv_l2_ethertype_mark_rss] =20 +vectors_ipv4_l2tpv3 =3D [tv_mac_ipv4_l2tpv3_queue_index,=20 +tv_mac_ipv4_l2tpv3_queue_group, tv_mac_ipv4_l2tpv3_mark] + +vectors_ipv6_l2tpv3 =3D [tv_mac_ipv6_l2tpv3_queue_index,=20 +tv_mac_ipv6_l2tpv3_queue_group, tv_mac_ipv6_l2tpv3_mark] + +vectors_ipv4_esp =3D [tv_mac_ipv4_esp_queue_index,=20 +tv_mac_ipv4_esp_queue_group, tv_mac_ipv4_esp_mark] + +vectors_ipv6_esp =3D [tv_mac_ipv6_esp_queue_index,=20 +tv_mac_ipv6_esp_queue_group, tv_mac_ipv6_esp_mark] + +vectors_ipv4_ah =3D [tv_mac_ipv4_ah_queue_index,=20 +tv_mac_ipv4_ah_queue_group, tv_mac_ipv4_ah_mark] + +vectors_ipv6_ah =3D [tv_mac_ipv6_ah_queue_index,=20 +tv_mac_ipv6_ah_queue_group, tv_mac_ipv6_ah_mark] + +vectors_ipv4_nat_t_esp =3D [tv_mac_ipv4_nat_t_esp_queue_index,=20 +tv_mac_ipv4_nat_t_esp_queue_group, tv_mac_ipv4_nat_t_esp_mark] + +vectors_ipv6_nat_t_esp =3D [tv_mac_ipv6_nat_t_esp_queue_index,=20 +tv_mac_ipv6_nat_t_esp_queue_group, tv_mac_ipv6_nat_t_esp_mark] + class TestIAVFFdir(TestCase): =20 def rte_flow_process(self, vectors): @@ -1306,6 +1555,30 @@ class TestIAVFFdir(TestCase): def test_mac_ipv4_gtpu(self): self.rte_flow_process(vectors_gtpu) =20 + def test_mac_ipv4_l2tpv3(self): + self.rte_flow_process(vectors_ipv4_l2tpv3) + + def test_mac_ipv6_l2tpv3(self): + self.rte_flow_process(vectors_ipv6_l2tpv3) + + def test_mac_ipv4_esp(self): + self.rte_flow_process(vectors_ipv4_esp) + + def test_mac_ipv6_esp(self): + self.rte_flow_process(vectors_ipv6_esp) + + def test_mac_ipv4_ah(self): + self.rte_flow_process(vectors_ipv4_ah) + + def test_mac_ipv6_ah(self): + self.rte_flow_process(vectors_ipv6_ah) + + def test_mac_ipv4_nat_t_esp(self): + self.rte_flow_process(vectors_ipv4_nat_t_esp) + + def test_mac_ipv6_nat_t_esp(self): + self.rte_flow_process(vectors_ipv6_nat_t_esp) + def test_mac_ipv4_protocol(self): rules =3D [ "flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.21 = proto is 1 / end actions queue index 1 / mark id 1 / end", @@ -1523,11 +179= 6,13 @@ class TestIAVFFdir(TestCase): =20 def test_unsupported_pattern_with_OS_package(self): """ - Create GTPU rule, PFCP rule and L2 Ethertype rule with OS default = package + Create GTPU rule, PFCP rule, L2 Ethertype rule, l2tpv3 rule and=20 + esp rule with OS default package """ rule =3D ["flow create 0 ingress pattern eth / ipv4 / udp / gtpu t= eid is 0x12345678 / gtp_psc qfi is 0x34 / end actions drop / end", "flow create 0 ingress pattern eth / ipv4 / udp / pfcp s_f= ield is 0 / end actions queue index 1 / end", - "flow create 0 ingress pattern eth type is 0x8863 / end ac= tions queue index 1 / mark id 1 / end"] + "flow create 0 ingress pattern eth type is 0x8863 / end ac= tions queue index 1 / mark id 1 / end", + "flow create 0 ingress pattern eth / ipv4 / l2tpv3oip sess= ion_id is 17 / end actions rss queues 1 2 end / mark id 6 / end", + "flow create 0 ingress pattern eth / ipv6 / udp / esp=20 + spi is 6 / end actions rss queues 1 2 end / mark id 6 / end"] self.destroy_env() os_package_location =3D self.suite_config["os_default_package_file= _location"] comms_package_location =3D self.suite_config["comms_package_file_l= ocation"] -- 2.17.1