[v1] test_plans/packet_capture_test_plan.rst
Commit Message
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
> 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
@@ -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()