[dts] [dts 6/7] test_plans/ipfrag_test_plan:update test plan to sync with testsuite
Xie wei
weix.xie at intel.com
Thu Sep 3 11:57:45 CEST 2020
Signed-off-by: Xie wei <weix.xie at intel.com>
---
test_plans/ipfrag_test_plan.rst | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/test_plans/ipfrag_test_plan.rst b/test_plans/ipfrag_test_plan.rst
index 9c0afed..31dcc7b 100644
--- a/test_plans/ipfrag_test_plan.rst
+++ b/test_plans/ipfrag_test_plan.rst
@@ -133,6 +133,34 @@ Prerequisites
- The set of logical cores to execute the packet forwarding task
- Mapping of the NIC RX queues to logical cores handling them.
+6. Set lpm table for IPv4 & IPv6 packet::
+
+ sed -i '/l3fwd_ipv4_route_array\[\].*{/,/^\}\;/c\\static struct l3fwd_ipv4_route l3fwd_ipv4_route_array[] = {\
+ {RTE_IPV4(100,10,0,0), 16, 1},\
+ {RTE_IPV4(100,20,0,0), 16, 1},\
+ {RTE_IPV4(100,30,0,0), 16, 0},\
+ {RTE_IPV4(100,40,0,0), 16, 0},\
+ {RTE_IPV4(100,50,0,0), 16, 1},\
+ {RTE_IPV4(100,60,0,0), 16, 1},\
+ {RTE_IPV4(100,70,0,0), 16, 0},\
+ {RTE_IPV4(100,80,0,0), 16, 0},\
+ };' examples/ip_fragmentation/main.c
+
+ sed -i '/l3fwd_ipv6_route_array\[\].*{/,/^\}\;/c\\static struct l3fwd_ipv6_route l3fwd_ipv6_route_array[] = {\
+ {{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 1},\
+ {{2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 1},\
+ {{3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 0},\
+ {{4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 0},\
+ {{5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 1},\
+ {{6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 1},\
+ {{7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 0},\
+ {{8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 0},\
+ };' examples/ip_fragmentation/main.c
+
+And re-compile examples/ip_fragmentation::
+
+ make -C examples/ip_fragmentation
+
Test Case 1: IP Fragmentation normal ip packet forward
======================================================
--
2.17.1
More information about the dts
mailing list