Skip to contentSkip to conversation

doc: update pcap documentation

PATCH Superseded Ferruh Yigit 2 participants 4 messages Jan 16, 2018 – Jan 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: update pcap documentation

Add note about PMD expects the network interfaces provided to be up, documented behavior to set expectations right.

Also added minor fix.

---
Cc: Vipin Varghese <[email protected]>
Cc: Michael Glynn <[email protected]>

---
 doc/guides/nics/pcap_ring.rst | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
doc/guides/nics/pcap_ring.rst +7 -1
index de47f68cf..b3b5cb49e 100644
@@ -5,7 +5,7 @@ Libpcap and Ring Based Poll Mode Drivers
 ========================================
 
 In addition to Poll Mode Drivers (PMDs) for physical and virtual hardware,
-the DPDK also includes two pure-software PMDs. These two drivers are:
+the DPDK also includes pure-software PMDs, two of these drivers are:
 
 *   A libpcap -based PMD (librte_pmd_pcap) that reads and writes packets using libpcap,
     - both from files on disk, as well as from physical NIC devices using standard Linux kernel drivers.
@@ -148,6 +148,12 @@ Otherwise, the first 512 packets from the input pcap file will be discarded by t
         --vdev 'net_pcap0,rx_pcap=file_rx.pcap,tx_pcap=file_tx.pcap' \
         -- --port-topology=chained --no-flush-rx
 
+Notes
+^^^^^
+
+The network interface provided to the PMD should be up, PMD will return an error if interface is down,
+and PMD itself won't change the status of the external network interface.
+
 
 Rings-based PMD
 ~~~~~~~~~~~~~~~
Signature · 1 line
2.14.3
Acked-by on v1 1/1
#1 lore raw
Quoted 23 lines

-----Original Message-----
From: Yigit, Ferruh
Sent: Tuesday, January 16, 2018 6:45 PM
To: Richardson, Bruce <[email protected]>; Mcnamara, John <[email protected]>; Kovacevic, Marko <[email protected]>
Cc: [email protected]; Yigit, Ferruh <[email protected]>; Varghese, Vipin <[email protected]>; Glynn, Michael J <[email protected]>
Subject: [PATCH] doc: update pcap documentation

Add note about PMD expects the network interfaces provided to be up, documented behavior to set expectations right.

Also added minor fix.

...

doc/guides/nics/pcap_ring.rst +5 -0
+Notes
+^^^^^
+
+The network interface provided to the PMD should be up, PMD will return
+an error if interface is down, and PMD itself won't change the status of
Quoted 1 line

the external network interface.

It would probably be a little better as an RST note directive, as used elsewhere in the doc. Like this:

.. note::

The network interface provided to the PMD should be up. The PMD will return an error if interface is down, and the PMD itself won't change the status of the external network interface.

But it isn't a big issue so:

#2 lore raw

PATCH v2 1/1 doc: update pcap documentation

In reply to Ferruh Yigit

Add note about PMD expects the network interfaces provided to be up, documented behavior to set expectations right.

Also added minor fix.

---
Cc: Vipin Varghese <[email protected]>
Cc: Michael Glynn <[email protected]>

v2: Convert "notes" subsection to ..note:: format

---
 doc/guides/nics/pcap_ring.rst | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
doc/guides/nics/pcap_ring.rst +7 -1
index de47f68cf..7fd063c94 100644
@@ -5,7 +5,7 @@ Libpcap and Ring Based Poll Mode Drivers
 ========================================
 
 In addition to Poll Mode Drivers (PMDs) for physical and virtual hardware,
-the DPDK also includes two pure-software PMDs. These two drivers are:
+the DPDK also includes pure-software PMDs, two of these drivers are:
 
 *   A libpcap -based PMD (librte_pmd_pcap) that reads and writes packets using libpcap,
     - both from files on disk, as well as from physical NIC devices using standard Linux kernel drivers.
@@ -148,6 +148,12 @@ Otherwise, the first 512 packets from the input pcap file will be discarded by t
         --vdev 'net_pcap0,rx_pcap=file_rx.pcap,tx_pcap=file_tx.pcap' \
         -- --port-topology=chained --no-flush-rx
 
+.. note::
+
+   The network interface provided to the PMD should be up. The PMD will return
+   an error if interface is down, and the PMD itself won't change the status
+   of the external network interface.
+
 
 Rings-based PMD
 ~~~~~~~~~~~~~~~
Signature · 1 line
2.14.3