[6/7] test_plans/ipfrag_test_plan:update test plan to sync with testsuite

Message ID 20200903095746.32389-7-weix.xie@intel.com (mailing list archive)
State Accepted
Headers
Series update test plan to sync with testsuite |

Commit Message

Xie, WeiX Sept. 3, 2020, 9:57 a.m. UTC
  Signed-off-by: Xie wei <weix.xie@intel.com>
---
 test_plans/ipfrag_test_plan.rst | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
  

Patch

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
 ======================================================