test suite reviews and discussions
 help / color / mirror / Atom feed
* [DTS][PATCH V1 0/2] update test plans and tests to support represented port action and port representor action from deprecated vf action in ice_dcf_switch_filter
@ 2022-11-30  2:09 Ke Xu
  2022-11-30  2:09 ` [DTS][PATCH V1 1/2] test_plans/ice_dcf_switch_filter: update test plan to support represented port action from deprecated vf action Ke Xu
  2022-11-30  2:09 ` [DTS][PATCH V1 2/2] tests/ice_dcf_switch_filter: " Ke Xu
  0 siblings, 2 replies; 4+ messages in thread
From: Ke Xu @ 2022-11-30  2:09 UTC (permalink / raw)
  To: dts; +Cc: lijuan.tu, ke1.xu

A new API is introduced to replace the VF actions in DPDK 22.11.

New API covers deprecated TO_VF action on DCFs by port representor and
 represented port actions. These patches checks the existing use of vf id
 action and vf original action and replace them with new API.

There are several major modifications to be listed below.

Methods set_up_all, tear_down_all, setup_1pf_vfs_env and
 create_testpmd_command are modified to support 2 PFs VFs setup to support
 new negative subcases to introduce.

Method tear_down and case max_vfs are modified to enable re-compiling
 Testpmd for supporting extra ports during execution introduced by
 applying representors.

In negative cases, subcase 8: invalid vf id and the corresponding negative
 validate case is removed for introducing of new API is not using vf id,
 while new API may introduce invalid port id and that will be covered by a
 new subcase added in the patch to cover new API.

Other than these major modifications, most modifications are text replacing.

Testpmd args are modified to support appyling representors for the new API.

Rules are modified for the old API being deprecated, changing to the new API.

Ports id are modified corresponding to the port representors and modified API.

Ke Xu (2):
  test_plans/ice_dcf_switch_filter: update test plan to support
    represented port action from deprecated vf action
  tests/ice_dcf_switch_filter: update test plan to support represented
    port action from deprecated vf action

 .../ice_dcf_switch_filter_test_plan.rst       | 666 +++++++++---------
 tests/TestSuite_ice_dcf_switch_filter.py      | 603 ++++++++--------
 2 files changed, 635 insertions(+), 634 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [dts][PATCH V1 1/2] test_plans/ice_dcf_switch_filter: update test plan to support represented port action from deprecated vf action
@ 2023-04-12 10:42 Yu Jiang
  0 siblings, 0 replies; 4+ messages in thread
From: Yu Jiang @ 2023-04-12 10:42 UTC (permalink / raw)
  To: ke1.xu, dts; +Cc: Yu Jiang

According to dpdk22.11 commit id:
    776c119736 net/ice: remove deprecated VF flow action
    c0444f6273 net/ice: support represented port flow action
update test plan to support represented port action from deprecated vf action

Signed-off-by: Yu Jiang <yux.jiang@intel.com>
---
 test_plans/ice_dcf_switch_filter_test_plan.rst | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/test_plans/ice_dcf_switch_filter_test_plan.rst b/test_plans/ice_dcf_switch_filter_test_plan.rst
index 10364c38..b4d9b968 100644
--- a/test_plans/ice_dcf_switch_filter_test_plan.rst
+++ b/test_plans/ice_dcf_switch_filter_test_plan.rst
@@ -4303,7 +4303,7 @@ Subcase 1:  MAC_IPV4_UDP + L4 MASK + single vf
 ----------------------------------------------
 1. validate a rule::
 
-     testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 / udp src spec 2152 src mask 0xff00 dst spec 1281 dst mask 0x00ff / end actions vf id 1 / end
+     testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 / udp src spec 2152 src mask 0xff00 dst spec 1281 dst mask 0x00ff / end actions represented_port ethdev_port_id 1 / end
 
    get the message::
 
@@ -4317,7 +4317,7 @@ Subcase 1:  MAC_IPV4_UDP + L4 MASK + single vf
 
 2. create MAC_IPV4_L2TP_PAY rule::
 
-     testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 / udp src spec 2152 src mask 0xff00 dst spec 1281 dst mask 0x00ff / end actions vf id 1 / end
+     testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 / udp src spec 2152 src mask 0xff00 dst spec 1281 dst mask 0x00ff / end actions represented_port ethdev_port_id 1 / end
      testpmd> flow list 0
 
    check the rule exists in the list.
