* [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_limit_value_test
@ 2022-11-30 3:56 Ke Xu
2022-11-30 3:56 ` [DTS][PATCH V1 1/2] test_plans/ice_limit_value_test: update test plan to support represented port action from deprecated vf action Ke Xu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ke Xu @ 2022-11-30 3:56 UTC (permalink / raw)
To: dts; +Cc: lijuan.tu, Ke 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.
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.
Jin Ling (2):
test_plans/ice_limit_value_test: update test plan to support
represented port action from deprecated vf action
tests/ice_limit_value_test: update test plan to support represented
port action from deprecated vf action
test_plans/ice_limit_value_test_test_plan.rst | 12 ++++++------
tests/TestSuite_ice_limit_value_test.py | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [DTS][PATCH V1 1/2] test_plans/ice_limit_value_test: update test plan to support represented port action from deprecated vf action
2022-11-30 3:56 [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_limit_value_test Ke Xu
@ 2022-11-30 3:56 ` Ke Xu
2022-11-30 3:56 ` [DTS][PATCH V1 2/2] tests/ice_limit_value_test: " Ke Xu
2022-12-13 6: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_limit_value_test Tu, Lijuan
2 siblings, 0 replies; 4+ messages in thread
From: Ke Xu @ 2022-11-30 3:56 UTC (permalink / raw)
To: dts; +Cc: lijuan.tu, Ke Xu, Jin Ling
A new API is introduced to replace the VF actions in DPDK 22.11. To support This
new API, several modifications are made.
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.
Signed-off-by: Jin Ling <jin.ling@intel.com>
Signed-off-by: Ke Xu <ke1.xu@intel.com>
---
test_plans/ice_limit_value_test_test_plan.rst | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/test_plans/ice_limit_value_test_test_plan.rst b/test_plans/ice_limit_value_test_test_plan.rst
index 70311efd..4b76dc17 100644
--- a/test_plans/ice_limit_value_test_test_plan.rst
+++ b/test_plans/ice_limit_value_test_test_plan.rst
@@ -500,8 +500,8 @@ Prerequisites
8. Launch dpdk on VF0 and VF1, and VF0 request DCF mode::
- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:01.0,cap=dcf -a 0000:18:01.1 -- -i
- testpmd> set portlist 1
+ ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:18:01.0,cap=dcf,representor=vf[1] -a 0000:18:01.1 -- -i
+ testpmd> set portlist 2
testpmd> set fwd rxonly
testpmd> set verbose 1
testpmd> start
@@ -531,17 +531,17 @@ increased, so we can create a total of 32500 switch filter rules on a DCF.
1. create 32500 rules with the same pattern, but different input set::
- testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.0.0 / end actions vf id 1 / end
- testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.0.1 / end actions vf id 1 / end
+ testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.0.0 / end actions represented_port ethdev_port_id 1 / end
+ testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.0.1 / end actions represented_port ethdev_port_id 1 / end
......
- testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.127.114 / end actions vf id 1 / end
+ testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.127.114 / end actions represented_port ethdev_port_id 1 / end
testpmd> flow list 0
check the rules exist in the list.
2. create one more rule::
- testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.127.178 / end actions vf id 1 / end
+ testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.127.178 / end actions represented_port ethdev_port_id 1 / end
check the rule can not be created successfully, and
testpmd provide a friendly output, showing::
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [DTS][PATCH V1 2/2] tests/ice_limit_value_test: update test plan to support represented port action from deprecated vf action
2022-11-30 3:56 [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_limit_value_test Ke Xu
2022-11-30 3:56 ` [DTS][PATCH V1 1/2] test_plans/ice_limit_value_test: update test plan to support represented port action from deprecated vf action Ke Xu
@ 2022-11-30 3:56 ` Ke Xu
2022-12-13 6: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_limit_value_test Tu, Lijuan
2 siblings, 0 replies; 4+ messages in thread
From: Ke Xu @ 2022-11-30 3:56 UTC (permalink / raw)
To: dts; +Cc: lijuan.tu, Ke Xu, Jin Ling
A new API is introduced to replace the VF actions in DPDK 22.11. To support This
new API, several modifications are made.
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.
Signed-off-by: Jin Ling <jin.ling@intel.com>
Signed-off-by: Ke Xu <ke1.xu@intel.com>
---
tests/TestSuite_ice_limit_value_test.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/TestSuite_ice_limit_value_test.py b/tests/TestSuite_ice_limit_value_test.py
index b75cea84..06160c0a 100644
--- a/tests/TestSuite_ice_limit_value_test.py
+++ b/tests/TestSuite_ice_limit_value_test.py
@@ -23,7 +23,7 @@ tv_max_rule_number = {
"scapy_str": [],
"check_func": {
"func": rfc.check_vf_rx_packets_number,
- "param": {"expect_port": 1},
+ "param": {"expect_port": 2},
},
"expect_results": {"expect_pkts": 32500},
},
@@ -33,7 +33,7 @@ tv_max_rule_number = {
],
"check_func": {
"func": rfc.check_vf_rx_packets_number,
- "param": {"expect_port": 1},
+ "param": {"expect_port": 2},
},
"expect_results": {"expect_pkts": 0},
},
@@ -1166,7 +1166,7 @@ class TestICELimitValue(TestCase):
for j in range(0, 255):
if not rule_count > 32500:
flows.write(
- "flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions vf id 1 / end \n"
+ "flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions represented_port ethdev_port_id 1 / end \n"
% (i, j)
)
matched_scapy_str = (
@@ -1188,7 +1188,7 @@ class TestICELimitValue(TestCase):
all_eal_param = self.dut.create_eal_parameters(
cores="1S/4C/1T",
ports=[vf0_pci, vf1_pci],
- port_options={vf0_pci: "cap=dcf"},
+ port_options={vf0_pci: "cap=dcf,representor=vf[1]"},
)
command = (
self.path
@@ -1197,7 +1197,7 @@ class TestICELimitValue(TestCase):
)
out = self.dut.send_expect(command, "testpmd> ", 360)
self.testpmd_status = "running"
- self.dut.send_expect("set portlist 1", "testpmd> ", 15)
+ self.dut.send_expect("set portlist 2", "testpmd> ", 15)
self.dut.send_expect("set fwd rxonly", "testpmd> ", 15)
# check the rule list with 32500 rules
rule_list_num = list(range(0, 32500))
@@ -1212,7 +1212,7 @@ class TestICELimitValue(TestCase):
for i in range(m, 255):
for j in range(t, 255):
rule = (
- "flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions vf id 1 / end \n"
+ "flow create 0 ingress pattern eth / ipv4 src is 192.168.%d.%d / end actions represented_port ethdev_port_id 1 / end \n"
% (i, j)
)
matched_packet = (
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [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_limit_value_test
2022-11-30 3:56 [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_limit_value_test Ke Xu
2022-11-30 3:56 ` [DTS][PATCH V1 1/2] test_plans/ice_limit_value_test: update test plan to support represented port action from deprecated vf action Ke Xu
2022-11-30 3:56 ` [DTS][PATCH V1 2/2] tests/ice_limit_value_test: " Ke Xu
@ 2022-12-13 6:09 ` Tu, Lijuan
2 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2022-12-13 6:09 UTC (permalink / raw)
To: Xu, Ke1, dts
> -----Original Message-----
> From: Xu, Ke1 <ke1.xu@intel.com>
> Sent: Wednesday, November 30, 2022 11:56 AM
> To: dts@dpdk.org
> Cc: Tu, Lijuan <lijuan.tu@intel.com>; Xu, Ke1 <ke1.xu@intel.com>
> Subject: [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_limit_value_test
>
> 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.
>
> 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.
>
> Jin Ling (2):
> test_plans/ice_limit_value_test: update test plan to support
> represented port action from deprecated vf action
> tests/ice_limit_value_test: update test plan to support represented
> port action from deprecated vf action
Applied, thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-12-13 6:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 3:56 [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_limit_value_test Ke Xu
2022-11-30 3:56 ` [DTS][PATCH V1 1/2] test_plans/ice_limit_value_test: update test plan to support represented port action from deprecated vf action Ke Xu
2022-11-30 3:56 ` [DTS][PATCH V1 2/2] tests/ice_limit_value_test: " Ke Xu
2022-12-13 6: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_limit_value_test 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).