* [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test
@ 2020-04-07 5:25 Lunyuan Cui
2020-04-07 5:25 ` [dts] [PATCH V2 1/2] test_plans/generic_flow_api: add l2 mac addr fdir filter test plan Lunyuan Cui
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Lunyuan Cui @ 2020-04-07 5:25 UTC (permalink / raw)
To: dts; +Cc: Lunyuan Cui
add l2 mac addr fdir filter test plan.
add l2 mac addr fdir filter test case.
---
v2 changes:
- Add test plan and test case for ipv4-udp and ipv4-tcp.
Lunyuan Cui (2):
test_plans/generic_flow_api: add l2 mac addr fdir filter test plan
tests/TestSuite_generic_flow_api: add l2 mac addr fdir filter test
case
test_plans/generic_flow_api_test_plan.rst | 506 ++++++++++++++++++++++
tests/TestSuite_generic_flow_api.py | 427 ++++++++++++++++++
2 files changed, 933 insertions(+)
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dts] [PATCH V2 1/2] test_plans/generic_flow_api: add l2 mac addr fdir filter test plan
2020-04-07 5:25 [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test Lunyuan Cui
@ 2020-04-07 5:25 ` Lunyuan Cui
2020-04-07 5:25 ` [dts] [PATCH V2 2/2] tests/TestSuite_generic_flow_api: add l2 mac addr fdir filter test case Lunyuan Cui
2020-04-08 6:19 ` [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test Peng, Yuan
2 siblings, 0 replies; 5+ messages in thread
From: Lunyuan Cui @ 2020-04-07 5:25 UTC (permalink / raw)
To: dts; +Cc: Lunyuan Cui
FVL enable src MAC address and dst MAC address as FDIR's input set
for ipv4-other, ipv4-udp and ipv4-tcp. Add test plan for it.
Signed-off-by: Lunyuan Cui <lunyuanx.cui@intel.com>
---
test_plans/generic_flow_api_test_plan.rst | 506 ++++++++++++++++++++++
1 file changed, 506 insertions(+)
diff --git a/test_plans/generic_flow_api_test_plan.rst b/test_plans/generic_flow_api_test_plan.rst
index 380d9e8..6e9691a 100644
--- a/test_plans/generic_flow_api_test_plan.rst
+++ b/test_plans/generic_flow_api_test_plan.rst
@@ -1423,3 +1423,509 @@ Test case: igb flexbytes
testpmd> flow list 0
testpmd> flow flush 0
testpmd> flow list 0
+
+Test case: Fortville fdir for l2 mac
+====================================
+ Prerequisites:
+
+ bind the PF to dpdk driver::
+ ./usertools/dpdk-devbind.py -b igb_uio 0000:81:00.0
+
+ launch testpmd::
+ ./x86_64-native-linuxapp-gcc/app/testpmd -l 0-3 -n 4 -w 0000:81:00.0 -- -i --rxq=4 --txq=4
+
+1. basic test for ipv4-other
+
+ 1) validate a rule::
+ testpmd> flow validate 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end
+
+ Verify the commend can validete::
+ Flow rule validated
+
+ 2) create a rule::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ send packets not match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 3) list the rule::
+ testpmd> flow list 0
+
+ Verify there are one rule.
+
+ 4) flush the rule::
+ testpmd> flow flush 0
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 5) list the rule::
+ testpmd> flow list 0
+
+ Verify there are no rule.
+
+ 6) validate a rule::
+ testpmd> flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / end actions mark id 1 / rss / end
+
+ Verify the commend can validete::
+ Flow rule validated
+
+ 7) create a rule::
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / end actions mark id 1 / rss / end
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ send packets not match rule 0::
+ sendp(Ether(src='88:88:88:88:88:88',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 8) list the rule::
+ testpmd> flow list 0
+
+ Verify there are one rule.
+
+ 9) flush the rule::
+ testpmd> flow flush 0
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 10) list the rule::
+ testpmd> flow list 0
+
+ Verify there are no rule.
+
+ 11) validate a rule::
+ testpmd> flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end
+
+ Verify the commend can validete::
+ Flow rule validated
+
+ 12) create a rule::
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ send packets not match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(src='88:88:88:88:88:88',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(src='88:88:88:88:88:88',dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 13) list the rule::
+ testpmd> flow list 0
+
+ Verify there are one rule.
+
+ 14) destory the rule::
+ testpmd> flow destroy 0 rule 0
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 15) list the rule::
+ testpmd> flow list 0
+
+ Verify there are no rule.
+
+2. basic test for ipv4-udp
+
+ 1) validate a rule::
+ testpmd> flow validate 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / udp / end actions mark id 1 / rss / end
+
+ Verify the commend can validete::
+ Flow rule validated
+
+ 2) create a rule::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / udp / end actions mark id 1 / rss / end
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ send packets not match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 3) list the rule::
+ testpmd> flow list 0
+
+ Verify there are one rule.
+
+ 4) flush the rule::
+ testpmd> flow flush 0
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 5) list the rule::
+ testpmd> flow list 0
+
+ Verify there are no rule.
+
+ 6) validate a rule::
+ testpmd> flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / udp / end actions mark id 1 / rss / end
+
+ Verify the commend can validete::
+ Flow rule validated
+
+ 7) create a rule::
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / udp / end actions mark id 1 / rss / end
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ send packets not match rule 0::
+ sendp(Ether(src='88:88:88:88:88:88',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 8) list the rule::
+ testpmd> flow list 0
+
+ Verify there are one rule.
+
+ 9) flush the rule::
+ testpmd> flow flush 0
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 10) list the rule::
+ testpmd> flow list 0
+
+ Verify there are no rule.
+
+ 11) validate a rule::
+ testpmd> flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / udp / end actions mark id 1 / rss / end
+
+ Verify the commend can validete::
+ Flow rule validated
+
+ 12) create a rule::
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / udp / end actions mark id 1 / rss / end
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ send packets not match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(src='88:88:88:88:88:88',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(src='88:88:88:88:88:88',dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 13) list the rule::
+ testpmd> flow list 0
+
+ Verify there are one rule.
+
+ 14) destory the rule::
+ testpmd> flow destroy 0 rule 0
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/UDP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 15) list the rule::
+ testpmd> flow list 0
+
+ Verify there are no rule.
+
+3. basic test for ipv4-tcp
+
+ 1) validate a rule::
+ testpmd> flow validate 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / tcp / end actions mark id 1 / rss / end
+
+ Verify the commend can validete::
+ Flow rule validated
+
+ 2) create a rule::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / tcp / end actions mark id 1 / rss / end
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ send packets not match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 3) list the rule::
+ testpmd> flow list 0
+
+ Verify there are one rule.
+
+ 4) flush the rule::
+ testpmd> flow flush 0
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 5) list the rule::
+ testpmd> flow list 0
+
+ Verify there are no rule.
+
+ 6) validate a rule::
+ testpmd> flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / tcp / end actions mark id 1 / rss / end
+
+ Verify the commend can validete::
+ Flow rule validated
+
+ 7) create a rule::
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / tcp / end actions mark id 1 / rss / end
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ send packets not match rule 0::
+ sendp(Ether(src='88:88:88:88:88:88',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 8) list the rule::
+ testpmd> flow list 0
+
+ Verify there are one rule.
+
+ 9) flush the rule::
+ testpmd> flow flush 0
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 10) list the rule::
+ testpmd> flow list 0
+
+ Verify there are no rule.
+
+ 11) validate a rule::
+ testpmd> flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / tcp / end actions mark id 1 / rss / end
+
+ Verify the commend can validete::
+ Flow rule validated
+
+ 12) create a rule::
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / tcp / end actions mark id 1 / rss / end
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ send packets not match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(src='88:88:88:88:88:88',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(src='88:88:88:88:88:88',dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 13) list the rule::
+ testpmd> flow list 0
+
+ Verify there are one rule.
+
+ 14) destory the rule::
+ testpmd> flow destroy 0 rule 0
+
+ send packets match rule 0::
+ sendp(Ether(src='99:99:99:99:99:99',dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/TCP()/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 15) list the rule::
+ testpmd> flow list 0
+
+ Verify there are no rule.
+
+4. complex test
+
+ 1) create rules and destory the first::
+ create three rules::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end
+ testpmd> flow create 0 ingress pattern eth dst is 22:22:22:22:22:22 / ipv4 / end actions mark id 2 / rss / end
+ testpmd> flow create 0 ingress pattern eth dst is 33:33:33:33:33:33 / ipv4 / end actions mark id 3 / rss / end
+
+ list the rules::
+ testpmd> flow list 0
+
+ Verify there are three rules.
+
+ send packets::
+ sendp(Ether(dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(dst='33:33:33:33:33:33')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ destory the first rule::
+ testpmd> flow destroy 0 rule 0
+
+ list the rules::
+ testpmd> flow list 0
+
+ Verify there are rule 1 and rule 2.
+
+ send packets match rule 0::
+ sendp(Ether(dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ send packets match rule 1 and rule 2::
+ sendp(Ether(dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(dst='33:33:33:33:33:33')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ flush rules::
+ testpmd> flow flush 0
+
+ send packets match rule 0, rule 1 and rule 2::
+ sendp(Ether(dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(dst='33:33:33:33:33:33')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ 2) create rules and destory the second::
+ create three rules::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end
+ testpmd> flow create 0 ingress pattern eth dst is 22:22:22:22:22:22 / ipv4 / end actions mark id 2 / rss / end
+ testpmd> flow create 0 ingress pattern eth dst is 33:33:33:33:33:33 / ipv4 / end actions mark id 3 / rss / end
+
+ list the rules::
+ testpmd> flow list 0
+
+ Verify there are three rules.
+
+ destory the second rule::
+ testpmd> flow destroy 0 rule 1
+
+ list the rules::
+ testpmd> flow list 0
+
+ Verify there are rule 0 and rule 2.
+
+ send packets match rule 1::
+ sendp(Ether(dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ send packets match rule 0 and rule 2::
+ sendp(Ether(dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(dst='33:33:33:33:33:33')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+ flush rules::
+ testpmd> flow flush 0
+
+ 3) create rules and destory the third::
+ create three rules::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end
+ testpmd> flow create 0 ingress pattern eth dst is 22:22:22:22:22:22 / ipv4 / end actions mark id 2 / rss / end
+ testpmd> flow create 0 ingress pattern eth dst is 33:33:33:33:33:33 / ipv4 / end actions mark id 3 / rss / end
+
+ list the rules::
+ testpmd> flow list 0
+
+ Verify there are three rules.
+
+ destory the second rule::
+ testpmd> flow destroy 0 rule 2
+
+ list the rules::
+ testpmd> flow list 0
+
+ Verify there are rule 0 and rule 1.
+
+ send packets match rule 2::
+ sendp(Ether(dst='33:33:33:33:33:33')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can not mark.
+
+ send packets match rule 0 and rule 1::
+ sendp(Ether(dst='11:11:11:11:11:11')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+ sendp(Ether(dst='22:22:22:22:22:22')/IP(src=RandIP(),dst='2.2.2.5')/"Hello!0",iface="enp129s0f1")
+
+ Verify all packets can rss and mark.
+
+5. negative test
+
+ 1) ip in command::
+ creat rule::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 dst is 1.1.1.1 / end actions mark id 2 / rss / end
+ Verify rule can not be created.
+
+ 2) udp in command::
+ creat rule::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / udp dst is 111 / end actions mark id 2 / rss / end
+ Verify rule can not be created.
+
+ 3) tcp in command::
+ creat rule::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / tcp dst is 111 / end actions mark id 2 / rss / end
+ Verify rule can not be created.
+
+ 4) kinds rule conflict::
+ creat rule::
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 3 / rss / end
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / end actions mark id 1 / rss / end
+ Verify second rule can not be created.
+
+ flush rules::
+ testpmd> flow flush 0
+
+ creat rule::
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / end actions mark id 1 / rss / end
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end
+ Verify second rule can not be created.
+
+ flush rules::
+ testpmd> flow flush 0
+
+ creat rule::
+ testpmd> flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end
+ testpmd> flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 3 / rss / end
+ Verify second rule can not be created.
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dts] [PATCH V2 2/2] tests/TestSuite_generic_flow_api: add l2 mac addr fdir filter test case
2020-04-07 5:25 [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test Lunyuan Cui
2020-04-07 5:25 ` [dts] [PATCH V2 1/2] test_plans/generic_flow_api: add l2 mac addr fdir filter test plan Lunyuan Cui
@ 2020-04-07 5:25 ` Lunyuan Cui
2020-04-08 6:19 ` [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test Peng, Yuan
2 siblings, 0 replies; 5+ messages in thread
From: Lunyuan Cui @ 2020-04-07 5:25 UTC (permalink / raw)
To: dts; +Cc: Lunyuan Cui
FVL enable src MAC address and dst MAC address as FDIR's input set
for ipv4-other, ipv4-udp and ipv4-tcp. Add test case for it.
Signed-off-by: Lunyuan Cui <lunyuanx.cui@intel.com>
---
tests/TestSuite_generic_flow_api.py | 427 ++++++++++++++++++++++++++++
1 file changed, 427 insertions(+)
diff --git a/tests/TestSuite_generic_flow_api.py b/tests/TestSuite_generic_flow_api.py
index bb42bf7..9147794 100644
--- a/tests/TestSuite_generic_flow_api.py
+++ b/tests/TestSuite_generic_flow_api.py
@@ -884,6 +884,433 @@ class TestGeneric_flow_api(TestCase):
rule_num = extrapkt_rulenum['rulenum']
self.verify_rulenum(rule_num)
+ def sendpkt_check_result(self, src_mac, dst_mac, mark, mark_id, rss, pctype=""):
+
+ mark_info = "FDIR matched ID=0x%d" % mark_id
+
+ if pctype == "ipv4-other":
+ # packet type:I40E_FILTER_PCTYPE_NONF_IPV4_OTHER
+ self.sendpkt(pktstr='Ether(src="%s",dst="%s")/IP()' % (src_mac, dst_mac))
+ elif pctype == "ipv4-udp":
+ # packet type:I40E_FILTER_PCTYPE_NONF_IPV4_UDP
+ self.sendpkt(pktstr='Ether(src="%s",dst="%s")/IP()/UDP()' % (src_mac, dst_mac))
+ elif pctype == "ipv4-tcp":
+ # packet type:I40E_FILTER_PCTYPE_NONF_IPV4_UDP
+ self.sendpkt(pktstr='Ether(src="%s",dst="%s")/IP()/TCP()' % (src_mac, dst_mac))
+
+ out_pf = self.dut.get_session_output(timeout=2)
+ if mark == 1:
+ self.verify(mark_info in out_pf, "the packet not mark the expect index.")
+ else:
+ if mark_info in out_pf:
+ raise Exception("the packet should not mark the expect index.")
+ if rss == 1:
+ self.verify("RSS queue=" in out_pf, "the packet not rss.")
+
+ def test_fdir_L2_mac_filter_basic_for_ipv4_other(self):
+ """
+ only supported by i40e
+ """
+ self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
+ "fortville_spirit_single", "fortpark_TLV"], "%s nic not support fdir vlan filter" % self.nic)
+
+ self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % self.pf_pci)
+ self.dut.send_expect("port config all rss all", "testpmd> ", 120)
+ self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
+ self.dut.send_expect("set verbose 1", "testpmd> ", 120)
+ self.dut.send_expect("start", "testpmd> ", 120)
+ time.sleep(2)
+
+ # only dst mac
+ # validate
+ self.dut.send_expect(
+ "flow validate 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end",
+ "validated")
+
+ # create
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end",
+ "created")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 0, 1, 0, "ipv4-other")
+
+ # list
+ self.compare_memory_rules(1)
+
+ # flush
+ self.dut.send_expect("flow flush 0", "testpmd> ")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-other")
+
+ self.compare_memory_rules(0)
+
+ # only src mac
+ # validate
+ self.dut.send_expect(
+ "flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / end actions mark id 1 / rss / end",
+ "validated")
+
+ # create
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / end actions mark id 1 / rss / end",
+ "created")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-other")
+ self.sendpkt_check_result('88:88:88:88:88:88', '11:11:11:11:11:11', 0, 1, 0, "ipv4-other")
+
+ # list
+ self.compare_memory_rules(1)
+
+ # flush
+ self.dut.send_expect("flow flush 0", "testpmd> ")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-other")
+
+ self.compare_memory_rules(0)
+
+ # dst mac and src mac
+ # validate
+ self.dut.send_expect(
+ "flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end",
+ "validated")
+
+ # create
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end",
+ "created")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-other")
+ self.sendpkt_check_result('88:88:88:88:88:88', '11:11:11:11:11:11', 0, 1, 0, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 0, 1, 0, "ipv4-other")
+ self.sendpkt_check_result('88:88:88:88:88:88', '22:22:22:22:22:22', 0, 1, 0, "ipv4-other")
+
+ # list
+ self.compare_memory_rules(1)
+
+ # destroy
+ self.dut.send_expect("flow destroy 0 rule 0", "testpmd> ", 120)
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0)
+
+ self.compare_memory_rules(0)
+
+ def test_fdir_L2_mac_filter_basic_for_ipv4_udp(self):
+ """
+ only supported by i40e
+ """
+ self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
+ "fortville_spirit_single", "fortpark_TLV"], "%s nic not support fdir vlan filter" % self.nic)
+
+ self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % self.pf_pci)
+ self.dut.send_expect("port config all rss all", "testpmd> ", 120)
+ self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
+ self.dut.send_expect("set verbose 1", "testpmd> ", 120)
+ self.dut.send_expect("start", "testpmd> ", 120)
+ time.sleep(2)
+
+ # only dst mac
+ # validate
+ self.dut.send_expect(
+ "flow validate 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / udp / end actions mark id 1 / rss / end",
+ "validated")
+
+ # create
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / udp / end actions mark id 1 / rss / end",
+ "created")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-udp")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 0, 1, 0, "ipv4-udp")
+
+ # list
+ self.compare_memory_rules(1)
+
+ # flush
+ self.dut.send_expect("flow flush 0", "testpmd> ")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-udp")
+
+ self.compare_memory_rules(0)
+
+ # only src mac
+ # validate
+ self.dut.send_expect(
+ "flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / udp / end actions mark id 1 / rss / end",
+ "validated")
+
+ # create
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / udp / end actions mark id 1 / rss / end",
+ "created")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-udp")
+ self.sendpkt_check_result('88:88:88:88:88:88', '11:11:11:11:11:11', 0, 1, 0, "ipv4-udp")
+
+ # list
+ self.compare_memory_rules(1)
+
+ # flush
+ self.dut.send_expect("flow flush 0", "testpmd> ")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-udp")
+
+ self.compare_memory_rules(0)
+
+ # dst mac and src mac
+ # validate
+ self.dut.send_expect(
+ "flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / udp / end actions mark id 1 / rss / end",
+ "validated")
+
+ # create
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / udp / end actions mark id 1 / rss / end",
+ "created")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-udp")
+ self.sendpkt_check_result('88:88:88:88:88:88', '11:11:11:11:11:11', 0, 1, 0, "ipv4-udp")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 0, 1, 0, "ipv4-udp")
+ self.sendpkt_check_result('88:88:88:88:88:88', '22:22:22:22:22:22', 0, 1, 0, "ipv4-udp")
+
+ # list
+ self.compare_memory_rules(1)
+
+ # destroy
+ self.dut.send_expect("flow destroy 0 rule 0", "testpmd> ", 120)
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-udp")
+
+ self.compare_memory_rules(0)
+
+ def test_fdir_L2_mac_filter_basic_for_ipv4_tcp(self):
+ """
+ only supported by i40e
+ """
+ self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
+ "fortville_spirit_single", "fortpark_TLV"], "%s nic not support fdir vlan filter" % self.nic)
+
+ self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % self.pf_pci)
+ self.dut.send_expect("port config all rss all", "testpmd> ", 120)
+ self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
+ self.dut.send_expect("set verbose 1", "testpmd> ", 120)
+ self.dut.send_expect("start", "testpmd> ", 120)
+ time.sleep(2)
+
+ # only dst mac
+ # validate
+ self.dut.send_expect(
+ "flow validate 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / tcp / end actions mark id 1 / rss / end",
+ "validated")
+
+ # create
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / tcp / end actions mark id 1 / rss / end",
+ "created")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-tcp")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 0, 1, 0, "ipv4-tcp")
+
+ # list
+ self.compare_memory_rules(1)
+
+ # flush
+ self.dut.send_expect("flow flush 0", "testpmd> ")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-tcp")
+
+ self.compare_memory_rules(0)
+
+ # only src mac
+ # validate
+ self.dut.send_expect(
+ "flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / tcp / end actions mark id 1 / rss / end",
+ "validated")
+
+ # create
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / tcp / end actions mark id 1 / rss / end",
+ "created")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-tcp")
+ self.sendpkt_check_result('88:88:88:88:88:88', '11:11:11:11:11:11', 0, 1, 0, "ipv4-tcp")
+
+ # list
+ self.compare_memory_rules(1)
+
+ # flush
+ self.dut.send_expect("flow flush 0", "testpmd> ")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-tcp")
+
+ self.compare_memory_rules(0)
+
+ # dst mac and src mac
+ # validate
+ self.dut.send_expect(
+ "flow validate 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / tcp / end actions mark id 1 / rss / end",
+ "validated")
+
+ # create
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / tcp / end actions mark id 1 / rss / end",
+ "created")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-tcp")
+ self.sendpkt_check_result('88:88:88:88:88:88', '11:11:11:11:11:11', 0, 1, 0, "ipv4-tcp")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 0, 1, 0, "ipv4-tcp")
+ self.sendpkt_check_result('88:88:88:88:88:88', '22:22:22:22:22:22', 0, 1, 0, "ipv4-tcp")
+
+ # list
+ self.compare_memory_rules(1)
+
+ # destroy
+ self.dut.send_expect("flow destroy 0 rule 0", "testpmd> ", 120)
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-tcp")
+
+ self.compare_memory_rules(0)
+
+ def test_fdir_L2_mac_filter_complex(self):
+ """
+ only supported by i40e
+ """
+ self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
+ "fortville_spirit_single", "fortpark_TLV"], "%s nic not support fdir vlan filter" % self.nic)
+
+ self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % self.pf_pci)
+ self.dut.send_expect("port config all rss all", "testpmd> ", 120)
+ self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
+ self.dut.send_expect("set verbose 1", "testpmd> ", 120)
+ self.dut.send_expect("start", "testpmd> ", 120)
+ time.sleep(2)
+
+ # delete the first rule of three rules
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end",
+ "created")
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 22:22:22:22:22:22 / ipv4 / end actions mark id 2 / rss / end",
+ "created")
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 33:33:33:33:33:33 / ipv4 / end actions mark id 3 / rss / end",
+ "created")
+
+ self.compare_memory_rules(3)
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 1, 2, 1, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '33:33:33:33:33:33', 1, 3, 1, "ipv4-other")
+
+ self.dut.send_expect("flow destroy 0 rule 0", "testpmd> ", 120)
+
+ self.compare_memory_rules(2)
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 1, 2, 1, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '33:33:33:33:33:33', 1, 3, 1, "ipv4-other")
+
+ self.dut.send_expect("flow flush 0", "testpmd> ")
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 0, 1, 0, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 0, 2, 0, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '33:33:33:33:33:33', 0, 3, 0, "ipv4-other")
+
+ # delete the second rule of three rules
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end",
+ "created")
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 22:22:22:22:22:22 / ipv4 / end actions mark id 2 / rss / end",
+ "created")
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 33:33:33:33:33:33 / ipv4 / end actions mark id 3 / rss / end",
+ "created")
+
+ self.dut.send_expect("flow destroy 0 rule 1", "testpmd> ", 120)
+
+ self.compare_memory_rules(2)
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 0, 2, 0, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '33:33:33:33:33:33', 1, 3, 1, "ipv4-other")
+
+ self.dut.send_expect("flow flush 0", "testpmd> ")
+
+ # delete the third rule of three rules
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end",
+ "created")
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 22:22:22:22:22:22 / ipv4 / end actions mark id 2 / rss / end",
+ "created")
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 33:33:33:33:33:33 / ipv4 / end actions mark id 3 / rss / end",
+ "created")
+
+ self.dut.send_expect("flow destroy 0 rule 2", "testpmd> ", 120)
+
+ self.compare_memory_rules(2)
+
+ self.sendpkt_check_result('99:99:99:99:99:99', '11:11:11:11:11:11', 1, 1, 1, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '22:22:22:22:22:22', 1, 2, 1, "ipv4-other")
+ self.sendpkt_check_result('99:99:99:99:99:99', '33:33:33:33:33:33', 0, 3, 0, "ipv4-other")
+
+ self.dut.send_expect("flow flush 0", "testpmd> ")
+
+ def test_fdir_L2_mac_filter_negative(self):
+ """
+ only supported by i40e
+ """
+ self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
+ "fortville_spirit_single", "fortpark_TLV"], "%s nic not support fdir vlan filter" % self.nic)
+
+ self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % self.pf_pci)
+ self.dut.send_expect("set fwd rxonly", "testpmd> ", 120)
+ self.dut.send_expect("set verbose 1", "testpmd> ", 120)
+ self.dut.send_expect("start", "testpmd> ", 120)
+ time.sleep(2)
+
+ # ip in command
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 dst is 1.1.1.1 / end actions mark id 2 / rss / end",
+ "error")
+
+ # udp in command
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / udp dst is 111 / end actions mark id 2 / rss / end",
+ "error")
+
+ # tcp in command
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / tcp dst is 111 / end actions mark id 2 / rss / end",
+ "error")
+
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 3 / rss / end",
+ "created")
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / end actions mark id 1 / rss / end",
+ "Invalid")
+
+ self.dut.send_expect("flow flush 0", "testpmd> ", 120)
+
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 / ipv4 / end actions mark id 1 / rss / end",
+ "created")
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end",
+ "Invalid")
+
+ self.dut.send_expect("flow flush 0", "testpmd> ", 120)
+
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth src is 99:99:99:99:99:99 dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 1 / rss / end",
+ "created")
+ self.dut.send_expect(
+ "flow create 0 ingress pattern eth dst is 11:11:11:11:11:11 / ipv4 / end actions mark id 3 / rss / end",
+ "Invalid")
+
def test_fdir_for_vlan(self):
"""
only supported by i40e
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test
2020-04-07 5:25 [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test Lunyuan Cui
2020-04-07 5:25 ` [dts] [PATCH V2 1/2] test_plans/generic_flow_api: add l2 mac addr fdir filter test plan Lunyuan Cui
2020-04-07 5:25 ` [dts] [PATCH V2 2/2] tests/TestSuite_generic_flow_api: add l2 mac addr fdir filter test case Lunyuan Cui
@ 2020-04-08 6:19 ` Peng, Yuan
2020-04-16 8:47 ` Tu, Lijuan
2 siblings, 1 reply; 5+ messages in thread
From: Peng, Yuan @ 2020-04-08 6:19 UTC (permalink / raw)
To: Cui, LunyuanX, dts; +Cc: Cui, LunyuanX
Acked by Peng, Yuan <yuan.peng@intel.com>
-----Original Message-----
From: dts <dts-bounces@dpdk.org> On Behalf Of Lunyuan Cui
Sent: Tuesday, April 7, 2020 1:26 PM
To: dts@dpdk.org
Cc: Cui, LunyuanX <lunyuanx.cui@intel.com>
Subject: [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test
add l2 mac addr fdir filter test plan.
add l2 mac addr fdir filter test case.
---
v2 changes:
- Add test plan and test case for ipv4-udp and ipv4-tcp.
Lunyuan Cui (2):
test_plans/generic_flow_api: add l2 mac addr fdir filter test plan
tests/TestSuite_generic_flow_api: add l2 mac addr fdir filter test
case
test_plans/generic_flow_api_test_plan.rst | 506 ++++++++++++++++++++++
tests/TestSuite_generic_flow_api.py | 427 ++++++++++++++++++
2 files changed, 933 insertions(+)
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test
2020-04-08 6:19 ` [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test Peng, Yuan
@ 2020-04-16 8:47 ` Tu, Lijuan
0 siblings, 0 replies; 5+ messages in thread
From: Tu, Lijuan @ 2020-04-16 8:47 UTC (permalink / raw)
To: Peng, Yuan, Cui, LunyuanX, dts; +Cc: Cui, LunyuanX
Applied the series, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng, Yuan
> Sent: Wednesday, April 8, 2020 2:20 PM
> To: Cui, LunyuanX <lunyuanx.cui@intel.com>; dts@dpdk.org
> Cc: Cui, LunyuanX <lunyuanx.cui@intel.com>
> Subject: Re: [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test
>
> Acked by Peng, Yuan <yuan.peng@intel.com>
>
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Lunyuan Cui
> Sent: Tuesday, April 7, 2020 1:26 PM
> To: dts@dpdk.org
> Cc: Cui, LunyuanX <lunyuanx.cui@intel.com>
> Subject: [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test
>
> add l2 mac addr fdir filter test plan.
> add l2 mac addr fdir filter test case.
> ---
> v2 changes:
> - Add test plan and test case for ipv4-udp and ipv4-tcp.
>
> Lunyuan Cui (2):
> test_plans/generic_flow_api: add l2 mac addr fdir filter test plan
> tests/TestSuite_generic_flow_api: add l2 mac addr fdir filter test
> case
>
> test_plans/generic_flow_api_test_plan.rst | 506 ++++++++++++++++++++++
> tests/TestSuite_generic_flow_api.py | 427 ++++++++++++++++++
> 2 files changed, 933 insertions(+)
>
> --
> 2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-04-16 8:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 5:25 [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test Lunyuan Cui
2020-04-07 5:25 ` [dts] [PATCH V2 1/2] test_plans/generic_flow_api: add l2 mac addr fdir filter test plan Lunyuan Cui
2020-04-07 5:25 ` [dts] [PATCH V2 2/2] tests/TestSuite_generic_flow_api: add l2 mac addr fdir filter test case Lunyuan Cui
2020-04-08 6:19 ` [dts] [PATCH V2 0/2] add l2 mac addr fdir filter test Peng, Yuan
2020-04-16 8:47 ` Tu, Lijuan
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).