[v1] test_plans/packet_capture_test_plan.rst

Message ID 20200820100034.15541-1-yinan.wang@intel.com (mailing list archive)
State Accepted
Headers
Series [v1] test_plans/packet_capture_test_plan.rst |

Commit Message

Wang, Yinan Aug. 20, 2020, 10 a.m. UTC
  Add test prerequisites in test plan

Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
 test_plans/packet_capture_test_plan.rst | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
  

Comments

Tu, Lijuan Aug. 27, 2020, 1:59 a.m. UTC | #1
> Subject: [dts] [PATCH v1] test_plans/packet_capture_test_plan.rst
> 
> Add test prerequisites in test plan
> 
> Signed-off-by: Yinan Wang <yinan.wang@intel.com>

Applied
  

Patch

diff --git a/test_plans/packet_capture_test_plan.rst b/test_plans/packet_capture_test_plan.rst
index 05629d0..2f38b60 100644
--- a/test_plans/packet_capture_test_plan.rst
+++ b/test_plans/packet_capture_test_plan.rst
@@ -59,8 +59,8 @@  DPDK technical doc refer to::
 
    dpdk/doc/guides/tools/pdump.rst
 
-Prerequisites
-=============
+Test configuration
+==================
 
 2x NICs (2 full duplex ports per NIC) plugged into the available slots on a
 platform, another two nic ports are linked with cables.
@@ -83,6 +83,20 @@  note: portB0/portB1 are the binded ports.
       portB2/portB3 keep link up status and don't bind to dpdk driver.
       Except portB0/portB1, DUT should have other two ports on link up status
 
+Prerequisites
+=============
+
+Enable pcap lib in dpdk code and recompile::
+
+    --- a/config/common_base
+    +++ b/config/common_base
+    @@ -492,7 +492,7 @@ CONFIG_RTE_LIBRTE_PMD_NULL=y
+     #
+     # Compile software PMD backed by PCAP files
+     #
+    -CONFIG_RTE_LIBRTE_PMD_PCAP=n
+    +CONFIG_RTE_LIBRTE_PMD_PCAP=y
+
 Test cases
 ==========
 
@@ -539,4 +553,4 @@  steps:
     pkt=rdpcap('xxxx1.pcap')
     pkt[0].show2()
     pkt=rdpcap('xxxx2.pcap')
-    pkt[0].show2()
\ No newline at end of file
+    pkt[0].show2()