test suite reviews and discussions
 help / color / mirror / Atom feed
From: Fu Qi <qi.fu@intel.com>
To: dts@dpdk.org
Cc: Fu Qi <qi.fu@intel.com>
Subject: [dts] [PATCH V1]tests/TestSuite_cvl_advanced_iavf_rss: add l2tp and esp test case to advanced iavf rss
Date: Wed,  3 Jun 2020 12:55:31 -0400	[thread overview]
Message-ID: <20200603165531.5054-1-qi.fu@intel.com> (raw)

Add test cases for l2tpv3 and esp supported in advanced iavf rss.

Signed-off-by: Fu Qi <qi.fu@intel.com>
---
 tests/TestSuite_cvl_advanced_iavf_rss.py | 84 ++++++++++++++++++++++++
 1 file changed, 84 insertions(+)

diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py b/tests/TestSuite_cvl_advanced_iavf_rss.py
index 144e268..1e6ac19 100644
--- a/tests/TestSuite_cvl_advanced_iavf_rss.py
+++ b/tests/TestSuite_cvl_advanced_iavf_rss.py
@@ -542,6 +542,54 @@ tv_mac_ipv6_sctp_inputset = {
     "check_pf_rss_func": rfc.check_pf_rss_queue
 }
 
+tv_iavf_mac_ipv4_l2tpv3 = {
+    "name": "iavf_mac_ipv4_l2tpv3",
+    "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / l2tpv3oip / end actions rss types l2tpv3 end key_len 0 queues end / end",
+    "scapy_str": ['Ether(dst="%s")/IP(src="192.168.0.3", proto=115)/L2TP(hex(RandNum(16,255))[1:]+"\\x00\\x00\\x00")/Raw("X"*480)' % vf0_mac],
+    "send_count": 100,
+    "check_func": rfc.check_iavf_packets_rss_queue
+}
+
+tv_iavf_mac_ipv6_l2tpv3 = {
+    "name": "iavf_mac_ipv6_l2tpv3",
+    "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / l2tpv3oip / end actions rss types l2tpv3 end key_len 0 queues end / end",
+    "scapy_str": ['Ether(dst="%s")/IPv6(src="1111:2222:3333:4444:5555:6666:7777:8888", nh=115)/L2TP(hex(RandNum(16,255))[1:]+"\\x00\\x00\\x00")/Raw("X"*480)' % vf0_mac],
+    "send_count": 100,
+    "check_func": rfc.check_iavf_packets_rss_queue
+}
+
+tv_iavf_mac_ipv4_esp = {
+    "name": "iavf_mac_ipv4_esp",
+    "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / esp / end actions rss types esp end key_len 0 queues end / end",
+    "scapy_str": ['Ether(dst="%s")/IP(src="192.168.0.3", proto=50)/ESP(spi=RandShort())/Raw("X"*480)' % vf0_mac],
+    "send_count": 100,
+    "check_func": rfc.check_iavf_packets_rss_queue
+}
+
+tv_iavf_mac_ipv6_esp = {
+    "name": "iavf_mac_ipv6_esp",
+    "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / esp / end actions rss types esp end key_len 0 queues end / end",
+    "scapy_str": ["Ether(dst='%s')/IPv6(src='1111:2222:3333:4444:5555:6666:7777:8888', nh=50)/ESP(spi=RandShort())/Raw('X'*480)" % vf0_mac],
+    "send_count": 100,
+    "check_func": rfc.check_iavf_packets_rss_queue
+}
+
+tv_iavf_mac_ipv4_ah = {
+    "name": "iavf_mac_ipv4_ah",
+    "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / ah / end actions rss types ah end key_len 0 queues end / end",
+    "scapy_str": ["Ether(dst='%s')/IP(src='192.168.0.3', proto=51)/AH(spi=RandShort())/Raw('X'*480)" % vf0_mac],
+    "send_count": 100,
+    "check_func": rfc.check_iavf_packets_rss_queue
+}
+
+tv_iavf_mac_ipv6_ah = {
+    "name": "iavf_mac_ipv6_ah",
+    "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / ah / end actions rss types ah end key_len 0 queues end / end",
+    "scapy_str": ["Ether(dst='%s')/IPv6(src='1111:2222:3333:4444:5555:6666:7777:8888', nh=51)/AH(spi=RandShort())/Raw('X'*480)" % vf0_mac],
+    "send_count": 100,
+    "check_func": rfc.check_iavf_packets_rss_queue
+}
+
 tvs_iavf_mac_eth_src = [
     tv_iavf_mac_eth_src_only,
 ]
@@ -651,6 +699,18 @@ tvs_check_pf_vf_inputset = [
     tv_mac_ipv6_sctp_inputset,
 ]
 
+tvs_iavf_mac_rss_ipv4_l2tpv3 = [tv_iavf_mac_ipv4_l2tpv3]
+
+tvs_iavf_mac_rss_ipv6_l2tpv3 = [tv_iavf_mac_ipv6_l2tpv3]
+
+tvs_iavf_mac_rss_ipv4_esp = [tv_iavf_mac_ipv4_esp]
+
+tvs_iavf_mac_rss_ipv6_esp = [tv_iavf_mac_ipv6_esp]
+
+tvs_iavf_mac_rss_ipv4_ah = [tv_iavf_mac_ipv4_ah]
+
+tvs_iavf_mac_rss_ipv6_ah = [tv_iavf_mac_ipv6_ah]
+
 
 class AdvancedIavfRSSTest(TestCase):
 
@@ -920,6 +980,30 @@ class AdvancedIavfRSSTest(TestCase):
         self.create_testpmd_command(self.vf0_prop)
         self._rte_flow_validate_pattern(tvs_iavf_gtpu_ipv4_icmp)
 
+    def test_iavf_rss_ipv4_l2tpv3(self):
+        self.create_testpmd_command(self.vf0_prop)
+        self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv4_l2tpv3)
+
+    def test_iavf_rss_ipv6_l2tpv3(self):
+        self.create_testpmd_command(self.vf0_prop)
+        self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv6_l2tpv3)
+
+    def test_iavf_rss_ipv4_esp(self):
+        self.create_testpmd_command(self.vf0_prop)
+        self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv4_esp)
+
+    def test_iavf_rss_ipv6_esp(self):
+        self.create_testpmd_command(self.vf0_prop)
+        self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv6_esp)
+
+    def test_iavf_rss_ipv4_ah(self):
+        self.create_testpmd_command(self.vf0_prop)
+        self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv4_ah)
+
+    def test_iavf_rss_ipv6_ah(self):
+        self.create_testpmd_command(self.vf0_prop)
+        self._rte_flow_validate_pattern(tvs_iavf_mac_rss_ipv6_ah)
+
     # def test_iavf_ipv4_sctp_gtpu_updown(self):
     #     self.create_testpmd_command(self.vf0_prop)
     #     self._rte_flow_validate_pattern(tvs_iavf_gtpu_ipv4_sctp)
-- 
2.17.1


             reply	other threads:[~2020-06-03  8:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 16:55 Fu Qi [this message]
2020-06-11 12:04 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200603165531.5054-1-qi.fu@intel.com \
    --to=qi.fu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).