From: Zeng Xiaoxiao <xiaoxiaox.zeng@intel.com>
To: dts@dpdk.org
Cc: Zeng Xiaoxiao <xiaoxiaox.zeng@intel.com>
Subject: [dts] [PATCH V1]tests/cvl_advanced_iavf_rss:change pfcp case according to testplan
Date: Mon, 15 Jun 2020 17:21:38 +0000 [thread overview]
Message-ID: <20200615172138.9844-1-xiaoxiaox.zeng@intel.com> (raw)
*. change pfcp part test according to the latest cvl_advanced_iavf_rss_test_plan
Signed-off-by: Zeng Xiaoxiao <xiaoxiaox.zeng@intel.com>
---
| 50 ++++++++++++++----------
1 file changed, 30 insertions(+), 20 deletions(-)
--git a/tests/TestSuite_cvl_advanced_iavf_rss.py b/tests/TestSuite_cvl_advanced_iavf_rss.py
index 1e6ac19..ade3bba 100644
--- a/tests/TestSuite_cvl_advanced_iavf_rss.py
+++ b/tests/TestSuite_cvl_advanced_iavf_rss.py
@@ -268,26 +268,25 @@ tv_iavf_mac_cvlan_rss = {
"check_func": rfc.check_iavf_packets_rss_queue
}
-tv_iavf_mac_ipv4_pfcp_session = {
- "name": "iavf_mac_ipv4_pfcp_session",
- "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end",
- "scapy_str": [
- 'Ether(dst="%s")/IP(src=RandIP(),dst=RandIP())/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=1, SEID=12)/Raw("X"*480)' % vf0_mac,
- 'Ether(dst="%s")/IP(src=RandIP(),dst=RandIP())/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=0)/("X"*480)' % vf0_mac,
- 'Ether(dst="%s")/IPv6()/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=1, SEID=12)/("X"*480)' % vf0_mac,
+tv_iavf_mac_ipv4_pfcp_session_match_dismatch = {
+ "name": "iavf_mac_ipv4_pfcp_session_match_dismatch",
+ "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv4 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end",
+ "match_str":['Ether(dst="%s")/IP(src="192.168.0.20",dst="192.168.0.21")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=RandShort())/Raw("x"*480)'%
+ vf0_mac],
+ "dismatch_str": [
+ 'Ether(dst="%s")/IP(src="192.168.0.20",dst="192.168.0.21")/UDP(sport=22,dport=8805)/PFCP(Sfield=0)/Raw("X"*480)' % vf0_mac,
+ 'Ether(dst="%s")/IPv6()/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=12)/("X"*480)' % vf0_mac,
],
"send_count": 100,
"check_func": rfc.check_iavf_packets_rss_queue
}
-tv_iavf_mac_ipv6_pfcp_session = {
- "name": "iavf_mac_ipv6_pfcp_session",
- "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end",
- "scapy_str": ['Ether(dst="%s")/IPv6()/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=1, SEID=12)/("X"*480)' % vf0_mac,
- 'Ether(dst="%s")/IPv6()/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=0)/("X"*480)' % vf0_mac,
- 'Ether(dst="%s")/IP(src=RandIP(),dst=RandIP())/UDP(sport=RandShort(),dport=RandShort())/PFCP(Sfield=1, SEID=12)/'
- '("X"*480)' % vf0_mac,
- ],
+tv_iavf_mac_ipv6_pfcp_session_match_dismatch = {
+ "name": "iavf_mac_ipv6_pfcp_session_match_dismatch",
+ "rte_flow_pattern": "flow create 0 ingress pattern eth / ipv6 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end / end",
+ "match_str": ['Ether(dst="%s")/IPv6()/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=RandShort())/Raw("x"*480)' %vf0_mac],
+ "dismatch_str": ['Ether(dst="%s")/IPv6()/UDP(sport=22,dport=8805)/PFCP(Sfield=0)/("X"*480)' % vf0_mac,
+ 'Ether(dst="%s")/IP(src="192.168.0.20",dst="192.168.0.21")/UDP(sport=22,dport=8805)/PFCP(Sfield=1, SEID=12)/("X"*480)' % vf0_mac],
"send_count": 100,
"check_func": rfc.check_iavf_packets_rss_queue
}
@@ -655,9 +654,12 @@ tvs_iavf_mac_rss_cvlan = [
tv_iavf_mac_cvlan_rss,
]
-tvs_iavf_mac_rss_pfcp = [
- tv_iavf_mac_ipv4_pfcp_session,
- tv_iavf_mac_ipv6_pfcp_session,
+tvs_iavf_mac_rss_pfcp_ipv4 = [
+ tv_iavf_mac_ipv4_pfcp_session_match_dismatch,
+]
+
+tvs_iavf_mac_rss_pfcp_ipv6 = [
+ tv_iavf_mac_ipv6_pfcp_session_match_dismatch,
]
tvs_iavf_gtpu_ipv4 = [
@@ -956,9 +958,17 @@ class AdvancedIavfRSSTest(TestCase):
self.create_testpmd_command(self.vf0_prop)
self._rte_flow_validate_pattern(tvs_iavf_mac_rss_cvlan)
- def test_iavf_rss_PFCP(self):
+ def test_iavf_rss_PFCP_ipv4(self):
+ self.create_testpmd_command(self.vf0_prop)
+ self.pmd_output.execute_cmd("flow validate 0 ingress pattern eth / ipv4 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end "
+ "/ end")
+ self._rte_flow_validate_pattern(tvs_iavf_mac_rss_pfcp_ipv4)
+
+ def test_iavf_rss_PFCP_ipv6(self):
self.create_testpmd_command(self.vf0_prop)
- self._rte_flow_validate_pattern(tvs_iavf_mac_rss_pfcp)
+ self.pmd_output.execute_cmd("flow validate 0 ingress pattern eth / ipv6 / udp / pfcp / end actions rss types pfcp end key_len 0 queues end "
+ "/ end")
+ self._rte_flow_validate_pattern(tvs_iavf_mac_rss_pfcp_ipv6)
def test_iavf_ipv4_gtpu_updown(self):
self.create_testpmd_command(self.vf0_prop)
--
2.17.1
next reply other threads:[~2020-06-15 8:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-15 17:21 Zeng Xiaoxiao [this message]
2020-06-15 8:42 ` Zeng, XiaoxiaoX
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=20200615172138.9844-1-xiaoxiaox.zeng@intel.com \
--to=xiaoxiaox.zeng@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).