@@ -4347,7 +4347,7 @@ Subcase 2:  MAC_IPV6_TCP + L4 MASK + single vf
 ----------------------------------------------
 1. validate a rule::
 
-     testpmd> flow validate 0 priority 0 ingress pattern eth / ipv6 / tcp dst spec 3333 dst mask 0x0ff0 / end actions vf id 1 / end
+     testpmd> flow validate 0 priority 0 ingress pattern eth / ipv6 / tcp dst spec 3333 dst mask 0x0ff0 / end actions represented_port ethdev_port_id 1 / end
 
    get the message::
 
@@ -4361,7 +4361,7 @@ Subcase 2:  MAC_IPV6_TCP + L4 MASK + single vf
 
 2. create MAC_IPV4_L2TP_PAY rule::
 
-     testpmd> flow create 0 priority 0 ingress pattern eth / ipv6 / tcp dst spec 3333 dst mask 0x0ff0 / end actions vf id 1 / end
+     testpmd> flow create 0 priority 0 ingress pattern eth / ipv6 / tcp dst spec 3333 dst mask 0x0ff0 / end actions represented_port ethdev_port_id 1 / end
      testpmd> flow list 0
 
    check the rule exists in the list.
@@ -4391,7 +4391,7 @@ Subcase 3:  MAC_IPV4_UDP_VXLAN_MAC_IPV4_UDP + L4 MASK + single vf
 1. validate a rule::
 
      testpmd> rx_vxlan_port add 4789 0
-     testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 / udp src spec 32 src mask 0x0f / end actions vf id 1 / end
+     testpmd> flow validate 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 / udp src spec 32 src mask 0x0f / end actions represented_port ethdev_port_id 1 / end
 
    get the message::
 
@@ -4405,7 +4405,7 @@ Subcase 3:  MAC_IPV4_UDP_VXLAN_MAC_IPV4_UDP + L4 MASK + single vf
 
 2. create MAC_IPV4_L2TP_PAY rule::
 
-     testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 / udp src spec 32 src mask 0x0f / end actions vf id 1 / end
+     testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 / udp / vxlan / eth / ipv4 / udp src spec 32 src mask 0x0f / end actions represented_port ethdev_port_id 1 / end
      testpmd> flow list 0
 
    check the rule exists in the list.
@@ -4434,7 +4434,7 @@ Subcase 4:  MAC_IPV4_NVGRE_MAC_IPV4_UDP + L4 MASK + single vf
 -------------------------------------------------------------
 1. validate a rule::
 
-     testpmd> flow validate 0 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 0x8 / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / udp src spec 1280 src mask 0x00ff / end actions vf id 1 / end
+     testpmd> flow validate 0 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 0x8 / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / udp src spec 1280 src mask 0x00ff / end actions represented_port ethdev_port_id 1 / end
 
    get the message::
 
@@ -4448,7 +4448,7 @@ Subcase 4:  MAC_IPV4_NVGRE_MAC_IPV4_UDP + L4 MASK + single vf
 
 2. create MAC_IPV4_L2TP_PAY rule::
 
-     testpmd> flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 0x8 / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / udp src spec 1280 src mask 0x00ff / end actions vf id 1 / end
+     testpmd> flow create 0 ingress pattern eth / ipv4 dst is 192.168.0.1 / nvgre tni is 0x8 / eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 / udp src spec 1280 src mask 0x00ff / end actions represented_port ethdev_port_id 1 / end
      testpmd> flow list 0
 
    check the rule exists in the list.
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-12 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30  2:09 [DTS][PATCH V1 0/2] update test plans and tests to support represented port action and port representor action from deprecated vf action in ice_dcf_switch_filter Ke Xu
2022-11-30  2:09 ` [DTS][PATCH V1 1/2] test_plans/ice_dcf_switch_filter: update test plan to support represented port action from deprecated vf action Ke Xu
2022-11-30  2:09 ` [DTS][PATCH V1 2/2] tests/ice_dcf_switch_filter: " Ke Xu
2023-04-12 10:42 [dts][PATCH V1 1/2] test_plans/ice_dcf_switch_filter: " Yu Jiang

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).