welcome doc for new nics and environments
cover welcome doc for new nics and environments
Too many things are included in the programmers guide.
I think it should cover only API and knowledge needed to make an application. That's why I suggest to move Xen and NICs doc outside.
Then it will be easier to add doc for a new environment or a new NIC. Note that drivers or device-related libs like KNI, vhost or bonding stay in the programmer's guide because they are more high-level than NICs drivers.
I suggest also to remove the HTML footer to be more vendor neutral and clearly welcome new contributors.
Thomas Monjalon (4):
doc: fix file attributes
doc: move Xen guide out of programmers guide
doc: nics guide
doc: remove copyright footer
MAINTAINERS | 15 +-
doc/guides/conf.py | 3 +-
doc/guides/index.rst | 2 +
.../driver_vm_emul_dev.rst => nics/e1000em.rst} | 0
doc/guides/{prog_guide => nics}/img/console.png | Bin
.../{prog_guide => nics}/img/fast_pkt_proc.png | Bin
.../{prog_guide => nics}/img/forward_stats.png | Bin
.../{prog_guide => nics}/img/host_vm_comms.png | Bin
.../img/host_vm_comms_qemu.png | Bin
.../{prog_guide => nics}/img/inter_vm_comms.png | Bin
.../{prog_guide => nics}/img/perf_benchmark.png | Bin
.../{prog_guide => nics}/img/single_port_nic.png | Bin
.../{prog_guide => nics}/img/vm_vm_comms.png | Bin
.../{prog_guide => nics}/img/vmxnet3_int.png | Bin
doc/guides/{prog_guide => nics}/img/vswitch_vm.png | Bin
doc/guides/{ => nics}/index.rst | 27 +--
.../intel_vf.rst} | 0
doc/guides/nics/ixgbe.rst | 184 +++++++++++++++++++++
.../pcap_ring.rst} | 0
.../virtio.rst} | 0
.../vmxnet3.rst} | 0
doc/guides/prog_guide/index.rst | 18 --
doc/guides/prog_guide/poll_mode_drv.rst | 152 -----------------
.../img/dpdk_xen_pkt_switch.png | Bin
doc/guides/{prog_guide => xen}/img/grant_refs.png | Bin
doc/guides/{prog_guide => xen}/img/grant_table.png | Bin
.../index.rst} | 2 +
27 files changed, 215 insertions(+), 188 deletions(-)
rename doc/guides/{prog_guide/driver_vm_emul_dev.rst => nics/e1000em.rst} (100%)
rename doc/guides/{prog_guide => nics}/img/console.png (100%)
rename doc/guides/{prog_guide => nics}/img/fast_pkt_proc.png (100%)
rename doc/guides/{prog_guide => nics}/img/forward_stats.png (100%)
rename doc/guides/{prog_guide => nics}/img/host_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/host_vm_comms_qemu.png (100%)
rename doc/guides/{prog_guide => nics}/img/inter_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/perf_benchmark.png (100%)
rename doc/guides/{prog_guide => nics}/img/single_port_nic.png (100%)
rename doc/guides/{prog_guide => nics}/img/vm_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/vmxnet3_int.png (100%)
rename doc/guides/{prog_guide => nics}/img/vswitch_vm.png (100%)
copy doc/guides/{ => nics}/index.rst (88%)
rename doc/guides/{prog_guide/i40e_ixgbe_igb_virt_func_drv.rst => nics/intel_vf.rst} (100%)
mode change 100755 => 100644
create mode 100644 doc/guides/nics/ixgbe.rst
rename doc/guides/{prog_guide/libpcap_ring_based_poll_mode_drv.rst => nics/pcap_ring.rst} (100%)
rename doc/guides/{prog_guide/poll_mode_drv_emulated_virtio_nic.rst => nics/virtio.rst} (100%)
rename doc/guides/{prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst => nics/vmxnet3.rst} (100%)
mode change 100755 => 100644 doc/guides/prog_guide/poll_mode_drv.rst
rename doc/guides/{prog_guide => xen}/img/dpdk_xen_pkt_switch.png (100%)
rename doc/guides/{prog_guide => xen}/img/grant_refs.png (100%)
rename doc/guides/{prog_guide => xen}/img/grant_table.png (100%)
rename doc/guides/{prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst => xen/index.rst} (99%)Signature · 1 line
2.2.2
A message that is not in the archive (sent off-list or not yet received): 1422747307-13792-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
RFC PATCH 1/4 doc: fix file attributes
--- doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst | 0 doc/guides/prog_guide/poll_mode_drv.rst | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst mode change 100755 => 100644 doc/guides/prog_guide/poll_mode_drv.rst
doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0 -0
doc/guides/prog_guide/poll_mode_drv.rst +0 -0
Signature · 1 line
2.2.2
RFC PATCH 2/4 doc: move Xen guide out of programmers guide
In reply to a message not in the archiveXen is an environment comparable to Linux and FreeBSD which have their own guide.
---
MAINTAINERS | 2 +-
doc/guides/index.rst | 1 +
doc/guides/prog_guide/index.rst | 1 -
doc/guides/{prog_guide => xen}/img/dpdk_xen_pkt_switch.png | Bin
doc/guides/{prog_guide => xen}/img/grant_refs.png | Bin
doc/guides/{prog_guide => xen}/img/grant_table.png | Bin
.../index.rst} | 2 ++
7 files changed, 4 insertions(+), 2 deletions(-)
rename doc/guides/{prog_guide => xen}/img/dpdk_xen_pkt_switch.png (100%)
rename doc/guides/{prog_guide => xen}/img/grant_refs.png (100%)
rename doc/guides/{prog_guide => xen}/img/grant_table.png (100%)
rename doc/guides/{prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst => xen/index.rst} (99%)MAINTAINERS +1 -1
@@ -117,7 +117,7 @@ F: lib/librte_mempool/rte_dom0_mempool.c F: lib/librte_pmd_xenvirt/ F: app/test-pmd/mempool_* F: examples/vhost_xen/ -F: doc/guides/prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst +F: doc/guides/prog_guide/xen/index.rst FreeBSD EAL (with overlaps) F: lib/librte_eal/bsdapp/Makefile
doc/guides/index.rst +1 -0
@@ -39,6 +39,7 @@ Contents: linux_gsg/index freebsd_gsg/index + xen/index prog_guide/index sample_app_ug/index testpmd_app_ug/index
doc/guides/prog_guide/index.rst +0 -1
@@ -53,7 +53,6 @@ Programmer's Guide ivshmem_lib poll_mode_drv_emulated_virtio_nic poll_mode_drv_paravirtual_vmxnets_nic - intel_dpdk_xen_based_packet_switch_sol libpcap_ring_based_poll_mode_drv link_bonding_poll_mode_drv_lib timer_lib
doc/guides/xen/img/dpdk_xen_pkt_switch.png renamed from doc/guides/prog_guide/img/dpdk_xen_pkt_switch.png +0 -0
doc/guides/xen/img/grant_refs.png renamed from doc/guides/prog_guide/img/grant_refs.png +0 -0
doc/guides/xen/img/grant_table.png renamed from doc/guides/prog_guide/img/grant_table.png +0 -0
doc/guides/xen/index.rst renamed from doc/guides/prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst +2 -0
@@ -31,6 +31,8 @@ DPDK Xen Based Packet-Switching Solution ======================================== +|today| + Introduction ------------
Signature · 1 line
2.2.2
RFC PATCH 3/4 doc: nics guide
In reply to a message not in the archiveCreate nics guide by moving chapters about Intel NICS.
---
MAINTAINERS | 13 +-
doc/guides/index.rst | 1 +
.../driver_vm_emul_dev.rst => nics/e1000em.rst} | 0
doc/guides/{prog_guide => nics}/img/console.png | Bin
.../{prog_guide => nics}/img/fast_pkt_proc.png | Bin
.../{prog_guide => nics}/img/forward_stats.png | Bin
.../{prog_guide => nics}/img/host_vm_comms.png | Bin
.../img/host_vm_comms_qemu.png | Bin
.../{prog_guide => nics}/img/inter_vm_comms.png | Bin
.../{prog_guide => nics}/img/perf_benchmark.png | Bin
.../{prog_guide => nics}/img/single_port_nic.png | Bin
.../{prog_guide => nics}/img/vm_vm_comms.png | Bin
.../{prog_guide => nics}/img/vmxnet3_int.png | Bin
doc/guides/{prog_guide => nics}/img/vswitch_vm.png | Bin
doc/guides/{ => nics}/index.rst | 28 ++--
.../intel_vf.rst} | 0
doc/guides/nics/ixgbe.rst | 184 +++++++++++++++++++++
.../pcap_ring.rst} | 0
.../virtio.rst} | 0
.../vmxnet3.rst} | 0
doc/guides/prog_guide/index.rst | 17 --
doc/guides/prog_guide/poll_mode_drv.rst | 152 -----------------
22 files changed, 209 insertions(+), 186 deletions(-)
rename doc/guides/{prog_guide/driver_vm_emul_dev.rst => nics/e1000em.rst} (100%)
rename doc/guides/{prog_guide => nics}/img/console.png (100%)
rename doc/guides/{prog_guide => nics}/img/fast_pkt_proc.png (100%)
rename doc/guides/{prog_guide => nics}/img/forward_stats.png (100%)
rename doc/guides/{prog_guide => nics}/img/host_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/host_vm_comms_qemu.png (100%)
rename doc/guides/{prog_guide => nics}/img/inter_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/perf_benchmark.png (100%)
rename doc/guides/{prog_guide => nics}/img/single_port_nic.png (100%)
rename doc/guides/{prog_guide => nics}/img/vm_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/vmxnet3_int.png (100%)
rename doc/guides/{prog_guide => nics}/img/vswitch_vm.png (100%)
copy doc/guides/{ => nics}/index.rst (88%)
rename doc/guides/{prog_guide/i40e_ixgbe_igb_virt_func_drv.rst => nics/intel_vf.rst} (100%)
create mode 100644 doc/guides/nics/ixgbe.rst
rename doc/guides/{prog_guide/libpcap_ring_based_poll_mode_drv.rst => nics/pcap_ring.rst} (100%)
rename doc/guides/{prog_guide/poll_mode_drv_emulated_virtio_nic.rst => nics/virtio.rst} (100%)
rename doc/guides/{prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst => nics/vmxnet3.rst} (100%)MAINTAINERS +9 -4
@@ -190,16 +190,21 @@ F: lib/librte_pmd_enic/ Intel e1000 F: lib/librte_pmd_e1000/ +F: doc/guides/nics/e1000em.rst +F: doc/guides/nics/intel_vf.rst Intel ixgbe F: lib/librte_pmd_ixgbe/ +F: doc/guides/nics/ixgbe.rst +F: doc/guides/nics/intel_vf.rst Intel i40e F: lib/librte_pmd_i40e/ +F: doc/guides/nics/intel_vf.rst RedHat virtio F: lib/librte_pmd_virtio/ -F: doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +F: doc/guides/nics/virtio.rst F: lib/librte_vhost/ F: doc/guides/prog_guide/vhost_lib.rst F: examples/vhost/
@@ -207,15 +212,15 @@ F: doc/guides/sample_app_ug/vhost.rst VMware vmxnet3 F: lib/librte_pmd_vmxnet3/ -F: doc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst +F: doc/guides/nics/vmxnet3.rst PCAP PMD F: lib/librte_pmd_pcap/ -F: doc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rst +F: doc/guides/nics/pcap_ring.rst Ring PMD F: lib/librte_pmd_ring/ -F: doc/guides/prog_guide/ring_lib.rst +F: doc/guides/nics/pcap_ring.rst F: app/test/test_pmd_ring.c
doc/guides/index.rst +1 -0
@@ -41,6 +41,7 @@ Contents: freebsd_gsg/index xen/index prog_guide/index + nics/index sample_app_ug/index testpmd_app_ug/index rel_notes/index
doc/guides/nics/e1000em.rst renamed from doc/guides/prog_guide/driver_vm_emul_dev.rst +0 -0
doc/guides/nics/img/console.png renamed from doc/guides/prog_guide/img/console.png +0 -0
doc/guides/nics/img/fast_pkt_proc.png renamed from doc/guides/prog_guide/img/fast_pkt_proc.png +0 -0
doc/guides/nics/img/forward_stats.png renamed from doc/guides/prog_guide/img/forward_stats.png +0 -0
doc/guides/nics/img/host_vm_comms.png renamed from doc/guides/prog_guide/img/host_vm_comms.png +0 -0
doc/guides/nics/img/host_vm_comms_qemu.png renamed from doc/guides/prog_guide/img/host_vm_comms_qemu.png +0 -0
doc/guides/nics/img/inter_vm_comms.png renamed from doc/guides/prog_guide/img/inter_vm_comms.png +0 -0
doc/guides/nics/img/perf_benchmark.png renamed from doc/guides/prog_guide/img/perf_benchmark.png +0 -0
doc/guides/nics/img/single_port_nic.png renamed from doc/guides/prog_guide/img/single_port_nic.png +0 -0
doc/guides/nics/img/vm_vm_comms.png renamed from doc/guides/prog_guide/img/vm_vm_comms.png +0 -0
doc/guides/nics/img/vmxnet3_int.png renamed from doc/guides/prog_guide/img/vmxnet3_int.png +0 -0
doc/guides/nics/img/vswitch_vm.png renamed from doc/guides/prog_guide/img/vswitch_vm.png +0 -0
doc/guides/nics/index.rst renamed from doc/guides/index.rst +15 -13
@@ -28,19 +28,21 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -DPDK documentation -================== +Network Interface Controller Drivers +==================================== -Contents: +|today| + + +**Contents** .. toctree:: - :maxdepth: 1 - :titlesonly: - - linux_gsg/index - freebsd_gsg/index - xen/index - prog_guide/index - sample_app_ug/index - testpmd_app_ug/index - rel_notes/index + :maxdepth: 3 + :numbered: + + e1000em + ixgbe + intel_vf + virtio + vmxnet3 + pcap_ring
doc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0 -0
doc/guides/nics/ixgbe.rst new file +184 -0
184 lines not on this page · raw message
doc/guides/nics/pcap_ring.rst renamed from doc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rst +0 -0
doc/guides/nics/virtio.rst renamed from doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +0 -0
doc/guides/nics/vmxnet3.rst renamed from doc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst +0 -0
doc/guides/prog_guide/index.rst +0 -17
@@ -48,12 +48,7 @@ Programmer's Guide mempool_lib mbuf_lib poll_mode_drv - i40e_ixgbe_igb_virt_func_drv - driver_vm_emul_dev ivshmem_lib - poll_mode_drv_emulated_virtio_nic - poll_mode_drv_paravirtual_vmxnets_nic - libpcap_ring_based_poll_mode_drv link_bonding_poll_mode_drv_lib timer_lib hash_lib
@@ -101,18 +96,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOV Mode <pg_figure_10>` - -:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing <pg_figure_12>` - -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhost Back End <pg_figure_14>` - -:ref:`Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>` - :ref:`Figure 16. Memory Sharing inthe Intel® DPDK Multi-process Sample Application <pg_figure_16>` :ref:`Figure 17. Components of an Intel® DPDK KNI Application <pg_figure_17>`
doc/guides/prog_guide/poll_mode_drv.rst +0 -152
155 lines not on this page · raw message
Signature · 1 line
2.2.2
A message that is not in the archive (sent off-list or not yet received): 1422747307-13792-4-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
Re: [RFC PATCH 3/4] doc: nics guide
Quoted 208 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Saturday, January 31, 2015 11:35 PM
To: [email protected]
Cc: Butler, Siobhan A; Iremonger, Bernard
Subject: [RFC PATCH 3/4] doc: nics guideCreate nics guide by moving chapters about Intel NICS.
Signed-off-by Thomas Monjalon <[email protected]>--- MAINTAINERS | 13 +- doc/guides/index.rst | 1 + .../driver_vm_emul_dev.rst => nics/e1000em.rst} | 0 doc/guides/{prog_guide => nics}/img/console.png | Bin .../{prog_guide => nics}/img/fast_pkt_proc.png | Bin .../{prog_guide => nics}/img/forward_stats.png | Bin .../{prog_guide => nics}/img/host_vm_comms.png | Bin .../img/host_vm_comms_qemu.png | Bin .../{prog_guide => nics}/img/inter_vm_comms.png | Bin .../{prog_guide => nics}/img/perf_benchmark.png | Bin .../{prog_guide => nics}/img/single_port_nic.png | Bin .../{prog_guide => nics}/img/vm_vm_comms.png | Bin .../{prog_guide => nics}/img/vmxnet3_int.png | Bin doc/guides/{prog_guide => nics}/img/vswitch_vm.png | Bin doc/guides/{ => nics}/index.rst | 28 ++-- .../intel_vf.rst} | 0 doc/guides/nics/ixgbe.rst | 184 +++++++++++++++++++++ .../pcap_ring.rst} | 0 .../virtio.rst} | 0 .../vmxnet3.rst} | 0 doc/guides/prog_guide/index.rst | 17 -- doc/guides/prog_guide/poll_mode_drv.rst | 152 ----------------- 22 files changed, 209 insertions(+), 186 deletions(-) rename
doc/guides/{prog_guide/driver_vm_emul_dev.rst=>nics/e1000em.rst} (100%) rename doc/guides/{prog_guide => nics}/img/console.png (100%) rename doc/guides/{prog_guide => nics}/img/fast_pkt_proc.png (100%) rename doc/guides/{prog_guide => nics}/img/forward_stats.png (100%) rename doc/guides/{prog_guide => nics}/img/host_vm_comms.png (100%) rename doc/guides/{prog_guide => nics}/img/host_vm_comms_qemu.png (100%) rename doc/guides/{prog_guide => nics}/img/inter_vm_comms.png (100%) rename doc/guides/{prog_guide => nics}/img/perf_benchmark.png (100%) rename doc/guides/{prog_guide => nics}/img/single_port_nic.png (100%) rename doc/guides/{prog_guide => nics}/img/vm_vm_comms.png (100%) rename doc/guides/{prog_guide => nics}/img/vmxnet3_int.png (100%) rename doc/guides/{prog_guide => nics}/img/vswitch_vm.png (100%) copy doc/guides/{ =>nics}/index.rst(88%) renamedoc/guides/{prog_guide/i40e_ixgbe_igb_virt_func_drv.rst=>nics/intel_vf.rst} (100%) create mode 100644doc/guides/nics/ixgbe.rstrenamedoc/guides/{prog_guide/libpcap_ring_based_poll_mode_drv.rst=>nics/pcap_ring.rst} (100%) renamedoc/guides/{prog_guide/poll_mode_drv_emulated_virtio_nic.rst=>nics/virtio.rst} (100%) renamedoc/guides/{prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst=>nics/vmxnet3.rst} (100%)MAINTAINERS +9
-4@@ -190,16 +190,21 @@ F: lib/librte_pmd_enic/ Intel e1000 F: lib/librte_pmd_e1000/ +F: doc/guides/nics/e1000em.rst +F: doc/guides/nics/intel_vf.rst Intel ixgbe F: lib/librte_pmd_ixgbe/ +F: doc/guides/nics/ixgbe.rst +F: doc/guides/nics/intel_vf.rst Intel i40e F: lib/librte_pmd_i40e/ +F: doc/guides/nics/intel_vf.rst RedHat virtio F: lib/librte_pmd_virtio/ -F: doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +F: doc/guides/nics/virtio.rst F: lib/librte_vhost/ F: doc/guides/prog_guide/vhost_lib.rst F: examples/vhost/@@ -207,15 +212,15 @@ F: doc/guides/sample_app_ug/vhost.rst VMware vmxnet3 F: lib/librte_pmd_vmxnet3/ -F: doc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst +F: doc/guides/nics/vmxnet3.rst PCAP PMD F: lib/librte_pmd_pcap/ -F: doc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rst +F: doc/guides/nics/pcap_ring.rst Ring PMD F: lib/librte_pmd_ring/ -F: doc/guides/prog_guide/ring_lib.rst +F: doc/guides/nics/pcap_ring.rst F: app/test/test_pmd_ring.cdoc/guides/index.rst +1
-0@@ -41,6 +41,7 @@ Contents: freebsd_gsg/index xen/index prog_guide/index + nics/index sample_app_ug/index testpmd_app_ug/index rel_notes/indexdoc/guides/nics/e1000em.rst renamed from doc/guides/prog_guide/driver_vm_emul_dev.rst +0
-0doc/guides/nics/img/console.png diff --git renamed from doc/guides/prog_guide/img/console.png +0
-0a/doc/guides/prog_guide/img/fast_pkt_proc.png b/doc/guides/nics/img/fast_pkt_proc.png similarity index 100%
rename from doc/guides/prog_guide/img/fast_pkt_proc.png
rename to doc/guides/nics/img/fast_pkt_proc.pngdoc/guides/nics/img/forward_stats.png renamed from doc/guides/prog_guide/img/forward_stats.png +0
-0doc/guides/nics/img/host_vm_comms.png renamed from doc/guides/prog_guide/img/host_vm_comms.png +0
-0doc/guides/nics/img/host_vm_comms_qemu.png renamed from doc/guides/prog_guide/img/host_vm_comms_qemu.png +0
-0doc/guides/nics/img/inter_vm_comms.png renamed from doc/guides/prog_guide/img/inter_vm_comms.png +0
-0doc/guides/nics/img/perf_benchmark.png renamed from doc/guides/prog_guide/img/perf_benchmark.png +0
-0doc/guides/nics/img/single_port_nic.png renamed from doc/guides/prog_guide/img/single_port_nic.png +0
-0doc/guides/nics/img/vm_vm_comms.png renamed from doc/guides/prog_guide/img/vm_vm_comms.png +0
-0doc/guides/nics/img/vmxnet3_int.png renamed from doc/guides/prog_guide/img/vmxnet3_int.png +0
-0doc/guides/nics/img/vswitch_vm.png renamed from doc/guides/prog_guide/img/vswitch_vm.png +0
-0doc/guides/nics/index.rst similarity index 88% copy from renamed from doc/guides/index.rst +0
-0
doc/guides/index.rstcopy todoc/guides/nics/index.rstindex 53f1be1..b9bd56a 100644doc/guides/nics/index.rst renamed from doc/guides/index.rst +15
-13@@ -28,19 +28,21 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -DPDK documentation -================== +Network Interface Controller Drivers +==================================== -Contents: +|today| + + +**Contents** .. toctree:: - :maxdepth: 1 - :titlesonly: - - linux_gsg/index - freebsd_gsg/index - xen/index - prog_guide/index - sample_app_ug/index - testpmd_app_ug/index - rel_notes/index + :maxdepth: 3 + :numbered: + + e1000em + ixgbe + intel_vf + virtio + vmxnet3 + pcap_ringdoc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0doc/guides/nics/ixgbe.rst new file mode 100644 index renamed from doc/guides/nics/ixgbe.rst +0
-00000000..d2c124e
doc/guides/nics/ixgbe.rst line 2
Quoted 2 lines
doc/guides/nics/ixgbe.rst new file +2
-0@@ -0,0 +1,184 @@ +.. BSD LICENSE + Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
Hi Thomas,
2014 should move to 2015
Quoted 231 lines
doc/guides/nics/ixgbe.rst new file +37
-0+ All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +IXGBE Driver +============ + +Vector PMD for IXGBE +-------------------- + +Vector PMD uses Intel® SIMD instructions to optimize packet I/O. +It improves load/store bandwidth efficiency of L1 data cache by using a wider SSE/AVX register 1 (1). +The wider register gives space to hold multiple packet buffers so as to save instruction number whenprocessing bulk of packets.
doc/guides/nics/ixgbe.rst new file +6
-0+ +There is no change to PMD API. The RX/TX handler are the only two entries for vPMD packet I/O. +They are transparently registered at runtime RX/TX execution if all condition checks pass. + +1. To date, only an SSE version of IX GBE vPMD is available. + To ensure that vPMD is in the binary code, ensure that the option
CONFIG_RTE_IXGBE_INC_VECTOR=yis in the configure file.doc/guides/nics/ixgbe.rst new file +15
-0+ +Some constraints apply as pre-conditions for specific optimizations on bulk packet transfers. +The following sections explain RX and TX constraints in the vPMD. + +RX Constraints +~~~~~~~~~~~~~~ + +Prerequisites and Pre-conditions +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The following prerequisites apply: + +* To enable vPMD to work for RX, bulk allocation for Rx must be allowed. + +* The RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=y configuration MACRO must be set beforecompiling the code.
doc/guides/nics/ixgbe.rst new file +18
-0+ +Ensure that the following pre-conditions are satisfied: + +* rxq->rx_free_thresh >= RTE_PMD_IXGBE_RX_MAX_BURST + +* rxq->rx_free_thresh < rxq->nb_rx_desc + +* (rxq->nb_rx_desc % rxq->rx_free_thresh) == 0 + +* rxq->nb_rx_desc < (IXGBE_MAX_RING_DESC - RTE_PMD_IXGBE_RX_MAX_BURST) + +These conditions are checked in the code. + +Scattered packets are not supported in this mode. +If an incoming packet is greater than the maximum acceptable length of +one "mbuf" data size (by default, the size is 2 KB), vPMD for RX would be disabled. + +By default, IXGBE_MAX_RING_DESC is set to 4096 and RTE_PMD_IXGBE_RX_MAX_BURST is set to32.
doc/guides/nics/ixgbe.rst new file +42
-0+ +Feature not Supported by RX Vector PMD +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Some features are not supported when trying to increase the throughput in vPMD. +They are: + +* IEEE1588 + +* FDIR + +* Header split + +* RX checksum off load + +Other features are supported using optional MACRO configuration. They include: + +* HW VLAN strip + +* HW extend dual VLAN + +* Enabled by RX_OLFLAGS (RTE_IXGBE_RX_OLFLAGS_DISABLE=n) + + +To guarantee the constraint, configuration flags in dev_conf.rxmode will be checked: + +* hw_vlan_strip + +* hw_vlan_extend + +* hw_ip_checksum + +* header_split + +* dev_conf + +fdir_conf->mode will also be checked. + +RX Burst Size +^^^^^^^^^^^^^ + +As vPMD is focused on high throughput, it assumes that the RX burst size is equal to or greater than32 per burst.
doc/guides/nics/ixgbe.rst new file +55
-0+It returns zero if using nb_pkt < 32 as the expected packet number in the receive handler. + +TX Constraint +~~~~~~~~~~~~~ + +Prerequisite +^^^^^^^^^^^^ + +The only prerequisite is related to tx_rs_thresh. +The tx_rs_thresh value must be greater than or equal to +RTE_PMD_IXGBE_TX_MAX_BURST, but less or equal to RTE_IXGBE_TX_MAX_FREE_BUF_SZ. +Consequently, by default the tx_rs_thresh value is in the range 32 to 64. + +Feature not Supported by RX Vector PMD +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +TX vPMD only works when txq_flags is set to IXGBE_SIMPLE_FLAGS. + +This means that it does not support TX multi-segment, VLAN offload and TX csum offload. +The following MACROs are used for these three features: + +* ETH_TXQ_FLAGS_NOMULTSEGS + +* ETH_TXQ_FLAGS_NOVLANOFFL + +* ETH_TXQ_FLAGS_NOXSUMSCTP + +* ETH_TXQ_FLAGS_NOXSUMUDP + +* ETH_TXQ_FLAGS_NOXSUMTCP + + +Sample Application Notes +~~~~~~~~~~~~~~~~~~~~~~~~ + +testpmd +^^^^^^^ + +By default, using CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=n: + +.. code-block:: console + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i + --burst=32 --rxfreet=32 --mbcache=250 --txpt=32 --rxht=8 --rxwt=0 + --txfreet=32 --txrst=32 --txqflags=0xf01 + +When CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=y, better performance can be achieved: + +.. code-block:: console + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i + --burst=32 --rxfreet=32 --mbcache=250 --txpt=32 --rxht=8 --rxwt=0 + --txfreet=32 --txrst=32 --txqflags=0xf01 --disable-hw-vlan + +If scatter gather lists are not required, set CONFIG_RTE_MBUF_SCATTER_GATHER=n for betterthroughput.
doc/guides/nics/ixgbe.rst new file +13
-0+ +l3fwd +^^^^^ + +When running l3fwd with vPMD, there is one thing to note. +In the configuration, ensure that port_conf.rxmode.hw_ip_checksum=0. +Otherwise, by default, RX vPMD is disabled. + +load_balancer +^^^^^^^^^^^^^ + +As in the case of l3fwd, set configure port_conf.rxmode.hw_ip_checksum=0 to enable vPMD. +In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoidusing the default burst size of 144.
(quoted diff) +0
-0
b/doc/guides/nics/pcap_ring.rstsimilarity index 100% rename fromdoc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rstrename todoc/guides/nics/pcap_ring.rst(quoted diff) +0
-0
b/doc/guides/nics/virtio.rstsimilarity index 100% rename fromdoc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rstrename todoc/guides/nics/virtio.rst(quoted diff) +0
-0
b/doc/guides/nics/vmxnet3.rstsimilarity index 100% rename fromdoc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rstrename todoc/guides/nics/vmxnet3.rstdoc/guides/prog_guide/index.rst index renamed from doc/guides/prog_guide/index.rst +0
-0cdc7ea0..4dec828 100644
doc/guides/prog_guide/index.rst +0
-10@@ -48,12 +48,7 @@ Programmer's Guide mempool_lib mbuf_lib poll_mode_drv - i40e_ixgbe_igb_virt_func_drv - driver_vm_emul_dev ivshmem_lib - poll_mode_drv_emulated_virtio_nic - poll_mode_drv_paravirtual_vmxnets_nic - libpcap_ring_based_poll_mode_drv link_bonding_poll_mode_drv_lib timer_lib hash_lib@@ -101,18 +96,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOV Mode <pg_figure_10>` - -:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing <pg_figure_12>`
doc/guides/prog_guide/index.rst Programmer's Guide · line 101
Quoted 10 lines
doc/guides/prog_guide/index.rst +0
-7- -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhost Back End <pg_figure_14>` - -:ref:`Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>` - :ref:`Figure 16. Memory Sharing inthe Intel® DPDK Multi-process Sample Application <pg_figure_16>` :ref:`Figure 17. Components of an Intel® DPDK KNI Application <pg_figure_17>` diff --git
References to Figures 9 to 17 have been removed have they been reinstated somewhere else ?
Quoted 167 lines
a/doc/guides/prog_guide/poll_mode_drv.rstb/doc/guides/prog_guide/poll_mode_drv.rstindex e9e1132..b8b2d1a 100644doc/guides/prog_guide/poll_mode_drv.rst +0
-7@@ -288,155 +288,3 @@ Ethernet Device API ~~~~~~~~~~~~~~~~~~~ The Ethernet device API exported by the Ethernet PMDs is described in the *DPDK API Reference*. - -Vector PMD for IXGBE --------------------- - -Vector PMD uses Intel® SIMD instructions to optimize packet I/O. -It improves load/store bandwidth efficiency of L1 data cache by using a wider SSE/AVX register 1 (1). -The wider register gives space to hold multiple packet buffers so as to save instruction number whenprocessing bulk of packets.
doc/guides/prog_guide/poll_mode_drv.rst +0
-6- -There is no change to PMD API. The RX/TX handler are the only two entries for vPMD packet I/O. -They are transparently registered at runtime RX/TX execution if all condition checks pass. - -1. To date, only an SSE version of IX GBE vPMD is available. - To ensure that vPMD is in the binary code, ensure that the option
CONFIG_RTE_IXGBE_INC_VECTOR=yis in the configure file.doc/guides/prog_guide/poll_mode_drv.rst +0
-15- -Some constraints apply as pre-conditions for specific optimizations on bulk packet transfers. -The following sections explain RX and TX constraints in the vPMD. - -RX Constraints -~~~~~~~~~~~~~~ - -Prerequisites and Pre-conditions -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -The following prerequisites apply: - -* To enable vPMD to work for RX, bulk allocation for Rx must be allowed. - -* The RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=y configuration MACRO must be set beforecompiling the code.
doc/guides/prog_guide/poll_mode_drv.rst +0
-15- -Ensure that the following pre-conditions are satisfied: - -* rxq->rx_free_thresh >= RTE_PMD_IXGBE_RX_MAX_BURST - -* rxq->rx_free_thresh < rxq->nb_rx_desc - -* (rxq->nb_rx_desc % rxq->rx_free_thresh) == 0 - -* rxq->nb_rx_desc < (IXGBE_MAX_RING_DESC - RTE_PMD_IXGBE_RX_MAX_BURST) - -These conditions are checked in the code. - -Scattered packets are not supported in this mode. -If an incoming packet is greater than the maximum acceptable length of one "mbuf" data size (bydefault, the size is 2 KB), -vPMD for RX would be disabled.
doc/guides/prog_guide/poll_mode_drv.rst +0
-2- -By default, IXGBE_MAX_RING_DESC is set to 4096 and RTE_PMD_IXGBE_RX_MAX_BURST is set to32.
doc/guides/prog_guide/poll_mode_drv.rst +0
-42- -Feature not Supported by RX Vector PMD -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Some features are not supported when trying to increase the throughput in vPMD. -They are: - -* IEEE1588 - -* FDIR - -* Header split - -* RX checksum off load - -Other features are supported using optional MACRO configuration. They include: - -* HW VLAN strip - -* HW extend dual VLAN - -* Enabled by RX_OLFLAGS (RTE_IXGBE_RX_OLFLAGS_DISABLE=n) - - -To guarantee the constraint, configuration flags in dev_conf.rxmode will be checked: - -* hw_vlan_strip - -* hw_vlan_extend - -* hw_ip_checksum - -* header_split - -* dev_conf - -fdir_conf->mode will also be checked. - -RX Burst Size -^^^^^^^^^^^^^ - -As vPMD is focused on high throughput, it assumes that the RX burst size is equal to or greater than32 per burst.
doc/guides/prog_guide/poll_mode_drv.rst +0
-10-It returns zero if using nb_pkt < 32 as the expected packet number in the receive handler. - -TX Constraint -~~~~~~~~~~~~~ - -Prerequisite -^^^^^^^^^^^^ - -The only prerequisite is related to tx_rs_thresh. -The tx_rs_thresh value must be greater than or equal to RTE_PMD_IXGBE_TX_MAX_BURST, -but lessor equal to
RTE_IXGBE_TX_MAX_FREE_BUF_SZ.doc/guides/prog_guide/poll_mode_drv.rst +0
-42-Consequently, by default the tx_rs_thresh value is in the range 32 to 64. - -Feature not Supported by RX Vector PMD -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -TX vPMD only works when txq_flags is set to IXGBE_SIMPLE_FLAGS. - -This means that it does not support TX multi-segment, VLAN offload and TX csum offload. -The following MACROs are used for these three features: - -* ETH_TXQ_FLAGS_NOMULTSEGS - -* ETH_TXQ_FLAGS_NOVLANOFFL - -* ETH_TXQ_FLAGS_NOXSUMSCTP - -* ETH_TXQ_FLAGS_NOXSUMUDP - -* ETH_TXQ_FLAGS_NOXSUMTCP - - -Sample Application Notes -~~~~~~~~~~~~~~~~~~~~~~~~ - -testpmd -^^^^^^^ - -By default, using CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=n: - -.. code-block:: console - - ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i --burst=32 --rxfreet=32 --mbcache=250 - -txpt=32 --rxht=8 --rxwt=0 --txfreet=32 --txrst=32 --txqflags=0xf01 - -When CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=y, better performance can be achieved: - -.. code-block:: console - - ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i --burst=32 --rxfreet=32 --mbcache=250 - -txpt=32 --rxht=8 --rxwt=0 --txfreet=32 --txrst=32 --txqflags=0xf01 --disable-hw-vlan - -If scatter gather lists are not required, set CONFIG_RTE_MBUF_SCATTER_GATHER=n for betterthroughput.
doc/guides/prog_guide/poll_mode_drv.rst +0
-13- -l3fwd -^^^^^ - -When running l3fwd with vPMD, there is one thing to note. -In the configuration, ensure that port_conf.rxmode.hw_ip_checksum=0. -Otherwise, by default, RX vPMD is disabled. - -load_balancer -^^^^^^^^^^^^^ - -As in the case of l3fwd, set configure port_conf.rxmode.hw_ip_checksum=0 to enable vPMD. -In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoid
Quoted 3 lines
using the default burst size of 144.
--
2.2.2
Regards,
Bernard.
A message that is not in the archive (sent off-list or not yet received): 8CEF83825BEC744B83065625E567D7C2049DCC0B-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org
Re: [RFC PATCH 3/4] doc: nics guide
Hi Bernard,
Please try to remove useless lines when answering. I'm digging in the message to find your comments ;)
2015-02-02 14:11, Iremonger, Bernard:
Quoted 9 lines
From: Thomas Monjalon [mailto:[email protected]]
doc/guides/nics/ixgbe.rst line 2
Quoted 5 lines
doc/guides/nics/ixgbe.rst new file +2
-0@@ -0,0 +1,184 @@ +.. BSD LICENSE + Copyright(c) 2010-2014 Intel Corporation. All rights reserved.Hi Thomas,
2014 should move to 2015
I think I should keep it as is because I'm only moving sections and I don't have any right to change an Intel copyright.
Quoted 33 lines
Quoted 33 lines
doc/guides/prog_guide/index.rst +0
-17@@ -48,12 +48,7 @@ Programmer's Guide mempool_lib mbuf_lib poll_mode_drv - i40e_ixgbe_igb_virt_func_drv - driver_vm_emul_dev ivshmem_lib - poll_mode_drv_emulated_virtio_nic - poll_mode_drv_paravirtual_vmxnets_nic - libpcap_ring_based_poll_mode_drv link_bonding_poll_mode_drv_lib timer_lib hash_lib@@ -101,18 +96,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOV Mode <pg_figure_10>` - -:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing <pg_figure_12>` - -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhost Back End <pg_figure_14>` - -:ref:`Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>` - :ref:`Figure 16. Memory Sharing inthe Intel® DPDK Multi-process Sample Application <pg_figure_16>`
Quoted 3 lines
doc/guides/prog_guide/index.rst Programmer's Guide · line 101
Quoted 1 line
doc/guides/prog_guide/index.rst +0
-0:ref:`Figure 17. Components of an Intel® DPDK KNI Application <pg_figure_17>` diff --gitReferences to Figures 9 to 17 have been removed have they been reinstated somewhere else ?
Figures 10 to 15 moved in doc/guides/nics/img.
I didn't re-create the references in doc/guides/nics/index.rst nor renumbered the ones in doc/guides/prog_guide/index.rst.
I think these manual numberings should be removed as it is a pain to update. Actually I don't really understand what is the usage of such references. So I suggest to completely remove them or generate them with a script.
Thanks
Signature · 1 line
Thomas
Re: [RFC PATCH 3/4] doc: nics guide
Quoted 5 lines
Hi Bernard,
Please try to remove useless lines when answering. I'm digging in the message to find your comments ;)
Hi Thomas,
Ok, will do in future.
Quoted 10 lines
2015-02-02 14:11, Iremonger, Bernard:
Quoted 8 lines
From: Thomas Monjalon [mailto:[email protected]]
doc/guides/nics/ixgbe.rst line 2
Quoted 5 lines
doc/guides/nics/ixgbe.rst new file +2
-0@@ -0,0 +1,184 @@ +.. BSD LICENSE + Copyright(c) 2010-2014 Intel Corporation. All rights reserved.Hi Thomas,
Quoted 4 lines
Quoted 1 line
2014 should move to 2015
I think I should keep it as is because I'm only moving sections and I don't have any right to change an Intel copyright.
Ok.
Quoted 30 lines
Quoted 25 lines
Quoted 25 lines
doc/guides/prog_guide/index.rst +0
-1@@ -101,18 +96,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOVMode <pg_figure_10>`
doc/guides/prog_guide/index.rst +0
-8- -:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing <pg_figure_12>` - -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhost BackEnd <pg_figure_14>`
-
-:ref:Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>
-
:ref:`Figure 16. Memory Sharing inthe Intel(r) DPDK Multi-process
Sample Application <pg_figure_16>`Quoted 4 lines
Quoted 2 lines
:ref:`Figure 17. Components of an Intel(r) DPDK KNI Application
<pg_figure_17>` diff --gitReferences to Figures 9 to 17 have been removed have they been reinstated somewhere else ?
Quoted 4 lines
Figures 10 to 15 moved in doc/guides/nics/img.
I didn't re-create the references in
doc/guides/nics/index.rstnor renumbered the ones indoc/guides/prog_guide/index.rst.
It would be better to recreate the references in doc/guides/nics/index.rst rather than just delete them. I don't think there is any need to renumber them.
The references are global across documents and must be unique.
Quoted 3 lines
I think these manual numberings should be removed as it is a pain to update. Actually I don't really understand what is the usage of such references. So I suggest to completely remove them or generate them with a script.
These references were in the original 1.7 MSWord docs.
When reading a document it enabled the reader to jump to another section and jump back, they worked in the HTML docs too. I think they should be retained.
Quoted 4 lines
Thanks
--
Thomas
Regards
Bernard.
A message that is not in the archive (sent off-list or not yet received): 8CEF83825BEC744B83065625E567D7C2049DCC4E-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org
Re: [RFC PATCH 3/4] doc: nics guide
2015-02-02 14:59, Iremonger, Bernard:
Quoted 30 lines
Quoted 30 lines
2015-02-02 14:11, Iremonger, Bernard:
Quoted 28 lines
Quoted 24 lines
doc/guides/prog_guide/index.rst +0
-1@@ -101,18 +96,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOVMode <pg_figure_10>`
doc/guides/prog_guide/index.rst +0
-8- -:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing <pg_figure_12>` - -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhost BackEnd <pg_figure_14>`
-
-:ref:Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>
-
:ref:`Figure 16. Memory Sharing inthe Intel(r) DPDK Multi-process
Sample Application <pg_figure_16>`Quoted 2 lines
:ref:`Figure 17. Components of an Intel(r) DPDK KNI Application
<pg_figure_17>` diff --gitReferences to Figures 9 to 17 have been removed have they been reinstated somewhere else ?
Quoted 8 lines
Quoted 4 lines
Figures 10 to 15 moved in doc/guides/nics/img.
I didn't re-create the references in
doc/guides/nics/index.rstnor renumbered the ones indoc/guides/prog_guide/index.rst.It would be better to recreate the references in
doc/guides/nics/index.rstrather than just delete them. I don't think there is any need to renumber them.
The references are global across documents and must be unique.
No the references are not really uniques:
- Figures in doc/guides/sample_app_ug/index.rst start from 1 to 17.
- Figures in doc/guides/prog_guide/index.rst start from 1 to 39.
When adding a new new figure in a document, we must renumber them.
Quoted 8 lines
Quoted 3 lines
I think these manual numberings should be removed as it is a pain to update. Actually I don't really understand what is the usage of such references. So I suggest to completely remove them or generate them with a script.
These references were in the original 1.7 MSWord docs.
When reading a document it enabled the reader to jump to another section and jump back, they worked in the HTML docs too.
I think they should be retained.
Are you speaking about the figure references at the bottom of this page?
http://dpdk.org/doc/guides/prog_guide
It doesn't really help for browsing.
Signature · 1 line
Thomas
Re: [RFC PATCH 3/4] doc: nics guide
Quoted 45 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Monday, February 2, 2015 5:12 PM
To: Iremonger, Bernard
Cc: [email protected]; Butler, Siobhan A
Subject: Re: [RFC PATCH 3/4] doc: nics guide2015-02-02 14:59, Iremonger, Bernard:
Quoted 31 lines
Quoted 31 lines
2015-02-02 14:11, Iremonger, Bernard:
Quoted 29 lines
Quoted 25 lines
doc/guides/prog_guide/index.rst +0
-1@@ -101,18 +96,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOVMode <pg_figure_10>`
doc/guides/prog_guide/index.rst +0
-4- -:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing<pg_figure_12>`
doc/guides/prog_guide/index.rst +0
-4- -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhostBack End <pg_figure_14>`
-
-:ref:Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>
-
:ref:`Figure 16. Memory Sharing inthe Intel(r) DPDK
Multi-process Sample Application <pg_figure_16>`Quoted 2 lines
:ref:`Figure 17. Components of an Intel(r) DPDK KNI Application
<pg_figure_17>` diff --gitReferences to Figures 9 to 17 have been removed have they been reinstated somewhere else ?
Quoted 6 lines
Quoted 4 lines
Figures 10 to 15 moved in doc/guides/nics/img.
I didn't re-create the references in
doc/guides/nics/index.rstnor renumbered the ones indoc/guides/prog_guide/index.rst.It would be better to recreate the references in
doc/guides/nics/index.rstrather than just delete
Quoted 8 lines
them.
Quoted 2 lines
I don't think there is any need to renumber them. The references are global across documents and must be unique.
No the references are not really uniques:
- Figures indoc/guides/sample_app_ug/index.rststart from 1 to 17.
- Figures indoc/guides/prog_guide/index.rststart from 1 to 39.
When adding a new new figure in a document, we must renumber them.
I had this problem before with duplicate numbers, so in the prog_guide I prefixed the links with "pg_" so the links are unique. For example:
:ref:Figure 16. Memory Sharing inthe Intel(r) DPDK Multi-process Sample Application <pg_figure_16>
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
I think these manual numberings should be removed as it is a pain to update. Actually I don't really understand what is the usage of such references. So I suggest to completely remove them or generate them with a script.
Quoted 8 lines
Quoted 4 lines
These references were in the original 1.7 MSWord docs. When reading a document it enabled the reader to jump to another section and jump back, they worked in the HTML docs too. I think they should be retained.
Are you speaking about the figure references at the bottom of this page?
http://dpdk.org/doc/guides/prog_guide
It doesn't really help for browsing.
No, what I mean is that within a document you can jump to another section and back for example:
file:///home/bairemon/git_home/dpdk_master/build/doc/html/guides/prog_guide/mbuf_lib.html There is link on this page that allows the reader to jump to Mempool Library file:///home/bairemon/git_home/dpdk_master/build/doc/html/guides/prog_guide/mempool_lib.html#mempool-library The reader can use the back arrow in the browser to return to the original page.
All of the links are used for this purpose.
Quoted 3 lines
--
Thomas
Regards,
Bernard.
A message that is not in the archive (sent off-list or not yet received): 8CEF83825BEC744B83065625E567D7C2049DCD83-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org
Re: [RFC PATCH 3/4] doc: nics guide
2015-02-02 17:33, Iremonger, Bernard:
Quoted 42 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 41 lines
2015-02-02 14:59, Iremonger, Bernard:
Quoted 39 lines
Quoted 31 lines
2015-02-02 14:11, Iremonger, Bernard:
Quoted 25 lines
Quoted 25 lines
doc/guides/prog_guide/index.rst +0
-1@@ -101,18 +96,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOVMode <pg_figure_10>`
doc/guides/prog_guide/index.rst +0
-4- -:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing<pg_figure_12>`
doc/guides/prog_guide/index.rst +0
-4- -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhostBack End <pg_figure_14>`
-
-:ref:Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>
-
:ref:`Figure 16. Memory Sharing inthe Intel(r) DPDK
Multi-process Sample Application <pg_figure_16>`Quoted 4 lines
Quoted 2 lines
:ref:`Figure 17. Components of an Intel(r) DPDK KNI Application
<pg_figure_17>` diff --gitReferences to Figures 9 to 17 have been removed have they been reinstated somewhere else ?
Quoted 4 lines
Figures 10 to 15 moved in doc/guides/nics/img.
I didn't re-create the references in
doc/guides/nics/index.rstnor renumbered the ones indoc/guides/prog_guide/index.rst.It would be better to recreate the references in
doc/guides/nics/index.rstrather than just delete them. I don't think there is any need to renumber them.
The references are global across documents and must be unique.
Quoted 8 lines
Quoted 4 lines
No the references are not really uniques:
- Figures indoc/guides/sample_app_ug/index.rststart from 1 to 17.
- Figures indoc/guides/prog_guide/index.rststart from 1 to 39.
When adding a new new figure in a document, we must renumber them.I had this problem before with duplicate numbers, so in the
prog_guideI prefixed the links with "pg_" so the links are unique. For example:
:ref:Figure 16. Memory Sharing inthe Intel(r) DPDK Multi-process Sample Application <pg_figure_16>
OK I understand what is unique.
But I still think that the number in "Figure 16." should be automatically generated. Or we can remove this Figure/Table list at the bottom of the index.
Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
I think these manual numberings should be removed as it is a pain to update. Actually I don't really understand what is the usage of such references. So I suggest to completely remove them or generate them with a script.
Quoted 8 lines
Quoted 4 lines
These references were in the original 1.7 MSWord docs. When reading a document it enabled the reader to jump to another section and jump back, they worked in the HTML docs too. I think they should be retained.
Are you speaking about the figure references at the bottom of this page?
http://dpdk.org/doc/guides/prog_guide
It doesn't really help for browsing.
Quoted 7 lines
No, what I mean is that within a document you can jump to another section and back for example:
file:///home/bairemon/git_home/dpdk_master/build/doc/html/guides/prog_guide/mbuf_lib.html There is link on this page that allows the reader to jump to Mempool Library file:///home/bairemon/git_home/dpdk_master/build/doc/html/guides/prog_guide/mempool_lib.html#mempool-library The reader can use the back arrow in the browser to return to the original page.
All of the links are used for this purpose.
OK, it was a misunderstanding. I agree the cross references are useful. I'm speaking only about the Figure/Table list at the bottom of the index.
Signature · 1 line
Thomas
Re: [RFC PATCH 3/4] doc: nics guide
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
It would be better to recreate the references in
doc/guides/nics/index.rstrather than justdelete them.
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines
I don't think there is any need to renumber them. The references are global across documents and must be unique.
No the references are not really uniques:
- Figures indoc/guides/sample_app_ug/index.rststart from 1 to 17.
- Figures indoc/guides/prog_guide/index.rststart from 1 to 39.
When adding a new new figure in a document, we must renumber them.
Quoted 8 lines
Quoted 1 line
I had this problem before with duplicate numbers, so in the
prog_guideI prefixed the links with"
pg_" so the links are unique.Quoted 3 lines
For example:
:ref:`Figure 16. Memory Sharing inthe Intel(r) DPDK Multi-process
Sample Application <pg_figure_16>`OK I understand what is unique.
But I still think that the number in "Figure 16." should be automatically generated.
Hi Thomas,
I looked at this before and I do not think there is a way to automatically generate the number
Quoted 14 lines
Quoted 6 lines
Quoted 3 lines
Are you speaking about the figure references at the bottom of this page?
http://dpdk.org/doc/guides/prog_guide
It doesn't really help for browsing.No, what I mean is that within a document you can jump to another section and back for example:
Quoted 7 lines
file:///home/bairemon/git_home/dpdk_master/build/doc/html/guides/prog_ guide/mbuf_lib.html There is link on this page that allows the reader to jump to Mempool Library file:///home/bairemon/git_home/dpdk_master/build/doc/html/guides/prog_ guide/mempool_lib.html#mempool-library
The reader can use the back arrow in the browser to return to the original page. All of the links are used for this purpose.
Quoted 2 lines
OK, it was a misunderstanding. I agree the cross references are useful. I'm speaking only about the Figure/Table list at the bottom of the index.
The references were all gathered here in the original 1.7 MSWord documents. It also useful for testing the links to have them all in one place.
Quoted 3 lines
--
Thomas
Regards,
Bernard.
RFC PATCH 4/4 doc: remove copyright footer
In reply to a message not in the archiveIn order to be more vendor neutral, copyright should not be printed in the footer of every documentation pages.
It should help to have documentation from other vendors. Copyright is still written in the source files.
Sphinx notice is also removed to make the footer empty in the current theme.
--- doc/guides/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
doc/guides/conf.py +2 -1
@@ -32,7 +32,8 @@ import subprocess project = 'DPDK' -copyright = '2014, Intel' +html_show_copyright = False +html_show_sphinx = False version = subprocess.check_output(["make","-sRrC","../../", "showversion"])
Signature · 1 line
2.2.2
v2 cover split programmers guide a bit
In reply to a message not in the archiveToo many things are included in the programmers guide.
I think it should cover only API and knowledge needed to make an application. That's why I suggest to move Xen and NICs doc outside.
Then it will be easier to add doc for a new environment or a new NIC. Note that drivers or device-related libs like KNI, vhost or bonding stay in the programmer's guide because they are more high-level than NICs drivers.
Changes in v2:
- create index for Xen guide
- rename figure links
- rebase with mlx4
- HTML copyright removal has been sent separately
Thomas Monjalon (3):
doc: fix file attributes
doc: move Xen guide out of programmers guide
doc: nics guide
MAINTAINERS | 17 +-
doc/guides/index.rst | 2 +
.../driver_vm_emul_dev.rst => nics/e1000em.rst} | 0
doc/guides/{prog_guide => nics}/img/console.png | Bin
.../{prog_guide => nics}/img/fast_pkt_proc.png | Bin
.../{prog_guide => nics}/img/forward_stats.png | Bin
.../{prog_guide => nics}/img/host_vm_comms.png | Bin
.../img/host_vm_comms_qemu.png | Bin
.../{prog_guide => nics}/img/inter_vm_comms.png | Bin
.../{prog_guide => nics}/img/perf_benchmark.png | Bin
.../{prog_guide => nics}/img/single_port_nic.png | Bin
.../{prog_guide => nics}/img/vm_vm_comms.png | Bin
.../{prog_guide => nics}/img/vmxnet3_int.png | Bin
doc/guides/{prog_guide => nics}/img/vswitch_vm.png | Bin
doc/guides/{ => nics}/index.rst | 28 ++--
.../intel_vf.rst} | 8 +-
doc/guides/nics/ixgbe.rst | 184 +++++++++++++++++++++
.../mlx4_poll_mode_drv.rst => nics/mlx4.rst} | 0
.../pcap_ring.rst} | 0
.../virtio.rst} | 4 +-
.../vmxnet3.rst} | 0
doc/guides/prog_guide/index.rst | 18 --
doc/guides/prog_guide/poll_mode_drv.rst | 152 -----------------
.../img/dpdk_xen_pkt_switch.png | Bin
doc/guides/{prog_guide => xen}/img/grant_refs.png | Bin
doc/guides/{prog_guide => xen}/img/grant_table.png | Bin
doc/guides/{ => xen}/index.rst | 21 +--
.../pkt_switch.rst} | 0
28 files changed, 228 insertions(+), 206 deletions(-)
rename doc/guides/{prog_guide/driver_vm_emul_dev.rst => nics/e1000em.rst} (100%)
rename doc/guides/{prog_guide => nics}/img/console.png (100%)
rename doc/guides/{prog_guide => nics}/img/fast_pkt_proc.png (100%)
rename doc/guides/{prog_guide => nics}/img/forward_stats.png (100%)
rename doc/guides/{prog_guide => nics}/img/host_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/host_vm_comms_qemu.png (100%)
rename doc/guides/{prog_guide => nics}/img/inter_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/perf_benchmark.png (100%)
rename doc/guides/{prog_guide => nics}/img/single_port_nic.png (100%)
rename doc/guides/{prog_guide => nics}/img/vm_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/vmxnet3_int.png (100%)
rename doc/guides/{prog_guide => nics}/img/vswitch_vm.png (100%)
copy doc/guides/{ => nics}/index.rst (88%)
rename doc/guides/{prog_guide/i40e_ixgbe_igb_virt_func_drv.rst => nics/intel_vf.rst} (99%)
mode change 100755 => 100644
create mode 100644 doc/guides/nics/ixgbe.rst
rename doc/guides/{prog_guide/mlx4_poll_mode_drv.rst => nics/mlx4.rst} (100%)
rename doc/guides/{prog_guide/libpcap_ring_based_poll_mode_drv.rst => nics/pcap_ring.rst} (100%)
rename doc/guides/{prog_guide/poll_mode_drv_emulated_virtio_nic.rst => nics/virtio.rst} (99%)
rename doc/guides/{prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst => nics/vmxnet3.rst} (100%)
mode change 100755 => 100644 doc/guides/prog_guide/poll_mode_drv.rst
rename doc/guides/{prog_guide => xen}/img/dpdk_xen_pkt_switch.png (100%)
rename doc/guides/{prog_guide => xen}/img/grant_refs.png (100%)
rename doc/guides/{prog_guide => xen}/img/grant_table.png (100%)
copy doc/guides/{ => xen}/index.rst (88%)
rename doc/guides/{prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst => xen/pkt_switch.rst} (100%)Signature · 1 line
2.2.2
A message that is not in the archive (sent off-list or not yet received): 1426783711-2407-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
PATCH v2 1/3 doc: fix file attributes
--- doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst | 0 doc/guides/prog_guide/poll_mode_drv.rst | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst mode change 100755 => 100644 doc/guides/prog_guide/poll_mode_drv.rst
doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0 -0
doc/guides/prog_guide/poll_mode_drv.rst +0 -0
Signature · 1 line
2.2.2
A message that is not in the archive (sent off-list or not yet received): 1426783711-2407-2-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
Re: [PATCH v2 1/3] doc: fix file attributes
Quoted 24 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Thursday, March 19, 2015 4:48 PM
To: Butler, Siobhan A; Iremonger, Bernard
Cc: [email protected]
Subject: [PATCH v2 1/3] doc: fix file attributesSigned-off-by Thomas Monjalon <[email protected]>--- doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst | 0 doc/guides/prog_guide/poll_mode_drv.rst | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst mode change 100755 => 100644 doc/guides/prog_guide/poll_mode_drv.rstdoc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0doc/guides/prog_guide/poll_mode_drv.rst +0
-1--
Quoted 1 line
2.2.2
Acked-by Siobhan Butler <[email protected]>
PATCH v2 2/3 doc: move Xen guide out of programmers guide
In reply to a message not in the archiveXen is an environment comparable to Linux and FreeBSD which have their own guide.
---
MAINTAINERS | 2 +-
doc/guides/index.rst | 1 +
doc/guides/prog_guide/index.rst | 1 -
.../img/dpdk_xen_pkt_switch.png | Bin
doc/guides/{prog_guide => xen}/img/grant_refs.png | Bin
doc/guides/{prog_guide => xen}/img/grant_table.png | Bin
doc/guides/{ => xen}/index.rst | 21 +++++++++------------
.../pkt_switch.rst} | 0
8 files changed, 11 insertions(+), 14 deletions(-)
rename doc/guides/{prog_guide => xen}/img/dpdk_xen_pkt_switch.png (100%)
rename doc/guides/{prog_guide => xen}/img/grant_refs.png (100%)
rename doc/guides/{prog_guide => xen}/img/grant_table.png (100%)
copy doc/guides/{ => xen}/index.rst (88%)
rename doc/guides/{prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst => xen/pkt_switch.rst} (100%)MAINTAINERS +1 -1
@@ -132,9 +132,9 @@ F: lib/librte_eal/linuxapp/eal/*xen* F: lib/librte_eal/linuxapp/eal/include/exec-env/rte_dom0_common.h F: lib/librte_mempool/rte_dom0_mempool.c F: lib/librte_pmd_xenvirt/ +F: doc/guides/xen/ F: app/test-pmd/mempool_* F: examples/vhost_xen/ -F: doc/guides/prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst FreeBSD EAL (with overlaps) M: Bruce Richardson <[email protected]>
doc/guides/index.rst +1 -0
@@ -39,6 +39,7 @@ Contents: linux_gsg/index freebsd_gsg/index + xen/index prog_guide/index sample_app_ug/index testpmd_app_ug/index
doc/guides/prog_guide/index.rst +0 -1
@@ -53,7 +53,6 @@ Programmer's Guide ivshmem_lib poll_mode_drv_emulated_virtio_nic poll_mode_drv_paravirtual_vmxnets_nic - intel_dpdk_xen_based_packet_switch_sol libpcap_ring_based_poll_mode_drv link_bonding_poll_mode_drv_lib mlx4_poll_mode_drv
doc/guides/xen/img/dpdk_xen_pkt_switch.png renamed from doc/guides/prog_guide/img/dpdk_xen_pkt_switch.png +0 -0
doc/guides/xen/img/grant_refs.png renamed from doc/guides/prog_guide/img/grant_refs.png +0 -0
doc/guides/xen/img/grant_table.png renamed from doc/guides/prog_guide/img/grant_table.png +0 -0
doc/guides/xen/index.rst renamed from doc/guides/index.rst +9 -12
@@ -28,18 +28,15 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -DPDK documentation -================== +Xen Guide +========= -Contents: +|today| + +**Contents** .. toctree:: - :maxdepth: 1 - :titlesonly: - - linux_gsg/index - freebsd_gsg/index - prog_guide/index - sample_app_ug/index - testpmd_app_ug/index - rel_notes/index + :maxdepth: 2 + :numbered: + + pkt_switch
doc/guides/xen/pkt_switch.rst renamed from doc/guides/prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst +0 -0
Signature · 1 line
2.2.2
A message that is not in the archive (sent off-list or not yet received): 1426783711-2407-3-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
Re: [PATCH v2 2/3] doc: move Xen guide out of programmers guide
Quoted 119 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Thursday, March 19, 2015 4:49 PM
To: Butler, Siobhan A; Iremonger, Bernard
Cc: [email protected]
Subject: [PATCH v2 2/3] doc: move Xen guide out of programmers guideXen is an environment comparable to Linux and FreeBSD which have their own guide.
Signed-off-by Thomas Monjalon <[email protected]>--- MAINTAINERS | 2 +- doc/guides/index.rst | 1 + doc/guides/prog_guide/index.rst | 1 - .../img/dpdk_xen_pkt_switch.png | Bin doc/guides/{prog_guide => xen}/img/grant_refs.png | Bin doc/guides/{prog_guide => xen}/img/grant_table.png | Bin doc/guides/{ => xen}/index.rst | 21 +++++++++------------ .../pkt_switch.rst} | 0 8 files changed, 11 insertions(+), 14 deletions(-) renamedoc/guides/{prog_guide => xen}/img/dpdk_xen_pkt_switch.png (100%) rename doc/guides/{prog_guide => xen}/img/grant_refs.png (100%) rename doc/guides/{prog_guide => xen}/img/grant_table.png (100%) copy doc/guides/{ =>
xen}/index.rst(88%) renamedoc/guides/{prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst=>xen/pkt_switch.rst} (100%)MAINTAINERS +1
-1@@ -132,9 +132,9 @@ F: lib/librte_eal/linuxapp/eal/*xen* F: lib/librte_eal/linuxapp/eal/include/exec-env/rte_dom0_common.h F: lib/librte_mempool/rte_dom0_mempool.c F: lib/librte_pmd_xenvirt/ +F: doc/guides/xen/ F: app/test-pmd/mempool_* F: examples/vhost_xen/ -F: doc/guides/prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst FreeBSD EAL (with overlaps) M: Bruce Richardson <[email protected]> diff --git
a/doc/guides/index.rstb/doc/guides/index.rstindex c589a30..53f1be1 100644doc/guides/index.rst +1
-0@@ -39,6 +39,7 @@ Contents: linux_gsg/index freebsd_gsg/index + xen/index prog_guide/index sample_app_ug/index testpmd_app_ug/index(quoted diff) +0
-0
b/doc/guides/prog_guide/index.rstindex 3c17e8d..b263d31 100644doc/guides/prog_guide/index.rst +0
-1@@ -53,7 +53,6 @@ Programmer's Guide ivshmem_lib poll_mode_drv_emulated_virtio_nic poll_mode_drv_paravirtual_vmxnets_nic - intel_dpdk_xen_based_packet_switch_sol libpcap_ring_based_poll_mode_drv link_bonding_poll_mode_drv_lib mlx4_poll_mode_drvdoc/guides/xen/img/dpdk_xen_pkt_switch.png renamed from doc/guides/prog_guide/img/dpdk_xen_pkt_switch.png +0
-0doc/guides/xen/img/grant_refs.png diff --git renamed from doc/guides/prog_guide/img/grant_refs.png +0
-0a/doc/guides/prog_guide/img/grant_table.png b/doc/guides/xen/img/grant_table.png similarity index 100%
rename from doc/guides/prog_guide/img/grant_table.png rename to doc/guides/xen/img/grant_table.pngdoc/guides/xen/index.rst similarity index renamed from doc/guides/index.rst +0
-088% copy from
doc/guides/index.rstcopy todoc/guides/xen/index.rstindex c589a30..628ecc3 100644doc/guides/xen/index.rst renamed from doc/guides/index.rst +0
-0@@ -28,18 +28,15 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OFTHE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.doc/guides/xen/index.rst renamed from doc/guides/index.rst +9
-12-DPDK documentation -================== +Xen Guide +========= -Contents: +|today| + +**Contents** .. toctree:: - :maxdepth: 1 - :titlesonly: - - linux_gsg/index - freebsd_gsg/index - prog_guide/index - sample_app_ug/index - testpmd_app_ug/index - rel_notes/index + :maxdepth: 2 + :numbered: + + pkt_switch
Quoted 7 lines
diff --git
a/doc/guides/prog_guide/intel_dpdk_xen_based_packet_switch_sol.rstb/doc/guides/xen/pkt_switch.rstsimilarity index 100% rename fromdoc/guides/prog_guide/intel_dpdk_xen_based_packet_switch_sol.rstrename todoc/guides/xen/pkt_switch.rst
--
2.2.2
Acked-by Siobhan Butler <[email protected]>
PATCH v2 3/3 doc: nics guide
In reply to a message not in the archiveCreate nics guide by moving chapters about Intel and Mellanox NICs.
---
MAINTAINERS | 15 +-
doc/guides/index.rst | 1 +
.../driver_vm_emul_dev.rst => nics/e1000em.rst} | 0
doc/guides/{prog_guide => nics}/img/console.png | Bin
.../{prog_guide => nics}/img/fast_pkt_proc.png | Bin
.../{prog_guide => nics}/img/forward_stats.png | Bin
.../{prog_guide => nics}/img/host_vm_comms.png | Bin
.../img/host_vm_comms_qemu.png | Bin
.../{prog_guide => nics}/img/inter_vm_comms.png | Bin
.../{prog_guide => nics}/img/perf_benchmark.png | Bin
.../{prog_guide => nics}/img/single_port_nic.png | Bin
.../{prog_guide => nics}/img/vm_vm_comms.png | Bin
.../{prog_guide => nics}/img/vmxnet3_int.png | Bin
doc/guides/{prog_guide => nics}/img/vswitch_vm.png | Bin
doc/guides/{ => nics}/index.rst | 29 ++--
.../intel_vf.rst} | 8 +-
doc/guides/nics/ixgbe.rst | 184 +++++++++++++++++++++
.../mlx4_poll_mode_drv.rst => nics/mlx4.rst} | 0
.../pcap_ring.rst} | 0
.../virtio.rst} | 4 +-
.../vmxnet3.rst} | 0
doc/guides/prog_guide/index.rst | 17 --
doc/guides/prog_guide/poll_mode_drv.rst | 152 -----------------
23 files changed, 217 insertions(+), 193 deletions(-)
rename doc/guides/{prog_guide/driver_vm_emul_dev.rst => nics/e1000em.rst} (100%)
rename doc/guides/{prog_guide => nics}/img/console.png (100%)
rename doc/guides/{prog_guide => nics}/img/fast_pkt_proc.png (100%)
rename doc/guides/{prog_guide => nics}/img/forward_stats.png (100%)
rename doc/guides/{prog_guide => nics}/img/host_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/host_vm_comms_qemu.png (100%)
rename doc/guides/{prog_guide => nics}/img/inter_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/perf_benchmark.png (100%)
rename doc/guides/{prog_guide => nics}/img/single_port_nic.png (100%)
rename doc/guides/{prog_guide => nics}/img/vm_vm_comms.png (100%)
rename doc/guides/{prog_guide => nics}/img/vmxnet3_int.png (100%)
rename doc/guides/{prog_guide => nics}/img/vswitch_vm.png (100%)
copy doc/guides/{ => nics}/index.rst (88%)
rename doc/guides/{prog_guide/i40e_ixgbe_igb_virt_func_drv.rst => nics/intel_vf.rst} (99%)
create mode 100644 doc/guides/nics/ixgbe.rst
rename doc/guides/{prog_guide/mlx4_poll_mode_drv.rst => nics/mlx4.rst} (100%)
rename doc/guides/{prog_guide/libpcap_ring_based_poll_mode_drv.rst => nics/pcap_ring.rst} (100%)
rename doc/guides/{prog_guide/poll_mode_drv_emulated_virtio_nic.rst => nics/virtio.rst} (99%)
rename doc/guides/{prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst => nics/vmxnet3.rst} (100%)MAINTAINERS +10 -5
@@ -213,15 +213,20 @@ F: lib/librte_pmd_enic/ Intel e1000 F: lib/librte_pmd_e1000/ +F: doc/guides/nics/e1000em.rst +F: doc/guides/nics/intel_vf.rst Intel ixgbe M: Helin Zhang <[email protected]> M: Konstantin Ananyev <[email protected]> F: lib/librte_pmd_ixgbe/ +F: doc/guides/nics/ixgbe.rst +F: doc/guides/nics/intel_vf.rst Intel i40e M: Helin Zhang <[email protected]> F: lib/librte_pmd_i40e/ +F: doc/guides/nics/intel_vf.rst Intel fm10k M: Jing Chen <[email protected]>
@@ -230,12 +235,12 @@ F: lib/librte_pmd_fm10k/ Mellanox mlx4 M: Adrien Mazarguil <[email protected]> F: lib/librte_pmd_mlx4/ -F: doc/guides/prog_guide/mlx4_poll_mode_drv.rst +F: doc/guides/nics/mlx4.rst RedHat virtio M: Changchun Ouyang <[email protected]> F: lib/librte_pmd_virtio/ -F: doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +F: doc/guides/nics/virtio.rst F: lib/librte_vhost/ F: doc/guides/prog_guide/vhost_lib.rst F: examples/vhost/
@@ -244,16 +249,16 @@ F: doc/guides/sample_app_ug/vhost.rst VMware vmxnet3 M: Yong Wang <[email protected]> F: lib/librte_pmd_vmxnet3/ -F: doc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst +F: doc/guides/nics/vmxnet3.rst PCAP PMD F: lib/librte_pmd_pcap/ -F: doc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rst +F: doc/guides/nics/pcap_ring.rst Ring PMD M: Bruce Richardson <[email protected]> F: lib/librte_pmd_ring/ -F: doc/guides/prog_guide/ring_lib.rst +F: doc/guides/nics/pcap_ring.rst F: app/test/test_pmd_ring.c Null PMD
doc/guides/index.rst +1 -0
@@ -41,6 +41,7 @@ Contents: freebsd_gsg/index xen/index prog_guide/index + nics/index sample_app_ug/index testpmd_app_ug/index rel_notes/index
doc/guides/nics/e1000em.rst renamed from doc/guides/prog_guide/driver_vm_emul_dev.rst +0 -0
doc/guides/nics/img/console.png renamed from doc/guides/prog_guide/img/console.png +0 -0
doc/guides/nics/img/fast_pkt_proc.png renamed from doc/guides/prog_guide/img/fast_pkt_proc.png +0 -0
doc/guides/nics/img/forward_stats.png renamed from doc/guides/prog_guide/img/forward_stats.png +0 -0
doc/guides/nics/img/host_vm_comms.png renamed from doc/guides/prog_guide/img/host_vm_comms.png +0 -0
doc/guides/nics/img/host_vm_comms_qemu.png renamed from doc/guides/prog_guide/img/host_vm_comms_qemu.png +0 -0
doc/guides/nics/img/inter_vm_comms.png renamed from doc/guides/prog_guide/img/inter_vm_comms.png +0 -0
doc/guides/nics/img/perf_benchmark.png renamed from doc/guides/prog_guide/img/perf_benchmark.png +0 -0
doc/guides/nics/img/single_port_nic.png renamed from doc/guides/prog_guide/img/single_port_nic.png +0 -0
doc/guides/nics/img/vm_vm_comms.png renamed from doc/guides/prog_guide/img/vm_vm_comms.png +0 -0
doc/guides/nics/img/vmxnet3_int.png renamed from doc/guides/prog_guide/img/vmxnet3_int.png +0 -0
doc/guides/nics/img/vswitch_vm.png renamed from doc/guides/prog_guide/img/vswitch_vm.png +0 -0
doc/guides/nics/index.rst renamed from doc/guides/index.rst +16 -13
@@ -28,19 +28,22 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -DPDK documentation -================== +Network Interface Controller Drivers +==================================== -Contents: +|today| + + +**Contents** .. toctree:: - :maxdepth: 1 - :titlesonly: - - linux_gsg/index - freebsd_gsg/index - xen/index - prog_guide/index - sample_app_ug/index - testpmd_app_ug/index - rel_notes/index + :maxdepth: 3 + :numbered: + + e1000em + ixgbe + intel_vf + mlx4 + virtio + vmxnet3 + pcap_ring
doc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +4 -4
@@ -72,7 +72,7 @@ For more detail on SR-IOV, please refer to the following documents: * `Scalable I/O Virtualized Servers <http://www.intel.com/content/www/us/en/virtualization/server-virtualization/scalable-i-o-virtualized-servers-paper.html>`_ -.. _pg_figure_10: +.. _nic_figure_1: **Figure 10. Virtualization for a Single Port NIC in SR-IOV Mode**
@@ -514,7 +514,7 @@ The setup procedure is as follows: * The Virtual Machine Monitor (see Figure 11) is equivalent to a Host OS with KVM installed as described in the instructions. -.. _pg_figure_11: +.. _nic_figure_2: **Figure 11. Performance Benchmark Setup**
@@ -538,7 +538,7 @@ DPI can be offloaded on the host fast path. Figure 12 shows the scenario where some VMs directly communicate externally via a VFs, while others connect to a virtual switch and share the same uplink bandwidth. -.. _pg_figure_12: +.. _nic_figure_3: **Figure 12. Fast Host-based Packet Processing**
@@ -566,7 +566,7 @@ that is, the packet is forwarded to the correct PF pool. The SR-IOV NIC switch forwards the packet to a specific VM according to the MAC destination address which belongs to the destination VF on the VM. -.. _pg_figure_13: +.. _nic_figure_4: **Figure 13. Inter-VM Communication**
doc/guides/nics/ixgbe.rst new file +184 -0
184 lines not on this page · raw message
doc/guides/nics/mlx4.rst renamed from doc/guides/prog_guide/mlx4_poll_mode_drv.rst +0 -0
doc/guides/nics/pcap_ring.rst renamed from doc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rst +0 -0
doc/guides/nics/virtio.rst renamed from doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +2 -2
@@ -106,7 +106,7 @@ Virtio with kni vhost Back End This section demonstrates kni vhost back end example setup for Phy-VM Communication. -.. _pg_figure_14: +.. _nic_figure_5: **Figure 14. Host2VM Communication Example Using kni vhost Back End**
@@ -189,7 +189,7 @@ Host2VM communication example Virtio with qemu virtio Back End -------------------------------- -.. _pg_figure_15: +.. _nic_figure_6: **Figure 15. Host2VM Communication Example Using qemu vhost Back End**
doc/guides/nics/vmxnet3.rst renamed from doc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst +0 -0
doc/guides/prog_guide/index.rst +0 -17
@@ -48,12 +48,7 @@ Programmer's Guide mempool_lib mbuf_lib poll_mode_drv - i40e_ixgbe_igb_virt_func_drv - driver_vm_emul_dev ivshmem_lib - poll_mode_drv_emulated_virtio_nic - poll_mode_drv_paravirtual_vmxnets_nic - libpcap_ring_based_poll_mode_drv link_bonding_poll_mode_drv_lib mlx4_poll_mode_drv timer_lib
@@ -104,18 +99,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOV Mode <pg_figure_10>` - -:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing <pg_figure_12>` - -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhost Back End <pg_figure_14>` - -:ref:`Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>` - :ref:`Figure 16. Memory Sharing inthe Intel® DPDK Multi-process Sample Application <pg_figure_16>` :ref:`Figure 17. Components of an Intel® DPDK KNI Application <pg_figure_17>`
doc/guides/prog_guide/poll_mode_drv.rst +0 -152
155 lines not on this page · raw message
Signature · 1 line
2.2.2
A message that is not in the archive (sent off-list or not yet received): 1426783711-2407-4-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
Re: [PATCH v2 3/3] doc: nics guide
Quoted 519 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Thursday, March 19, 2015 4:49 PM
To: Butler, Siobhan A; Iremonger, Bernard
Cc: [email protected]
Subject: [PATCH v2 3/3] doc: nics guideCreate nics guide by moving chapters about Intel and Mellanox NICs.
Signed-off-by Thomas Monjalon <[email protected]>--- MAINTAINERS | 15 +- doc/guides/index.rst | 1 + .../driver_vm_emul_dev.rst => nics/e1000em.rst} | 0 doc/guides/{prog_guide => nics}/img/console.png | Bin .../{prog_guide => nics}/img/fast_pkt_proc.png | Bin .../{prog_guide => nics}/img/forward_stats.png | Bin .../{prog_guide => nics}/img/host_vm_comms.png | Bin .../img/host_vm_comms_qemu.png | Bin .../{prog_guide => nics}/img/inter_vm_comms.png | Bin .../{prog_guide => nics}/img/perf_benchmark.png | Bin .../{prog_guide => nics}/img/single_port_nic.png | Bin .../{prog_guide => nics}/img/vm_vm_comms.png | Bin .../{prog_guide => nics}/img/vmxnet3_int.png | Bin doc/guides/{prog_guide => nics}/img/vswitch_vm.png | Bin doc/guides/{ => nics}/index.rst | 29 ++-- .../intel_vf.rst} | 8 +- doc/guides/nics/ixgbe.rst | 184 +++++++++++++++++++++ .../mlx4_poll_mode_drv.rst => nics/mlx4.rst} | 0 .../pcap_ring.rst} | 0 .../virtio.rst} | 4 +- .../vmxnet3.rst} | 0 doc/guides/prog_guide/index.rst | 17 -- doc/guides/prog_guide/poll_mode_drv.rst | 152 ----------------- 23 files changed, 217 insertions(+), 193 deletions(-) rename
doc/guides/{prog_guide/driver_vm_emul_dev.rst=>nics/e1000em.rst} (100%) rename doc/guides/{prog_guide => nics}/img/console.png (100%) rename doc/guides/{prog_guide => nics}/img/fast_pkt_proc.png (100%) rename doc/guides/{prog_guide => nics}/img/forward_stats.png (100%) rename doc/guides/{prog_guide => nics}/img/host_vm_comms.png (100%) rename doc/guides/{prog_guide => nics}/img/host_vm_comms_qemu.png (100%) rename doc/guides/{prog_guide => nics}/img/inter_vm_comms.png (100%) rename doc/guides/{prog_guide => nics}/img/perf_benchmark.png (100%) rename doc/guides/{prog_guide => nics}/img/single_port_nic.png (100%) rename doc/guides/{prog_guide => nics}/img/vm_vm_comms.png (100%) rename doc/guides/{prog_guide => nics}/img/vmxnet3_int.png (100%) rename doc/guides/{prog_guide => nics}/img/vswitch_vm.png (100%) copy doc/guides/{ =>nics}/index.rst(88%) renamedoc/guides/{prog_guide/i40e_ixgbe_igb_virt_func_drv.rst=>nics/intel_vf.rst} (99%) create mode 100644doc/guides/nics/ixgbe.rstrenamedoc/guides/{prog_guide/mlx4_poll_mode_drv.rst=>nics/mlx4.rst} (100%) renamedoc/guides/{prog_guide/libpcap_ring_based_poll_mode_drv.rst=>nics/pcap_ring.rst} (100%) renamedoc/guides/{prog_guide/poll_mode_drv_emulated_virtio_nic.rst=>nics/virtio.rst} (99%) renamedoc/guides/{prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst=>nics/vmxnet3.rst} (100%)MAINTAINERS +10
-5@@ -213,15 +213,20 @@ F: lib/librte_pmd_enic/ Intel e1000 F: lib/librte_pmd_e1000/ +F: doc/guides/nics/e1000em.rst +F: doc/guides/nics/intel_vf.rst Intel ixgbe M: Helin Zhang <[email protected]> M: Konstantin Ananyev <[email protected]> F: lib/librte_pmd_ixgbe/ +F: doc/guides/nics/ixgbe.rst +F: doc/guides/nics/intel_vf.rst Intel i40e M: Helin Zhang <[email protected]> F: lib/librte_pmd_i40e/ +F: doc/guides/nics/intel_vf.rst Intel fm10k M: Jing Chen <[email protected]>@@ -230,12 +235,12 @@ F: lib/librte_pmd_fm10k/ Mellanox mlx4 M: Adrien Mazarguil <[email protected]> F: lib/librte_pmd_mlx4/ -F: doc/guides/prog_guide/mlx4_poll_mode_drv.rst +F: doc/guides/nics/mlx4.rst RedHat virtio M: Changchun Ouyang <[email protected]> F: lib/librte_pmd_virtio/ -F: doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +F: doc/guides/nics/virtio.rst F: lib/librte_vhost/ F: doc/guides/prog_guide/vhost_lib.rst F: examples/vhost/@@ -244,16 +249,16 @@ F: doc/guides/sample_app_ug/vhost.rst VMware vmxnet3 M: Yong Wang <[email protected]> F: lib/librte_pmd_vmxnet3/ -F: doc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst +F: doc/guides/nics/vmxnet3.rst PCAP PMD F: lib/librte_pmd_pcap/ -F: doc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rst +F: doc/guides/nics/pcap_ring.rst Ring PMD M: Bruce Richardson <[email protected]> F: lib/librte_pmd_ring/ -F: doc/guides/prog_guide/ring_lib.rst +F: doc/guides/nics/pcap_ring.rst F: app/test/test_pmd_ring.c Null PMDdoc/guides/index.rst +1
-0@@ -41,6 +41,7 @@ Contents: freebsd_gsg/index xen/index prog_guide/index + nics/index sample_app_ug/index testpmd_app_ug/index rel_notes/indexdoc/guides/nics/e1000em.rst renamed from doc/guides/prog_guide/driver_vm_emul_dev.rst +0
-0doc/guides/nics/img/console.png diff --git renamed from doc/guides/prog_guide/img/console.png +0
-0a/doc/guides/prog_guide/img/fast_pkt_proc.png b/doc/guides/nics/img/fast_pkt_proc.png similarity index 100%
rename from doc/guides/prog_guide/img/fast_pkt_proc.png
rename to doc/guides/nics/img/fast_pkt_proc.pngdoc/guides/nics/img/forward_stats.png renamed from doc/guides/prog_guide/img/forward_stats.png +0
-0doc/guides/nics/img/host_vm_comms.png renamed from doc/guides/prog_guide/img/host_vm_comms.png +0
-0doc/guides/nics/img/host_vm_comms_qemu.png renamed from doc/guides/prog_guide/img/host_vm_comms_qemu.png +0
-0doc/guides/nics/img/inter_vm_comms.png renamed from doc/guides/prog_guide/img/inter_vm_comms.png +0
-0doc/guides/nics/img/perf_benchmark.png renamed from doc/guides/prog_guide/img/perf_benchmark.png +0
-0doc/guides/nics/img/single_port_nic.png renamed from doc/guides/prog_guide/img/single_port_nic.png +0
-0doc/guides/nics/img/vm_vm_comms.png renamed from doc/guides/prog_guide/img/vm_vm_comms.png +0
-0doc/guides/nics/img/vmxnet3_int.png renamed from doc/guides/prog_guide/img/vmxnet3_int.png +0
-0doc/guides/nics/img/vswitch_vm.png renamed from doc/guides/prog_guide/img/vswitch_vm.png +0
-0doc/guides/nics/index.rst similarity index 88% copy from renamed from doc/guides/index.rst +0
-0
doc/guides/index.rstcopy todoc/guides/nics/index.rstindex 53f1be1..6eb2e94 100644doc/guides/nics/index.rst renamed from doc/guides/index.rst +16
-13@@ -28,19 +28,22 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -DPDK documentation -================== +Network Interface Controller Drivers +==================================== -Contents: +|today| + + +**Contents** .. toctree:: - :maxdepth: 1 - :titlesonly: - - linux_gsg/index - freebsd_gsg/index - xen/index - prog_guide/index - sample_app_ug/index - testpmd_app_ug/index - rel_notes/index + :maxdepth: 3 + :numbered: + + e1000em + ixgbe + intel_vf + mlx4 + virtio + vmxnet3 + pcap_ringdoc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0@@ -72,7 +72,7 @@ For more detail on SR-IOV, please refer to the following documents: * `Scalable I/O Virtualized Servers<http://www.intel.com/content/www/us/en/virtualization/server-virtualization/scalable-i-o-
virtualized-servers-paper.html>`_-..
_pg_figure_10:
+.._nic_figure_1:**Figure 10. Virtualization for a Single Port NIC in SR-IOV Mode**
doc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0@@ -514,7 +514,7 @@ The setup procedure is as follows: * The Virtual Machine Monitor (see Figure 11) is equivalent to a Host OS with KVM installed asdescribed in the instructions.
-..
_pg_figure_11:
+.._nic_figure_2:**Figure 11. Performance Benchmark Setup**
doc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0@@ -538,7 +538,7 @@ DPI can be offloaded on the host fast path. Figure 12 shows the scenario where some VMs directly communicate externally via a VFs, whileothers connect to a virtual switch and share the same uplink bandwidth.
-..
_pg_figure_12:
+.._nic_figure_3:**Figure 12. Fast Host-based Packet Processing**
doc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0@@ -566,7 +566,7 @@ that is, the packet is forwarded to the correct PF pool. The SR-IOV NIC switch forwards the packet to a specific VM according to the MAC destination addresswhich belongs to the destination VF on the VM.
-..
_pg_figure_13:
+.._nic_figure_4:**Figure 13. Inter-VM Communication**
doc/guides/nics/ixgbe.rst new file mode 100644 index renamed from doc/guides/nics/ixgbe.rst +0
-00000000..d2c124e
doc/guides/nics/ixgbe.rst new file +39
-0@@ -0,0 +1,184 @@ +.. BSD LICENSE + Copyright(c) 2010-2014 Intel Corporation. All rights reserved. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +IXGBE Driver +============ + +Vector PMD for IXGBE +-------------------- + +Vector PMD uses Intel® SIMD instructions to optimize packet I/O. +It improves load/store bandwidth efficiency of L1 data cache by using a wider SSE/AVX register 1 (1). +The wider register gives space to hold multiple packet buffers so as to save instruction number whenprocessing bulk of packets.
doc/guides/nics/ixgbe.rst new file +6
-0+ +There is no change to PMD API. The RX/TX handler are the only two entries for vPMD packet I/O. +They are transparently registered at runtime RX/TX execution if all condition checks pass. + +1. To date, only an SSE version of IX GBE vPMD is available. + To ensure that vPMD is in the binary code, ensure that the option
CONFIG_RTE_IXGBE_INC_VECTOR=yis in the configure file.doc/guides/nics/ixgbe.rst new file +15
-0+ +Some constraints apply as pre-conditions for specific optimizations on bulk packet transfers. +The following sections explain RX and TX constraints in the vPMD. + +RX Constraints +~~~~~~~~~~~~~~ + +Prerequisites and Pre-conditions +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The following prerequisites apply: + +* To enable vPMD to work for RX, bulk allocation for Rx must be allowed. + +* The RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=y configuration MACRO must be set beforecompiling the code.
doc/guides/nics/ixgbe.rst new file +18
-0+ +Ensure that the following pre-conditions are satisfied: + +* rxq->rx_free_thresh >= RTE_PMD_IXGBE_RX_MAX_BURST + +* rxq->rx_free_thresh < rxq->nb_rx_desc + +* (rxq->nb_rx_desc % rxq->rx_free_thresh) == 0 + +* rxq->nb_rx_desc < (IXGBE_MAX_RING_DESC - RTE_PMD_IXGBE_RX_MAX_BURST) + +These conditions are checked in the code. + +Scattered packets are not supported in this mode. +If an incoming packet is greater than the maximum acceptable length of +one "mbuf" data size (by default, the size is 2 KB), vPMD for RX would be disabled. + +By default, IXGBE_MAX_RING_DESC is set to 4096 and RTE_PMD_IXGBE_RX_MAX_BURST is set to32.
doc/guides/nics/ixgbe.rst new file +42
-0+ +Feature not Supported by RX Vector PMD +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Some features are not supported when trying to increase the throughput in vPMD. +They are: + +* IEEE1588 + +* FDIR + +* Header split + +* RX checksum off load + +Other features are supported using optional MACRO configuration. They include: + +* HW VLAN strip + +* HW extend dual VLAN + +* Enabled by RX_OLFLAGS (RTE_IXGBE_RX_OLFLAGS_DISABLE=n) + + +To guarantee the constraint, configuration flags in dev_conf.rxmode will be checked: + +* hw_vlan_strip + +* hw_vlan_extend + +* hw_ip_checksum + +* header_split + +* dev_conf + +fdir_conf->mode will also be checked. + +RX Burst Size +^^^^^^^^^^^^^ + +As vPMD is focused on high throughput, it assumes that the RX burst size is equal to or greater than32 per burst.
doc/guides/nics/ixgbe.rst new file +55
-0+It returns zero if using nb_pkt < 32 as the expected packet number in the receive handler. + +TX Constraint +~~~~~~~~~~~~~ + +Prerequisite +^^^^^^^^^^^^ + +The only prerequisite is related to tx_rs_thresh. +The tx_rs_thresh value must be greater than or equal to +RTE_PMD_IXGBE_TX_MAX_BURST, but less or equal to RTE_IXGBE_TX_MAX_FREE_BUF_SZ. +Consequently, by default the tx_rs_thresh value is in the range 32 to 64. + +Feature not Supported by RX Vector PMD +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +TX vPMD only works when txq_flags is set to IXGBE_SIMPLE_FLAGS. + +This means that it does not support TX multi-segment, VLAN offload and TX csum offload. +The following MACROs are used for these three features: + +* ETH_TXQ_FLAGS_NOMULTSEGS + +* ETH_TXQ_FLAGS_NOVLANOFFL + +* ETH_TXQ_FLAGS_NOXSUMSCTP + +* ETH_TXQ_FLAGS_NOXSUMUDP + +* ETH_TXQ_FLAGS_NOXSUMTCP + + +Sample Application Notes +~~~~~~~~~~~~~~~~~~~~~~~~ + +testpmd +^^^^^^^ + +By default, using CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=n: + +.. code-block:: console + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i + --burst=32 --rxfreet=32 --mbcache=250 --txpt=32 --rxht=8 --rxwt=0 + --txfreet=32 --txrst=32 --txqflags=0xf01 + +When CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=y, better performance can be achieved: + +.. code-block:: console + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i + --burst=32 --rxfreet=32 --mbcache=250 --txpt=32 --rxht=8 --rxwt=0 + --txfreet=32 --txrst=32 --txqflags=0xf01 --disable-hw-vlan + +If scatter gather lists are not required, set CONFIG_RTE_MBUF_SCATTER_GATHER=n for betterthroughput.
doc/guides/nics/ixgbe.rst new file +13
-0+ +l3fwd +^^^^^ + +When running l3fwd with vPMD, there is one thing to note. +In the configuration, ensure that port_conf.rxmode.hw_ip_checksum=0. +Otherwise, by default, RX vPMD is disabled. + +load_balancer +^^^^^^^^^^^^^ + +As in the case of l3fwd, set configure port_conf.rxmode.hw_ip_checksum=0 to enable vPMD. +In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoidusing the default burst size of 144.
doc/guides/nics/mlx4.rst renamed from doc/guides/prog_guide/mlx4_poll_mode_drv.rst +0
-0(quoted diff) +0
-0
b/doc/guides/nics/pcap_ring.rstsimilarity index 100% rename fromdoc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rstrename todoc/guides/nics/pcap_ring.rst(quoted diff) +0
-0
b/doc/guides/nics/virtio.rstsimilarity index 99% rename fromdoc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rstrename todoc/guides/nics/virtio.rst
index 113a0cb..5e2a283 100644doc/guides/nics/virtio.rst renamed from doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +2
-2@@ -106,7 +106,7 @@ Virtio with kni vhost Back End This section demonstrates kni vhost back end example setup for Phy-VM Communication. -.. _pg_figure_14: +.. _nic_figure_5: **Figure 14. Host2VM Communication Example Using kni vhost Back End**@@ -189,7 +189,7 @@ Host2VM communication example Virtio with qemu virtio Back End -------------------------------- -.. _pg_figure_15: +.. _nic_figure_6: **Figure 15. Host2VM Communication Example Using qemu vhost Back End**(quoted diff) +0
-0
b/doc/guides/nics/vmxnet3.rstsimilarity index 100% rename fromdoc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rstrename todoc/guides/nics/vmxnet3.rstdoc/guides/prog_guide/index.rst index renamed from doc/guides/prog_guide/index.rst +0
-0b263d31..648757e 100644
doc/guides/prog_guide/index.rst +0
-7@@ -48,12 +48,7 @@ Programmer's Guide mempool_lib mbuf_lib poll_mode_drv - i40e_ixgbe_igb_virt_func_drv - driver_vm_emul_dev ivshmem_lib - poll_mode_drv_emulated_virtio_nic - poll_mode_drv_paravirtual_vmxnets_nic - libpcap_ring_based_poll_mode_drv link_bonding_poll_mode_drv_lib mlx4_poll_mode_drv timer_lib@@ -104,18 +99,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOV Mode <pg_figure_10>` -
doc/guides/prog_guide/index.rst Programmer's Guide · line 118
Quoted 10 lines
doc/guides/prog_guide/index.rst +0
-10-:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing <pg_figure_12>` - -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhost Back End <pg_figure_14>` - -:ref:`Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>` -
Hi Thomas,
The references pg_figure_10 to 15 have been renamed to nic_figure_1 to 6.
The above :ref: lines which have been deleted should be move to nics/index.rst and reworded.
Regards,
Bernard.
Quoted 173 lines
doc/guides/prog_guide/index.rst +0
-0:ref:`Figure 16. Memory Sharing inthe Intel® DPDK Multi-process Sample Application <pg_figure_16>` :ref:`Figure 17. Components of an Intel® DPDK KNI Application <pg_figure_17>` diff --git
a/doc/guides/prog_guide/poll_mode_drv.rstb/doc/guides/prog_guide/poll_mode_drv.rstindex e9e1132..b8b2d1a 100644doc/guides/prog_guide/poll_mode_drv.rst +0
-7@@ -288,155 +288,3 @@ Ethernet Device API ~~~~~~~~~~~~~~~~~~~ The Ethernet device API exported by the Ethernet PMDs is described in the *DPDK API Reference*. - -Vector PMD for IXGBE --------------------- - -Vector PMD uses Intel® SIMD instructions to optimize packet I/O. -It improves load/store bandwidth efficiency of L1 data cache by using a wider SSE/AVX register 1 (1). -The wider register gives space to hold multiple packet buffers so as to save instruction number whenprocessing bulk of packets.
doc/guides/prog_guide/poll_mode_drv.rst +0
-6- -There is no change to PMD API. The RX/TX handler are the only two entries for vPMD packet I/O. -They are transparently registered at runtime RX/TX execution if all condition checks pass. - -1. To date, only an SSE version of IX GBE vPMD is available. - To ensure that vPMD is in the binary code, ensure that the option
CONFIG_RTE_IXGBE_INC_VECTOR=yis in the configure file.doc/guides/prog_guide/poll_mode_drv.rst +0
-15- -Some constraints apply as pre-conditions for specific optimizations on bulk packet transfers. -The following sections explain RX and TX constraints in the vPMD. - -RX Constraints -~~~~~~~~~~~~~~ - -Prerequisites and Pre-conditions -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -The following prerequisites apply: - -* To enable vPMD to work for RX, bulk allocation for Rx must be allowed. - -* The RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=y configuration MACRO must be set beforecompiling the code.
doc/guides/prog_guide/poll_mode_drv.rst +0
-15- -Ensure that the following pre-conditions are satisfied: - -* rxq->rx_free_thresh >= RTE_PMD_IXGBE_RX_MAX_BURST - -* rxq->rx_free_thresh < rxq->nb_rx_desc - -* (rxq->nb_rx_desc % rxq->rx_free_thresh) == 0 - -* rxq->nb_rx_desc < (IXGBE_MAX_RING_DESC - RTE_PMD_IXGBE_RX_MAX_BURST) - -These conditions are checked in the code. - -Scattered packets are not supported in this mode. -If an incoming packet is greater than the maximum acceptable length of one "mbuf" data size (bydefault, the size is 2 KB), -vPMD for RX would be disabled.
doc/guides/prog_guide/poll_mode_drv.rst +0
-2- -By default, IXGBE_MAX_RING_DESC is set to 4096 and RTE_PMD_IXGBE_RX_MAX_BURST is set to32.
doc/guides/prog_guide/poll_mode_drv.rst +0
-42- -Feature not Supported by RX Vector PMD -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Some features are not supported when trying to increase the throughput in vPMD. -They are: - -* IEEE1588 - -* FDIR - -* Header split - -* RX checksum off load - -Other features are supported using optional MACRO configuration. They include: - -* HW VLAN strip - -* HW extend dual VLAN - -* Enabled by RX_OLFLAGS (RTE_IXGBE_RX_OLFLAGS_DISABLE=n) - - -To guarantee the constraint, configuration flags in dev_conf.rxmode will be checked: - -* hw_vlan_strip - -* hw_vlan_extend - -* hw_ip_checksum - -* header_split - -* dev_conf - -fdir_conf->mode will also be checked. - -RX Burst Size -^^^^^^^^^^^^^ - -As vPMD is focused on high throughput, it assumes that the RX burst size is equal to or greater than32 per burst.
doc/guides/prog_guide/poll_mode_drv.rst +0
-10-It returns zero if using nb_pkt < 32 as the expected packet number in the receive handler. - -TX Constraint -~~~~~~~~~~~~~ - -Prerequisite -^^^^^^^^^^^^ - -The only prerequisite is related to tx_rs_thresh. -The tx_rs_thresh value must be greater than or equal to RTE_PMD_IXGBE_TX_MAX_BURST, -but lessor equal to
RTE_IXGBE_TX_MAX_FREE_BUF_SZ.doc/guides/prog_guide/poll_mode_drv.rst +0
-42-Consequently, by default the tx_rs_thresh value is in the range 32 to 64. - -Feature not Supported by RX Vector PMD -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -TX vPMD only works when txq_flags is set to IXGBE_SIMPLE_FLAGS. - -This means that it does not support TX multi-segment, VLAN offload and TX csum offload. -The following MACROs are used for these three features: - -* ETH_TXQ_FLAGS_NOMULTSEGS - -* ETH_TXQ_FLAGS_NOVLANOFFL - -* ETH_TXQ_FLAGS_NOXSUMSCTP - -* ETH_TXQ_FLAGS_NOXSUMUDP - -* ETH_TXQ_FLAGS_NOXSUMTCP - - -Sample Application Notes -~~~~~~~~~~~~~~~~~~~~~~~~ - -testpmd -^^^^^^^ - -By default, using CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=n: - -.. code-block:: console - - ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i --burst=32 --rxfreet=32 --mbcache=250 - -txpt=32 --rxht=8 --rxwt=0 --txfreet=32 --txrst=32 --txqflags=0xf01 - -When CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=y, better performance can be achieved: - -.. code-block:: console - - ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i --burst=32 --rxfreet=32 --mbcache=250 - -txpt=32 --rxht=8 --rxwt=0 --txfreet=32 --txrst=32 --txqflags=0xf01 --disable-hw-vlan - -If scatter gather lists are not required, set CONFIG_RTE_MBUF_SCATTER_GATHER=n for betterthroughput.
doc/guides/prog_guide/poll_mode_drv.rst +0
-13- -l3fwd -^^^^^ - -When running l3fwd with vPMD, there is one thing to note. -In the configuration, ensure that port_conf.rxmode.hw_ip_checksum=0. -Otherwise, by default, RX vPMD is disabled. - -load_balancer -^^^^^^^^^^^^^ - -As in the case of l3fwd, set configure port_conf.rxmode.hw_ip_checksum=0 to enable vPMD. -In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoidusing the default burst size of 144.
--
2.2.2
Re: [PATCH v2 3/3] doc: nics guide
In reply to a message not in the archiveQuoted 768 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Thursday, March 19, 2015 4:49 PM
To: Butler, Siobhan A; Iremonger, Bernard
Cc: [email protected]
Subject: [PATCH v2 3/3] doc: nics guideCreate nics guide by moving chapters about Intel and Mellanox NICs.
Signed-off-by Thomas Monjalon <[email protected]>--- MAINTAINERS | 15 +- doc/guides/index.rst | 1 + .../driver_vm_emul_dev.rst => nics/e1000em.rst} | 0 doc/guides/{prog_guide => nics}/img/console.png | Bin .../{prog_guide => nics}/img/fast_pkt_proc.png | Bin .../{prog_guide => nics}/img/forward_stats.png | Bin .../{prog_guide => nics}/img/host_vm_comms.png | Bin .../img/host_vm_comms_qemu.png | Bin .../{prog_guide => nics}/img/inter_vm_comms.png | Bin .../{prog_guide => nics}/img/perf_benchmark.png | Bin .../{prog_guide => nics}/img/single_port_nic.png | Bin .../{prog_guide => nics}/img/vm_vm_comms.png | Bin .../{prog_guide => nics}/img/vmxnet3_int.png | Bin doc/guides/{prog_guide => nics}/img/vswitch_vm.png | Bin doc/guides/{ => nics}/index.rst | 29 ++-- .../intel_vf.rst} | 8 +- doc/guides/nics/ixgbe.rst | 184 +++++++++++++++++++++ .../mlx4_poll_mode_drv.rst => nics/mlx4.rst} | 0 .../pcap_ring.rst} | 0 .../virtio.rst} | 4 +- .../vmxnet3.rst} | 0 doc/guides/prog_guide/index.rst | 17 -- doc/guides/prog_guide/poll_mode_drv.rst | 152 ----------------- 23 files changed, 217 insertions(+), 193 deletions(-) rename
doc/guides/{prog_guide/driver_vm_emul_dev.rst=>nics/e1000em.rst} (100%) rename doc/guides/{prog_guide => nics}/img/console.png (100%) rename doc/guides/{prog_guide => nics}/img/fast_pkt_proc.png (100%) rename doc/guides/{prog_guide => nics}/img/forward_stats.png (100%) rename doc/guides/{prog_guide => nics}/img/host_vm_comms.png (100%) rename doc/guides/{prog_guide => nics}/img/host_vm_comms_qemu.png(100%) rename doc/guides/{prog_guide => nics}/img/inter_vm_comms.png (100%) rename doc/guides/{prog_guide => nics}/img/perf_benchmark.png (100%) rename doc/guides/{prog_guide => nics}/img/single_port_nic.png (100%) rename doc/guides/{prog_guide => nics}/img/vm_vm_comms.png (100%) rename doc/guides/{prog_guide => nics}/img/vmxnet3_int.png (100%) rename doc/guides/{prog_guide => nics}/img/vswitch_vm.png (100%) copy doc/guides/{ => nics}/index.rst (88%) rename
doc/guides/{prog_guide/i40e_ixgbe_igb_virt_func_drv.rst=>nics/intel_vf.rst} (99%) create mode 100644doc/guides/nics/ixgbe.rstrenamedoc/guides/{prog_guide/mlx4_poll_mode_drv.rst=>nics/mlx4.rst} (100%) renamedoc/guides/{prog_guide/libpcap_ring_based_poll_mode_drv.rst=>nics/pcap_ring.rst} (100%) renamedoc/guides/{prog_guide/poll_mode_drv_emulated_virtio_nic.rst=>nics/virtio.rst} (99%) renamedoc/guides/{prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst=>nics/vmxnet3.rst} (100%)MAINTAINERS +10
-5@@ -213,15 +213,20 @@ F: lib/librte_pmd_enic/ Intel e1000 F: lib/librte_pmd_e1000/ +F: doc/guides/nics/e1000em.rst +F: doc/guides/nics/intel_vf.rst Intel ixgbe M: Helin Zhang <[email protected]> M: Konstantin Ananyev <[email protected]> F: lib/librte_pmd_ixgbe/ +F: doc/guides/nics/ixgbe.rst +F: doc/guides/nics/intel_vf.rst Intel i40e M: Helin Zhang <[email protected]> F: lib/librte_pmd_i40e/ +F: doc/guides/nics/intel_vf.rst Intel fm10k M: Jing Chen <[email protected]>@@ -230,12 +235,12 @@ F: lib/librte_pmd_fm10k/ Mellanox mlx4 M: Adrien Mazarguil <[email protected]> F: lib/librte_pmd_mlx4/ -F: doc/guides/prog_guide/mlx4_poll_mode_drv.rst +F: doc/guides/nics/mlx4.rst RedHat virtio M: Changchun Ouyang <[email protected]> F: lib/librte_pmd_virtio/ -F: doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +F: doc/guides/nics/virtio.rst F: lib/librte_vhost/ F: doc/guides/prog_guide/vhost_lib.rst F: examples/vhost/@@ -244,16 +249,16 @@ F: doc/guides/sample_app_ug/vhost.rst VMware vmxnet3 M: Yong Wang <[email protected]> F: lib/librte_pmd_vmxnet3/ -F: doc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rst +F: doc/guides/nics/vmxnet3.rst PCAP PMD F: lib/librte_pmd_pcap/ -F: doc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rst +F: doc/guides/nics/pcap_ring.rst Ring PMD M: Bruce Richardson <[email protected]> F: lib/librte_pmd_ring/ -F: doc/guides/prog_guide/ring_lib.rst +F: doc/guides/nics/pcap_ring.rst F: app/test/test_pmd_ring.c Null PMDdoc/guides/index.rst index renamed from doc/guides/index.rst +0
-053f1be1..44e8432 100644
doc/guides/index.rst +1
-0@@ -41,6 +41,7 @@ Contents: freebsd_gsg/index xen/index prog_guide/index + nics/index sample_app_ug/index testpmd_app_ug/index rel_notes/index(quoted diff) +0
-0
b/doc/guides/nics/e1000em.rstsimilarity index 100% rename fromdoc/guides/prog_guide/driver_vm_emul_dev.rst
rename todoc/guides/nics/e1000em.rst(quoted diff) +0
-0b/doc/guides/nics/img/console.png similarity index 100% rename from doc/guides/prog_guide/img/console.png
rename to doc/guides/nics/img/console.png diff --git a/doc/guides/prog_guide/img/fast_pkt_proc.png b/doc/guides/nics/img/fast_pkt_proc.png
similarity index 100%
rename from doc/guides/prog_guide/img/fast_pkt_proc.png rename to doc/guides/nics/img/fast_pkt_proc.pngdoc/guides/nics/img/forward_stats.png renamed from doc/guides/prog_guide/img/forward_stats.png +0
-0doc/guides/nics/img/host_vm_comms.png renamed from doc/guides/prog_guide/img/host_vm_comms.png +0
-0doc/guides/nics/img/host_vm_comms_qemu.png renamed from doc/guides/prog_guide/img/host_vm_comms_qemu.png +0
-0doc/guides/nics/img/inter_vm_comms.png renamed from doc/guides/prog_guide/img/inter_vm_comms.png +0
-0doc/guides/nics/img/perf_benchmark.png renamed from doc/guides/prog_guide/img/perf_benchmark.png +0
-0doc/guides/nics/img/single_port_nic.png renamed from doc/guides/prog_guide/img/single_port_nic.png +0
-0doc/guides/nics/img/vm_vm_comms.png renamed from doc/guides/prog_guide/img/vm_vm_comms.png +0
-0doc/guides/nics/img/vmxnet3_int.png renamed from doc/guides/prog_guide/img/vmxnet3_int.png +0
-0doc/guides/nics/img/vswitch_vm.png renamed from doc/guides/prog_guide/img/vswitch_vm.png +0
-0doc/guides/nics/index.rst similarity index renamed from doc/guides/index.rst +0
-088% copy from
doc/guides/index.rstcopy todoc/guides/nics/index.rstindex 53f1be1..6eb2e94 100644doc/guides/nics/index.rst renamed from doc/guides/index.rst +0
-0@@ -28,19 +28,22 @@ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OFTHE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.doc/guides/nics/index.rst renamed from doc/guides/index.rst +16
-13-DPDK documentation -================== +Network Interface Controller Drivers +==================================== -Contents: +|today| + + +**Contents** .. toctree:: - :maxdepth: 1 - :titlesonly: - - linux_gsg/index - freebsd_gsg/index - xen/index - prog_guide/index - sample_app_ug/index - testpmd_app_ug/index - rel_notes/index + :maxdepth: 3 + :numbered: + + e1000em + ixgbe + intel_vf + mlx4 + virtio + vmxnet3 + pcap_ring(quoted diff) +0
-0
b/doc/guides/nics/intel_vf.rstsimilarity index 99% rename fromdoc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rstrename todoc/guides/nics/intel_vf.rst
index 68d7107..f97b68c 100644doc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0@@ -72,7 +72,7 @@ For more detail on SR-IOV, please refer to the followingdocuments:
* `Scalable I/O Virtualized Servers
<http://www.intel.com/content/www/us/en/virtualization/server-
virtualization/scalable-i-o-virtualized-servers-paper.html>`_-..
_pg_figure_10:
+.._nic_figure_1:**Figure 10. Virtualization for a Single Port NIC in SR-IOV Mode**
doc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0@@ -514,7 +514,7 @@ The setup procedure is as follows: * The Virtual Machine Monitor (see Figure 11) is equivalent to a Host OSwith KVM installed as described in the instructions.
-..
_pg_figure_11:
+.._nic_figure_2:**Figure 11. Performance Benchmark Setup**
doc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0@@ -538,7 +538,7 @@ DPI can be offloaded on the host fast path. Figure 12 shows the scenario where some VMs directly communicateexternally via a VFs, while others connect to a virtual switch and share the same uplink bandwidth.
-..
_pg_figure_12:
+.._nic_figure_3:**Figure 12. Fast Host-based Packet Processing**
doc/guides/nics/intel_vf.rst renamed from doc/guides/prog_guide/i40e_ixgbe_igb_virt_func_drv.rst +0
-0@@ -566,7 +566,7 @@ that is, the packet is forwarded to the correct PF pool. The SR-IOV NIC switch forwards the packet to a specific VM according to theMAC destination address which belongs to the destination VF on the VM.
-..
_pg_figure_13:
+.._nic_figure_4:**Figure 13. Inter-VM Communication**
doc/guides/nics/ixgbe.rst new file renamed from doc/guides/nics/ixgbe.rst +0
-0mode 100644 index 0000000..d2c124e
doc/guides/nics/ixgbe.rst new file +19
-0@@ -0,0 +1,184 @@ +.. BSD LICENSE + Copyright(c) 2010-2014 Intel Corporation. All rights reserved. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ANDCONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANYdoc/guides/nics/ixgbe.rst new file +2
-0+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OFTHE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.doc/guides/nics/ixgbe.rst new file +9
-0+ +IXGBE Driver +============ + +Vector PMD for IXGBE +-------------------- + +Vector PMD uses Intel® SIMD instructions to optimize packet I/O. +It improves load/store bandwidth efficiency of L1 data cache by using awider SSE/AVX register 1 (1).
+The wider register gives space to hold multiple packet buffers so as to save instruction number when processing bulk of packets.doc/guides/nics/ixgbe.rst new file +2
-0+ +There is no change to PMD API. The RX/TX handler are the only two entriesfor vPMD packet I/O.
+They are transparently registered at runtime RX/TX execution if all condition checks pass.doc/guides/nics/ixgbe.rst new file +3
-0+ +1. To date, only an SSE version of IX GBE vPMD is available. + To ensure that vPMD is in the binary code, ensure that the option
CONFIG_RTE_IXGBE_INC_VECTOR=yis in the configure file.doc/guides/nics/ixgbe.rst new file +2
-0+ +Some constraints apply as pre-conditions for specific optimizations on bulkpacket transfers.
doc/guides/nics/ixgbe.rst new file +13
-0+The following sections explain RX and TX constraints in the vPMD. + +RX Constraints +~~~~~~~~~~~~~~ + +Prerequisites and Pre-conditions +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The following prerequisites apply: + +* To enable vPMD to work for RX, bulk allocation for Rx must be allowed. + +* The RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=y configurationMACRO must be set before compiling the code.
doc/guides/nics/ixgbe.rst new file +10
-0+ +Ensure that the following pre-conditions are satisfied: + +* rxq->rx_free_thresh >= RTE_PMD_IXGBE_RX_MAX_BURST + +* rxq->rx_free_thresh < rxq->nb_rx_desc + +* (rxq->nb_rx_desc % rxq->rx_free_thresh) == 0 + +* rxq->nb_rx_desc < (IXGBE_MAX_RING_DESC -
RTE_PMD_IXGBE_RX_MAX_BURST)doc/guides/nics/ixgbe.rst new file +6
-0+ +These conditions are checked in the code. + +Scattered packets are not supported in this mode. +If an incoming packet is greater than the maximum acceptable length of +one "mbuf" data size (by default, the size is 2 KB), vPMD for RX would bedisabled.
doc/guides/nics/ixgbe.rst new file +2
-0+ +By default, IXGBE_MAX_RING_DESC is set to 4096 and
RTE_PMD_IXGBE_RX_MAX_BURSTis set to 32.doc/guides/nics/ixgbe.rst new file +5
-0+ +Feature not Supported by RX Vector PMD +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Some features are not supported when trying to increase the throughput invPMD.
doc/guides/nics/ixgbe.rst new file +11
-0+They are: + +* IEEE1588 + +* FDIR + +* Header split + +* RX checksum off load + +Other features are supported using optional MACRO configuration. Theyinclude:
doc/guides/nics/ixgbe.rst new file +9
-0+ +* HW VLAN strip + +* HW extend dual VLAN + +* Enabled by RX_OLFLAGS (RTE_IXGBE_RX_OLFLAGS_DISABLE=n) + + +To guarantee the constraint, configuration flags in dev_conf.rxmode will bechecked:
doc/guides/nics/ixgbe.rst new file +17
-0+ +* hw_vlan_strip + +* hw_vlan_extend + +* hw_ip_checksum + +* header_split + +* dev_conf + +fdir_conf->mode will also be checked. + +RX Burst Size +^^^^^^^^^^^^^ + +As vPMD is focused on high throughput, it assumes that the RX burst size isequal to or greater than 32 per burst.
+It returns zero if usingnb_pkt< 32 as the expected packet number in the receive handler.doc/guides/nics/ixgbe.rst new file +10
-0+ +TX Constraint +~~~~~~~~~~~~~ + +Prerequisite +^^^^^^^^^^^^ + +The only prerequisite is related to tx_rs_thresh. +The tx_rs_thresh value must be greater than or equal to +RTE_PMD_IXGBE_TX_MAX_BURST, but less or equal to
RTE_IXGBE_TX_MAX_FREE_BUF_SZ.doc/guides/nics/ixgbe.rst new file +8
-0+Consequently, by default the tx_rs_thresh value is in the range 32 to 64. + +Feature not Supported by RX Vector PMD +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +TX vPMD only works when txq_flags is set to IXGBE_SIMPLE_FLAGS. + +This means that it does not support TX multi-segment, VLAN offload and TXcsum offload.
doc/guides/nics/ixgbe.rst new file +28
-0+The following MACROs are used for these three features: + +* ETH_TXQ_FLAGS_NOMULTSEGS + +* ETH_TXQ_FLAGS_NOVLANOFFL + +* ETH_TXQ_FLAGS_NOXSUMSCTP + +* ETH_TXQ_FLAGS_NOXSUMUDP + +* ETH_TXQ_FLAGS_NOXSUMTCP + + +Sample Application Notes +~~~~~~~~~~~~~~~~~~~~~~~~ + +testpmd +^^^^^^^ + +By default, using CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=n: + +.. code-block:: console + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i + --burst=32 --rxfreet=32 --mbcache=250 --txpt=32 --rxht=8 --rxwt=0 + --txfreet=32 --txrst=32 --txqflags=0xf01 + +When CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=y, better performancecan be achieved:
doc/guides/nics/ixgbe.rst new file +8
-0+ +.. code-block:: console + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i + --burst=32 --rxfreet=32 --mbcache=250 --txpt=32 --rxht=8 --rxwt=0 + --txfreet=32 --txrst=32 --txqflags=0xf01 --disable-hw-vlan + +If scatter gather lists are not required, set
CONFIG_RTE_MBUF_SCATTER_GATHER=nfor better throughput.doc/guides/nics/ixgbe.rst new file +12
-0+ +l3fwd +^^^^^ + +When running l3fwd with vPMD, there is one thing to note. +In the configuration, ensure that port_conf.rxmode.hw_ip_checksum=0. +Otherwise, by default, RX vPMD is disabled. + +load_balancer +^^^^^^^^^^^^^ + +As in the case of l3fwd, set configureport_conf.rxmode.hw_ip_checksum=0 to enable vPMD.
+In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" inload_balancerto avoid using the default burst size of 144.(quoted diff) +0
-0
b/doc/guides/nics/mlx4.rstsimilarity index 100% rename fromdoc/guides/prog_guide/mlx4_poll_mode_drv.rstrename todoc/guides/nics/mlx4.rst(quoted diff) +0
-0
b/doc/guides/nics/pcap_ring.rstsimilarity index 100% rename fromdoc/guides/prog_guide/libpcap_ring_based_poll_mode_drv.rstrename todoc/guides/nics/pcap_ring.rst(quoted diff) +0
-0
b/doc/guides/nics/virtio.rstsimilarity index 99% rename fromdoc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rstrename todoc/guides/nics/virtio.rst
index 113a0cb..5e2a283 100644doc/guides/nics/virtio.rst renamed from doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +0
-0@@ -106,7 +106,7 @@ Virtio with kni vhost Back End This section demonstrates kni vhost back end example setup for Phy-VMCommunication.
-..
_pg_figure_14:
+.._nic_figure_5:**Figure 14. Host2VM Communication Example Using kni vhost Back End**
doc/guides/nics/virtio.rst renamed from doc/guides/prog_guide/poll_mode_drv_emulated_virtio_nic.rst +0
-0@@ -189,7 +189,7 @@ Host2VM communication example Virtio with qemuvirtio Back End
---------------------------------..
_pg_figure_15:
+.._nic_figure_6:**Figure 15. Host2VM Communication Example Using qemu vhost Back
End**diff --git
a/doc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rstb/doc/guides/nics/vmxnet3.rstsimilarity index 100% rename fromdoc/guides/prog_guide/poll_mode_drv_paravirtual_vmxnets_nic.rstrename todoc/guides/nics/vmxnet3.rst(quoted diff) +0
-0
b/doc/guides/prog_guide/index.rstindex b263d31..648757e 100644doc/guides/prog_guide/index.rst +0
-6@@ -48,12 +48,7 @@ Programmer's Guide mempool_lib mbuf_lib poll_mode_drv - i40e_ixgbe_igb_virt_func_drv - driver_vm_emul_dev ivshmem_lib - poll_mode_drv_emulated_virtio_nic - poll_mode_drv_paravirtual_vmxnets_nic - libpcap_ring_based_poll_mode_drv link_bonding_poll_mode_drv_lib mlx4_poll_mode_drv timer_lib@@ -104,18 +99,6 @@ Programmer's Guide :ref:`Figure 9. An mbuf with Three Segments <pg_figure_9>` -:ref:`Figure 10. Virtualization for a Single Port NIC in SR-IOV Mode<pg_figure_10>`
doc/guides/prog_guide/index.rst +0
-8- -:ref:`Figure 11. Performance Benchmark Setup <pg_figure_11>` - -:ref:`Figure 12. Fast Host-based Packet Processing <pg_figure_12>` - -:ref:`Figure 13. Inter-VM Communication <pg_figure_13>` - -:ref:`Figure 14. Host2VM Communication Example Using kni vhost Back End<pg_figure_14>`
-
-:ref:Figure 15. Host2VM Communication Example Using qemu vhost Back End <pg_figure_15>
-
:ref:`Figure 16. Memory Sharing inthe Intel® DPDK Multi-process Sample
Application <pg_figure_16>`:ref:`Figure 17. Components of an Intel® DPDK KNI Application
<pg_figure_17>` diff --gita/doc/guides/prog_guide/poll_mode_drv.rstb/doc/guides/prog_guide/poll_mode_drv.rst
index e9e1132..b8b2d1a 100644doc/guides/prog_guide/poll_mode_drv.rst +0
-6@@ -288,155 +288,3 @@ Ethernet Device API ~~~~~~~~~~~~~~~~~~~ The Ethernet device API exported by the Ethernet PMDs is described in the *DPDK API Reference*. - -Vector PMD for IXGBE --------------------- - -Vector PMD uses Intel® SIMD instructions to optimize packet I/O. -It improves load/store bandwidth efficiency of L1 data cache by using awider SSE/AVX register 1 (1).
-The wider register gives space to hold multiple packet buffers so as to save instruction number when processing bulk of packets.doc/guides/prog_guide/poll_mode_drv.rst +0
-2- -There is no change to PMD API. The RX/TX handler are the only two entriesfor vPMD packet I/O.
-They are transparently registered at runtime RX/TX execution if all condition checks pass.doc/guides/prog_guide/poll_mode_drv.rst +0
-3- -1. To date, only an SSE version of IX GBE vPMD is available. - To ensure that vPMD is in the binary code, ensure that the option
CONFIG_RTE_IXGBE_INC_VECTOR=yis in the configure file.doc/guides/prog_guide/poll_mode_drv.rst +0
-2- -Some constraints apply as pre-conditions for specific optimizations on bulkpacket transfers.
doc/guides/prog_guide/poll_mode_drv.rst +0
-13-The following sections explain RX and TX constraints in the vPMD. - -RX Constraints -~~~~~~~~~~~~~~ - -Prerequisites and Pre-conditions -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -The following prerequisites apply: - -* To enable vPMD to work for RX, bulk allocation for Rx must be allowed. - -* The RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=y configurationMACRO must be set before compiling the code.
doc/guides/prog_guide/poll_mode_drv.rst +0
-10- -Ensure that the following pre-conditions are satisfied: - -* rxq->rx_free_thresh >= RTE_PMD_IXGBE_RX_MAX_BURST - -* rxq->rx_free_thresh < rxq->nb_rx_desc - -* (rxq->nb_rx_desc % rxq->rx_free_thresh) == 0 - -* rxq->nb_rx_desc < (IXGBE_MAX_RING_DESC -
RTE_PMD_IXGBE_RX_MAX_BURST)doc/guides/prog_guide/poll_mode_drv.rst +0
-5- -These conditions are checked in the code. - -Scattered packets are not supported in this mode. -If an incoming packet is greater than the maximum acceptable length of one"mbuf" data size (by default, the size is 2 KB), -vPMD for RX would be disabled.
doc/guides/prog_guide/poll_mode_drv.rst +0
-2- -By default, IXGBE_MAX_RING_DESC is set to 4096 and
RTE_PMD_IXGBE_RX_MAX_BURSTis set to 32.doc/guides/prog_guide/poll_mode_drv.rst +0
-5- -Feature not Supported by RX Vector PMD -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Some features are not supported when trying to increase the throughput invPMD.
doc/guides/prog_guide/poll_mode_drv.rst +0
-11-They are: - -* IEEE1588 - -* FDIR - -* Header split - -* RX checksum off load - -Other features are supported using optional MACRO configuration. Theyinclude:
doc/guides/prog_guide/poll_mode_drv.rst +0
-9- -* HW VLAN strip - -* HW extend dual VLAN - -* Enabled by RX_OLFLAGS (RTE_IXGBE_RX_OLFLAGS_DISABLE=n) - - -To guarantee the constraint, configuration flags in dev_conf.rxmode will bechecked:
doc/guides/prog_guide/poll_mode_drv.rst +0
-17- -* hw_vlan_strip - -* hw_vlan_extend - -* hw_ip_checksum - -* header_split - -* dev_conf - -fdir_conf->mode will also be checked. - -RX Burst Size -^^^^^^^^^^^^^ - -As vPMD is focused on high throughput, it assumes that the RX burst size isequal to or greater than 32 per burst.
-It returns zero if usingnb_pkt< 32 as the expected packet number in the receive handler.doc/guides/prog_guide/poll_mode_drv.rst +0
-9- -TX Constraint -~~~~~~~~~~~~~ - -Prerequisite -^^^^^^^^^^^^ - -The only prerequisite is related to tx_rs_thresh. -The tx_rs_thresh value must be greater than or equal to
RTE_PMD_IXGBE_TX_MAX_BURST, -but less or equal toRTE_IXGBE_TX_MAX_FREE_BUF_SZ.doc/guides/prog_guide/poll_mode_drv.rst +0
-8-Consequently, by default the tx_rs_thresh value is in the range 32 to 64. - -Feature not Supported by RX Vector PMD -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -TX vPMD only works when txq_flags is set to IXGBE_SIMPLE_FLAGS. - -This means that it does not support TX multi-segment, VLAN offload and TXcsum offload.
doc/guides/prog_guide/poll_mode_drv.rst +0
-24-The following MACROs are used for these three features: - -* ETH_TXQ_FLAGS_NOMULTSEGS - -* ETH_TXQ_FLAGS_NOVLANOFFL - -* ETH_TXQ_FLAGS_NOXSUMSCTP - -* ETH_TXQ_FLAGS_NOXSUMUDP - -* ETH_TXQ_FLAGS_NOXSUMTCP - - -Sample Application Notes -~~~~~~~~~~~~~~~~~~~~~~~~ - -testpmd -^^^^^^^ - -By default, using CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=n: - -.. code-block:: console - - ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i --burst=32 --rxfreet=32 --mbcache=250 --txpt=32 --rxht=8 --rxwt=0 --txfreet=32 -- txrst=32 --txqflags=0xf01
doc/guides/prog_guide/poll_mode_drv.rst +0
-2- -When CONFIG_RTE_IXGBE_RX_OLFLAGS_DISABLE=y, better performancecan be achieved:
doc/guides/prog_guide/poll_mode_drv.rst +0
-4- -.. code-block:: console - - ./x86_64-native-linuxapp-gcc/app/testpmd -c 300 -n 4 -- -i --burst=32 --rxfreet=32 --mbcache=250 --txpt=32 --rxht=8 --rxwt=0 --txfreet=32 -- txrst=32 --txqflags=0xf01 --disable-hw-vlan
doc/guides/prog_guide/poll_mode_drv.rst +0
-2- -If scatter gather lists are not required, set
CONFIG_RTE_MBUF_SCATTER_GATHER=nfor better throughput.doc/guides/prog_guide/poll_mode_drv.rst +0
-12- -l3fwd -^^^^^ - -When running l3fwd with vPMD, there is one thing to note. -In the configuration, ensure that port_conf.rxmode.hw_ip_checksum=0. -Otherwise, by default, RX vPMD is disabled. - -load_balancer -^^^^^^^^^^^^^ - -As in the case of l3fwd, set configure port_conf.rxmode.hw_ip_checksum=0
Quoted 5 lines
to enable vPMD.
-In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" inload_balancerto avoid using the default burst size of 144.
--
2.2.2
Acked-by Siobhan Butler <[email protected]>
Re: [PATCH v2 0/3] split programmers guide a bit
In reply to a message not in the archive2015-03-19 17:48, Thomas Monjalon:
Quoted 13 lines
Too many things are included in the programmers guide.
I think it should cover only API and knowledge needed to make an application. That's why I suggest to move Xen and NICs doc outside.
Then it will be easier to add doc for a new environment or a new NIC. Note that drivers or device-related libs like KNI, vhost or bonding stay in the programmer's guide because they are more high-level than NICs drivers.Changes in v2:
- create index for Xen guide
- rename figure links
- rebase with mlx4
- HTML copyright removal has been sent separately
Quoted 4 lines
Thomas Monjalon (3):
doc: fix file attributes
doc: move Xen guide out of programmers guide
doc: nics guide
Applied with figures list restored on Bernard's request.
Re: [PATCH v2 0/3] split programmers guide a bit
Quoted 23 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Tuesday, March 31, 2015 12:38 AM
To: Butler, Siobhan A
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH v2 0/3] split programmers guide a bit2015-03-19 17:48, Thomas Monjalon:
Quoted 2 lines
Too many things are included in the programmers guide. I think it should cover only API and knowledge needed to make an
application.
Quoted 4 lines
That's why I suggest to move Xen and NICs doc outside. Then it will be easier to add doc for a new environment or a new NIC. Note that drivers or device-related libs like KNI, vhost or bonding stay in the programmer's guide because they are more high-level than
NICs drivers.
Quoted 7 lines
Changes in v2:
- create index for Xen guide
- rename figure links
- rebase with mlx4
- HTML copyright removal has been sent separately
Quoted 6 lines
Quoted 4 lines
Thomas Monjalon (3):
doc: fix file attributes
doc: move Xen guide out of programmers guide
doc: nics guideApplied with figures list restored on Bernard's request.
Hi,
Any objection to an additional patch to move the figure captions below the figures in the docs?
The caption above the figure was the format used in the initial docs, and it looks okay in the HTML output, but in the PDF output it tends to get merged into the preceding paragraph and isn't always on the same page as the figure.
John
A message that is not in the archive (sent off-list or not yet received): B27915DBBA3421428155699D51E4CFE2F001CD-kPTMFJFq+rELt2AQoY/[email protected]
Re: [PATCH v2 0/3] split programmers guide a bit
2015-03-31 11:34, Mcnamara, John:
Quoted 2 lines
Any objection to an additional patch to move the figure captions below the figures in the docs?
No objection.
We should use figure:: keyword instead of image:: to add a caption.
Quoted 4 lines
The caption above the figure was the format used in the initial docs, and it looks okay in the HTML output, but in the PDF output it tends to get merged into the preceding paragraph and isn't always on the same page as the figure.
Yes, it's a bit strange.
Why moving it below will ensure to keep it in the same page? I think figure:: keyword may solve it.
Re: [PATCH v2 0/3] split programmers guide a bit
Quoted 16 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Tuesday, March 31, 2015 1:23 PM
To: Mcnamara, John
Cc: Butler, Siobhan A; Iremonger, Bernard; [email protected]
Subject: Re: [dpdk-dev] [PATCH v2 0/3] split programmers guide a bit2015-03-31 11:34, Mcnamara, John:
Quoted 2 lines
Any objection to an additional patch to move the figure captions below the figures in the docs?
No objection.
We should use figure:: keyword instead of image:: to add a caption.
Quoted 8 lines
Quoted 4 lines
The caption above the figure was the format used in the initial docs, and it looks okay in the HTML output, but in the PDF output it tends to get merged into the preceding paragraph and isn't always on the same page as the figure.
Yes, it's a bit strange.
Why moving it below will ensure to keep it in the same page? I think figure:: keyword may solve it.
Hi John,
My preference would be to keep the caption above the figure.
This was the way it was done in the original 1.7 MSword documents (the starting point for the conversion to rst files).
Regards,
Bernard
A message that is not in the archive (sent off-list or not yet received): 8CEF83825BEC744B83065625E567D7C204A0B91F-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org
Re: [PATCH v2 0/3] split programmers guide a bit
Quoted 23 lines
-----Original Message-----
From: Iremonger, Bernard
Sent: Wednesday, April 1, 2015 10:19 AM
To: Thomas Monjalon; Mcnamara, John
Cc: Butler, Siobhan A; [email protected]
Subject: RE: [dpdk-dev] [PATCH v2 0/3] split programmers guide a bitQuoted 8 lines
2015-03-31 11:34, Mcnamara, John:
Quoted 2 lines
Any objection to an additional patch to move the figure captions below the figures in the docs?
No objection.
We should use figure:: keyword instead of image:: to add a caption.Quoted 8 lines
Quoted 4 lines
The caption above the figure was the format used in the initial docs, and it looks okay in the HTML output, but in the PDF output it tends to get merged into the preceding paragraph and isn't always on the same page as the figure.
Yes, it's a bit strange.
Why moving it below will ensure to keep it in the same page? I think figure:: keyword may solve it.
Quoted 5 lines
Hi John,
My preference would be to keep the caption above the figure. This was the way it was done in the original 1.7 MSword documents (the starting point for the conversion to rst files).
Hi Bernard,
I don't mind the caption above. I'm mainly concerned with it staying with the image.
To do this we need to use the figure:: keyword as Thomas suggested. However, there are some knock on effects from this.
* As far as I can see, we can't just replace with image:: with figure:: in the |image-name| substitution definitions since Sphinx or RST doesn't support it.
* This means that the |image-name| substitutions will have to change back to explicit .. figure:: declarations. Not a big deal.
* The captions have to be under the image. I don't see a way to configure it to be on top. It may be possible in LaTex but not in Html.
* We should also modify the table captions in the same way.
So at this point I'm sorry I brought it up. I can post a programmatically generated patch as an RFC if there is interest in seeing what the updated output would look like.
The main positive is that it would give us automatic* figure/table numbering in Html and PDF and the captioning looks quite good. (*This requires Sphinx 1.3).
John
A message that is not in the archive (sent off-list or not yet received): B27915DBBA3421428155699D51E4CFE2F01048-kPTMFJFq+rELt2AQoY/[email protected]
Re: [PATCH v2 0/3] split programmers guide a bit
Quoted 53 lines
-----Original Message-----
From: Mcnamara, John
Sent: Wednesday, April 1, 2015 5:37 PM
To: Iremonger, Bernard; Thomas Monjalon
Cc: Butler, Siobhan A; [email protected]
Subject: RE: [dpdk-dev] [PATCH v2 0/3] split programmers guide a bitQuoted 23 lines
-----Original Message-----
From: Iremonger, Bernard
Sent: Wednesday, April 1, 2015 10:19 AM
To: Thomas Monjalon; Mcnamara, John
Cc: Butler, Siobhan A; [email protected]
Subject: RE: [dpdk-dev] [PATCH v2 0/3] split programmers guide a bitQuoted 8 lines
2015-03-31 11:34, Mcnamara, John:
Quoted 2 lines
Any objection to an additional patch to move the figure captions below the figures in the docs?
No objection.
We should use figure:: keyword instead of image:: to add a caption.Quoted 8 lines
Quoted 4 lines
The caption above the figure was the format used in the initial docs, and it looks okay in the HTML output, but in the PDF output it tends to get merged into the preceding paragraph and isn't always on the same page as the figure.
Yes, it's a bit strange.
Why moving it below will ensure to keep it in the same page? I think figure:: keyword may solve it.Quoted 5 lines
Hi John,
My preference would be to keep the caption above the figure. This was the way it was done in the original 1.7 MSword documents (the starting point for the conversion to rst files).
Hi Bernard,
I don't mind the caption above. I'm mainly concerned with it staying with the image.
To do this we need to use the figure:: keyword as Thomas suggested. However, there are some knock on effects from this.
* As far as I can see, we can't just replace with image:: with figure:: in the |image-name| substitution definitions since Sphinx or RST doesn't support it.
* This means that the |image-name| substitutions will have to change back to explicit .. figure::
declarations. Not a big deal.
* The captions have to be under the image. I don't see a way to configure it to be on top. It may be possible in LaTex but not in Html.
* We should also modify the table captions in the same way.
Quoted 8 lines
So at this point I'm sorry I brought it up. I can post a programmatically generated patch as an RFC if there is interest in seeing what the updated output would look like.
The main positive is that it would give us automatic* figure/table numbering in Html and PDF and the captioning looks quite good. (*This requires Sphinx 1.3).
John
Hi John,
I am not sure why the captions have to be under the images.
At present the captions are just a bold line of text before the image in the rst files for example, **Figure 17. Components of a DPDK KNI Application**
This will probably affect the cross reference links as well or does the automatic numbering work with the links as well.
Regards,
Bernard
A message that is not in the archive (sent off-list or not yet received): 8CEF83825BEC744B83065625E567D7C204A0BAB5-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org
Re: [PATCH v2 0/3] split programmers guide a bit
Quoted 12 lines
-----Original Message-----
From: Iremonger, Bernard
Sent: Wednesday, April 1, 2015 6:20 PM
To: Mcnamara, John; Thomas Monjalon
Cc: Butler, Siobhan A; [email protected]
Subject: RE: [dpdk-dev] [PATCH v2 0/3] split programmers guide a bitQuoted 2 lines
The main positive is that it would give us automatic* figure/table numbering in Html and PDF and the captioning looks quite good. (*This
requires Sphinx 1.3).
Quoted 1 line
Quoted 8 lines
Quoted 2 lines
John
Hi John,
I am not sure why the captions have to be under the images. At present the captions are just a bold line of text before the image in the rst files for example, **Figure 17. Components of a DPDK KNI Application**
Hi Bernard,
The issue with the current solution is that the caption isn't tied to the image in any way and the pdf formatter frequently puts it on a separate page. Unfortunately, the solution to that issue, to use figure:: instead of image::, doesn't support captions above the image. If it did I would be happy to leave the placement as it is.
Quoted 2 lines
This will probably affect the cross reference links as well or does the automatic numbering work with the links as well.
The automatic numbering can be added to the cross references as well. I'll submit an RFC patch and you can try it out and see if it is worth changing.
John
RFC 1/1 doc: refactored figure numbers into references
In reply to a message not in the archiveThe is an RFC patch demonstrating automatic figure references in the documentation. The figure numbers in the generated Html and PDF docs with by automatically numbered based on section. Requires Sphinx >= 1.3.
The patch makes the following changes.
* Changes image:: tag to figure:: and moves image caption to the figure.
* Adds captions to figures that didn't previously have any.
* Un-templates the |image-name| substitution definitions into explicit figure:: tags. They weren't used more than once anyway and Sphinx doesn't support them for figure.
* Adds a target to each image that didn't previously have one so that they can be cross-referenced.
* Renamed existing image target to match the image name for consistency.
* Replaces the Figures lists with automatic :numref:
:ref: entries to generate automatic numbering and captions.
* Replaces "Figure" references with automatic :numref:
references.
Note: a V2 patch would be required to do the same for
tables.
--- doc/guides/conf.py | 2 + doc/guides/nics/index.rst | 18 ++- doc/guides/nics/intel_vf.rst | 37 ++--- doc/guides/nics/virtio.rst | 18 ++- doc/guides/nics/vmxnet3.rst | 18 ++- doc/guides/prog_guide/env_abstraction_layer.rst | 8 +- doc/guides/prog_guide/index.rst | 92 +++++++----- doc/guides/prog_guide/ivshmem_lib.rst | 8 +- doc/guides/prog_guide/kernel_nic_interface.rst | 40 ++--- .../prog_guide/link_bonding_poll_mode_drv_lib.rst | 43 ++++-- doc/guides/prog_guide/lpm6_lib.rst | 8 +- doc/guides/prog_guide/lpm_lib.rst | 8 +- doc/guides/prog_guide/malloc_lib.rst | 9 +- doc/guides/prog_guide/mbuf_lib.rst | 20 +-- doc/guides/prog_guide/mempool_lib.rst | 32 ++-- doc/guides/prog_guide/multi_proc_support.rst | 9 +- doc/guides/prog_guide/overview.rst | 9 +- doc/guides/prog_guide/packet_distrib_lib.rst | 15 +- doc/guides/prog_guide/packet_framework.rst | 81 +++++----- doc/guides/prog_guide/qos_framework.rst | 163 +++++++-------------- doc/guides/prog_guide/ring_lib.rst | 159 +++++++++++--------- doc/guides/sample_app_ug/dist_app.rst | 20 ++- doc/guides/sample_app_ug/exception_path.rst | 8 +- doc/guides/sample_app_ug/index.rst | 58 ++++---- doc/guides/sample_app_ug/intel_quickassist.rst | 11 +- doc/guides/sample_app_ug/kernel_nic_interface.rst | 9 +- doc/guides/sample_app_ug/l2_forward_job_stats.rst | 23 +-- .../sample_app_ug/l2_forward_real_virtual.rst | 22 +-- .../sample_app_ug/l3_forward_access_ctrl.rst | 21 ++- doc/guides/sample_app_ug/load_balancer.rst | 9 +- doc/guides/sample_app_ug/multi_process.rst | 36 ++--- doc/guides/sample_app_ug/qos_scheduler.rst | 9 +- doc/guides/sample_app_ug/quota_watermark.rst | 36 ++--- doc/guides/sample_app_ug/test_pipeline.rst | 9 +- doc/guides/sample_app_ug/vhost.rst | 45 ++---- doc/guides/sample_app_ug/vm_power_management.rst | 18 +-- doc/guides/sample_app_ug/vmdq_dcb_forwarding.rst | 11 +- doc/guides/xen/pkt_switch.rst | 30 ++-- 38 files changed, 539 insertions(+), 633 deletions(-)
doc/guides/conf.py +2 -0
@@ -41,6 +41,8 @@ release = version master_doc = 'index' +numfig = True + latex_documents = [ ('index', 'doc.tex',
doc/guides/nics/index.rst +12 -6
@@ -50,14 +50,20 @@ Network Interface Controller Drivers **Figures** -:ref:`Figure 1. Virtualization for a Single Port NIC in SR-IOV Mode <nic_figure_1>` +:numref:`figure_single_port_nic` :ref:`figure_single_port_nic` -:ref:`Figure 2. SR-IOV Performance Benchmark Setup <nic_figure_2>` +:numref:`figure_perf_benchmark` :ref:`figure_perf_benchmark` -:ref:`Figure 3. Fast Host-based Packet Processing <nic_figure_3>` +:numref:`figure_fast_pkt_proc` :ref:`figure_fast_pkt_proc` -:ref:`Figure 4. SR-IOV Inter-VM Communication <nic_figure_4>` +:numref:`figure_inter_vm_comms` :ref:`figure_inter_vm_comms` -:ref:`Figure 5. Virtio Host2VM Communication Example Using KNI vhost Back End <nic_figure_5>` +:numref:`figure_host_vm_comms` :ref:`figure_host_vm_comms` -:ref:`Figure 6. Virtio Host2VM Communication Example Using Qemu vhost Back End <nic_figure_6>` +:numref:`figure_host_vm_comms_qemu` :ref:`figure_host_vm_comms_qemu` + +:numref:`figure_vmxnet3_int` :ref:`figure_vmxnet3_int` + +:numref:`figure_vswitch_vm` :ref:`figure_vswitch_vm` + +:numref:`figure_vm_vm_comms` :ref:`figure_vm_vm_comms`
doc/guides/nics/intel_vf.rst +20 -17
@@ -49,9 +49,9 @@ SR-IOV Mode Utilization in a DPDK Environment The DPDK uses the SR-IOV feature for hardware-based I/O sharing in IOV mode. Therefore, it is possible to partition SR-IOV capability on Ethernet controller NIC resources logically and expose them to a virtual machine as a separate PCI function called a "Virtual Function". -Refer to Figure 10. +Refer to :numref:`figure_single_port_nic`. -Therefore, a NIC is logically distributed among multiple virtual machines (as shown in Figure 10), +Therefore, a NIC is logically distributed among multiple virtual machines (as shown in :numref:`figure_single_port_nic`), while still having global data in common to share with the Physical Function and other Virtual Functions. The DPDK fm10kvf, i40evf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller, Intel® Ethernet Controller I350 family, Intel® 82599 10 Gigabit Ethernet Controller NIC,
@@ -72,11 +72,12 @@ For more detail on SR-IOV, please refer to the following documents: * `Scalable I/O Virtualized Servers <http://www.intel.com/content/www/us/en/virtualization/server-virtualization/scalable-i-o-virtualized-servers-paper.html>`_ -.. _nic_figure_1: +.. _figure_single_port_nic: -**Figure 1. Virtualization for a Single Port NIC in SR-IOV Mode** +.. figure:: img/single_port_nic.* + + Virtualization for a Single Port NIC in SR-IOV Mode -.. image:: img/single_port_nic.* Physical and Virtual Function Infrastructure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -548,13 +549,14 @@ The setup procedure is as follows: can also be used to bind and unbind devices to a virtual machine in Ubuntu. If this option is used, step 6 in the instructions provided will be different. - * The Virtual Machine Monitor (see Figure 11) is equivalent to a Host OS with KVM installed as described in the instructions. + * The Virtual Machine Monitor (see :numref:`figure_perf_benchmark`) is equivalent to a Host OS with KVM installed as described in the instructions. + +.. _figure_perf_benchmark: -.. _nic_figure_2: +.. figure:: img/perf_benchmark.* -**Figure 2. Performance Benchmark Setup** + Performance Benchmark Setup -.. image:: img/perf_benchmark.* DPDK SR-IOV PMD PF/VF Driver Usage Model ----------------------------------------
@@ -569,14 +571,15 @@ the DPDK VF PMD driver performs the same throughput result as a non-VT native en With such host instance fast packet processing, lots of services such as filtering, QoS, DPI can be offloaded on the host fast path. -Figure 12 shows the scenario where some VMs directly communicate externally via a VFs, +:numref:`figure_fast_pkt_proc` shows the scenario where some VMs directly communicate externally via a VFs, while others connect to a virtual switch and share the same uplink bandwidth. -.. _nic_figure_3: +.. _figure_fast_pkt_proc: + +.. figure:: img/fast_pkt_proc.* -**Figure 3. Fast Host-based Packet Processing** + Fast Host-based Packet Processing -.. image:: img/fast_pkt_proc.* SR-IOV (PF/VF) Approach for Inter-VM Communication --------------------------------------------------
@@ -587,7 +590,7 @@ So VF-to-VF traffic within the same physical port (VM0<->VM1) have hardware acce However, when VF crosses physical ports (VM0<->VM2), there is no such hardware bridge. In this case, the DPDK PMD PF driver provides host forwarding between such VMs. -Figure 13 shows an example. +:numref:`figure_inter_vm_comms` shows an example. In this case an update of the MAC address lookup tables in both the NIC and host DPDK application is required. In the NIC, writing the destination of a MAC address belongs to another cross device VM to the PF specific pool.
@@ -598,8 +601,8 @@ that is, the packet is forwarded to the correct PF pool. The SR-IOV NIC switch forwards the packet to a specific VM according to the MAC destination address which belongs to the destination VF on the VM. -.. _nic_figure_4: +.. _figure_inter_vm_comms: -**Figure 4. Inter-VM Communication** +.. figure:: img/inter_vm_comms.* -.. image:: img/inter_vm_comms.* + Inter-VM Communication
doc/guides/nics/virtio.rst +11 -7
@@ -106,11 +106,12 @@ Virtio with kni vhost Back End This section demonstrates kni vhost back end example setup for Phy-VM Communication. -.. _nic_figure_5: +.. _figure_host_vm_comms: -**Figure 5. Host2VM Communication Example Using kni vhost Back End** +.. figure:: img/host_vm_comms.* + + Host2VM Communication Example Using kni vhost Back End -.. image:: img/host_vm_comms.* Host2VM communication example
@@ -174,7 +175,9 @@ Host2VM communication example We use testpmd as the forwarding application in this example. - .. image:: img/console.* + .. figure:: img/console.* + + Running testpmd #. Use IXIA packet generator to inject a packet stream into the KNI physical port.
@@ -185,11 +188,12 @@ Host2VM communication example Virtio with qemu virtio Back End -------------------------------- -.. _nic_figure_6: +.. _figure_host_vm_comms_qemu: + +.. figure:: img/host_vm_comms_qemu.* -**Figure 6. Host2VM Communication Example Using qemu vhost Back End** + Host2VM Communication Example Using qemu vhost Back End -.. image:: img/host_vm_comms_qemu.* .. code-block:: console
doc/guides/nics/vmxnet3.rst +15 -3
@@ -121,7 +121,11 @@ The following prerequisites apply: * Before starting a VM, a VMXNET3 interface to a VM through VMware vSphere Client must be assigned. This is shown in the figure below. -.. image:: img/vmxnet3_int.* +.. _figure_vmxnet3_int: + +.. figure:: img/vmxnet3_int.* + + Assigning a VMXNET3 interface to a VM using VMware vSphere Client .. note::
@@ -142,7 +146,11 @@ VMXNET3 with a Native NIC Connected to a vSwitch This section describes an example setup for Phy-vSwitch-VM-Phy communication. -.. image:: img/vswitch_vm.* +.. _figure_vswitch_vm: + +.. figure:: img/vswitch_vm.* + + VMXNET3 with a Native NIC Connected to a vSwitch .. note::
@@ -159,7 +167,11 @@ VMXNET3 Chaining VMs Connected to a vSwitch The following figure shows an example VM-to-VM communication over a Phy-VM-vSwitch-VM-Phy communication channel. -.. image:: img/vm_vm_comms.* +.. _figure_vm_vm_comms: + +.. figure:: img/vm_vm_comms.* + + VMXNET3 Chaining VMs Connected to a vSwitch .. note::
doc/guides/prog_guide/env_abstraction_layer.rst +3 -5
@@ -85,13 +85,12 @@ A check is also performed at initialization time to ensure that the micro archit Then, the main() function is called. The core initialization and launch is done in rte_eal_init() (see the API documentation). It consist of calls to the pthread library (more specifically, pthread_self(), pthread_create(), and pthread_setaffinity_np()). -.. _pg_figure_2: +.. _figure_linuxapp_launch: -**Figure 2. EAL Initialization in a Linux Application Environment** +.. figure:: img/linuxapp_launch.* -.. image3_png has been replaced + EAL Initialization in a Linux Application Environment -|linuxapp_launch| .. note::
@@ -367,4 +366,3 @@ We expect only 50% of CPU spend on packet IO. echo 50000 > pkt_io/cpu.cfs_quota_us -.. |linuxapp_launch| image:: img/linuxapp_launch.*
doc/guides/prog_guide/index.rst +59 -33
130 lines not on this page · raw message
doc/guides/prog_guide/ivshmem_lib.rst +4 -4
@@ -43,9 +43,11 @@ they are automatically recognized by the DPDK Environment Abstraction Layer (EAL A typical DPDK IVSHMEM use case looks like the following. -.. image28_png has been renamed -|ivshmem| +.. figure:: img/ivshmem.* + + Typical Ivshmem use case + The same could work with several virtual machines, providing host-to-VM or VM-to-VM communication. The maximum number of metadata files is 32 (by default) and each metadata file can contain different (or even the same) hugepages.
@@ -154,5 +156,3 @@ It is important to note that once QEMU is started, it holds on to the hugepages As a result, if the user wishes to shut down or restart the IVSHMEM host application, it is not enough to simply shut the application down. The virtual machine must also be shut down (if not, it will hold onto outdated host data). - -.. |ivshmem| image:: img/ivshmem.*
doc/guides/prog_guide/kernel_nic_interface.rst +14 -26
@@ -42,15 +42,14 @@ The benefits of using the DPDK KNI are: * Allows an interface with the kernel network stack. -The components of an application using the DPDK Kernel NIC Interface are shown in Figure 17. +The components of an application using the DPDK Kernel NIC Interface are shown in :numref:`figure_kernel_nic_intf`. -.. _pg_figure_17: +.. _figure_kernel_nic_intf: -**Figure 17. Components of a DPDK KNI Application** +.. figure:: img/kernel_nic_intf.* -.. image43_png has been renamed + Components of a DPDK KNI Application -|kernel_nic_intf| The DPDK KNI Kernel Module --------------------------
@@ -114,15 +113,14 @@ To minimize the amount of DPDK code running in kernel space, the mbuf mempool is The kernel module will be aware of mbufs, but all mbuf allocation and free operations will be handled by the DPDK application only. -Figure 18 shows a typical scenario with packets sent in both directions. +:numref:`figure_pkt_flow_kni` shows a typical scenario with packets sent in both directions. -.. _pg_figure_18: +.. _figure_pkt_flow_kni: -**Figure 18. Packet Flow via mbufs in the DPDK KNI** +.. figure:: img/pkt_flow_kni.* -.. image44_png has been renamed + Packet Flow via mbufs in the DPDK KNI -|pkt_flow_kni| Use Case: Ingress -----------------
@@ -189,13 +187,12 @@ it naturally supports both legacy virtio -net and the DPDK PMD virtio. There is a little penalty that comes from the non-polling mode of vhost. However, it scales throughput well when using KNI in multi-thread mode. -.. _pg_figure_19: +.. _figure_vhost_net_arch2: -**Figure 19. vHost-net Architecture Overview** +.. figure:: img/vhost_net_arch.* -.. image45_png has been renamed + vHost-net Architecture Overview -|vhost_net_arch| Packet Flow ~~~~~~~~~~~
@@ -208,13 +205,12 @@ All the packet copying, irrespective of whether it is on the transmit or receive happens in the context of vhost kthread. Every vhost-net device is exposed to a front end virtio device in the guest. -.. _pg_figure_20: +.. _figure_kni_traffic_flow: -**Figure 20. KNI Traffic Flow** +.. figure:: img/kni_traffic_flow.* -.. image46_png has been renamed + KNI Traffic Flow -|kni_traffic_flow| Sample Usage ~~~~~~~~~~~~
@@ -280,11 +276,3 @@ since the kni-vhost does not yet support those features. Even if the option is turned on, kni-vhost will ignore the information that the header contains. When working with legacy virtio on the guest, it is better to turn off unsupported offload features using ethtool -K. Otherwise, there may be problems such as an incorrect L4 checksum error. - -.. |kni_traffic_flow| image:: img/kni_traffic_flow.* - -.. |vhost_net_arch| image:: img/vhost_net_arch.* - -.. |pkt_flow_kni| image:: img/pkt_flow_kni.* - -.. |kernel_nic_intf| image:: img/kernel_nic_intf.*
doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst +28 -15
88 lines not on this page · raw message
doc/guides/prog_guide/lpm6_lib.rst +4 -4
@@ -108,9 +108,11 @@ This is not feasible due to resource restrictions. By splitting the process in different tables/levels and limiting the number of tbl8s, we can greatly reduce memory consumption while maintaining a very good lookup speed (one memory access per level). -.. image40_png has been renamed -|tbl24_tbl8_tbl8| +.. figure:: img/tbl24_tbl8_tbl8.* + + Table split into different levels + An entry in a table contains the following fields:
@@ -231,5 +233,3 @@ Use Case: IPv6 Forwarding ------------------------- The LPM algorithm is used to implement the Classless Inter-Domain Routing (CIDR) strategy used by routers implementing IP forwarding. - -.. |tbl24_tbl8_tbl8| image:: img/tbl24_tbl8_tbl8.*
doc/guides/prog_guide/lpm_lib.rst +4 -4
@@ -90,9 +90,11 @@ Instead, this approach takes advantage of the fact that rules longer than 24 bit By splitting the process in two different tables/levels and limiting the number of tbl8s, we can greatly reduce memory consumption while maintaining a very good lookup speed (one memory access, most of the times). -.. image39 has been renamed -|tbl24_tbl8| +.. figure:: img/tbl24_tbl8.* + + Table split into different levels + An entry in tbl24 contains the following fields:
@@ -219,5 +221,3 @@ References * Pankaj Gupta, Algorithms for Routing Lookups and Packet Classification, PhD Thesis, Stanford University, 2000 (`http://klamath.stanford.edu/~pankaj/thesis/ thesis_1sided.pdf <http://klamath.stanford.edu/~pankaj/thesis/%20thesis_1sided.pdf>`_ ) - -.. |tbl24_tbl8| image:: img/tbl24_tbl8.*
doc/guides/prog_guide/malloc_lib.rst +3 -6
@@ -117,13 +117,12 @@ The key fields of the heap structure and their function are described below (see since these are never touched except when they are to be freed again - at which point the pointer to the block is an input to the free() function. -.. _pg_figure_3: +.. _figure_malloc_heap: -**Figure 3. Example of a malloc heap and malloc elements within the malloc library** +.. figure:: img/malloc_heap.* -.. image4_png has been renamed + Example of a malloc heap and malloc elements within the malloc library -|malloc_heap| Structure: malloc_elem ^^^^^^^^^^^^^^^^^^^^^^
@@ -232,5 +231,3 @@ These next and previous elements are then checked to see if they too are free, and if so, they are merged with the current elements. This means that we can never have two free memory blocks adjacent to one another, they are always merged into a single block. - -.. |malloc_heap| image:: img/malloc_heap.*
doc/guides/prog_guide/mbuf_lib.rst +7 -13
@@ -71,23 +71,21 @@ Message buffers may be used to carry control information, packets, events, and so on between different entities in the system. Message buffers may also use their buffer pointers to point to other message buffer data sections or other structures. -Figure 8 and Figure 9 show some of these scenarios. +:numref:`figure_mbuf1` and :numref:`figure_mbuf2` show some of these scenarios. -.. _pg_figure_8: +.. _figure_mbuf1: -**Figure 8. An mbuf with One Segment** +.. figure:: img/mbuf1.* -.. image22_png has been replaced + An mbuf with One Segment -|mbuf1| -.. _pg_figure_9: +.. _figure_mbuf2: -**Figure 9. An mbuf with Three Segments** +.. figure:: img/mbuf2.* -.. image23_png has been replaced + An mbuf with Three Segments -|mbuf2| The Buffer Manager implements a fairly standard set of buffer access functions to manipulate network packets.
@@ -277,7 +275,3 @@ Use Cases --------- All networking application should use mbufs to transport network packets. - -.. |mbuf1| image:: img/mbuf1.* - -.. |mbuf2| image:: img/mbuf2.*
doc/guides/prog_guide/mempool_lib.rst +12 -20
@@ -74,28 +74,27 @@ When running an application, the EAL command line options provide the ability to The command line must always have the number of memory channels specified for the processor. -Examples of alignment for different DIMM architectures are shown in Figure 5 and Figure 6. +Examples of alignment for different DIMM architectures are shown in +:numref:`figure_memory-management` and :numref:`figure_memory-management2`. -.. _pg_figure_5: +.. _figure_memory-management: -**Figure 5. Two Channels and Quad-ranked DIMM Example** +.. figure:: img/memory-management.* -.. image19_png has been replaced + Two Channels and Quad-ranked DIMM Example -|memory-management| In this case, the assumption is that a packet is 16 blocks of 64 bytes, which is not true. The Intel® 5520 chipset has three channels, so in most cases, no padding is required between objects (except for objects whose size are n x 3 x 64 bytes blocks). -.. _pg_figure_6: +.. _figure_memory-management2: -**Figure 6. Three Channels and Two Dual-ranked DIMM Example** +.. figure:: img/memory-management2.* -.. image20_png has been replaced + Three Channels and Two Dual-ranked DIMM Example -|memory-management2| When creating a new pool, the user can specify to use this feature or not.
@@ -119,15 +118,14 @@ This cache can be enabled or disabled at creation of the pool. The maximum size of the cache is static and is defined at compilation time (CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE). -Figure 7 shows a cache in operation. +:numref:`figure_mempool` shows a cache in operation. -.. _pg_figure_7: +.. _figure_mempool: -**Figure 7. A mempool in Memory with its Associated Ring** +.. figure:: img/mempool.* -.. image21_png has been replaced + A mempool in Memory with its Associated Ring -|mempool| Use Cases ---------
@@ -140,9 +138,3 @@ Below are some examples: * :ref:`Environment Abstraction Layer <Environment_Abstraction_Layer>` , for logging service * Any application that needs to allocate fixed-sized objects in the data plane and that will be continuously utilized by the system. - -.. |memory-management| image:: img/memory-management.* - -.. |memory-management2| image:: img/memory-management2.* - -.. |mempool| image:: img/mempool.*
doc/guides/prog_guide/multi_proc_support.rst +3 -6
@@ -83,13 +83,12 @@ and point to the same objects, in both processes. Refer to Section 23.3 "Multi-process Limitations" for details of how Linux kernel Address-Space Layout Randomization (ASLR) can affect memory sharing. -.. _pg_figure_16: +.. _figure_multi_process_memory: -**Figure 16. Memory Sharing in the DPDK Multi-process Sample Application** +.. figure:: img/multi_process_memory.* -.. image42_png has been replaced + Memory Sharing in the DPDK Multi-process Sample Application -|multi_process_memory| The EAL also supports an auto-detection mode (set by EAL --proc-type=auto flag ), whereby an DPDK process is started as a secondary instance if a primary instance is already running.
@@ -199,5 +198,3 @@ instead of the functions which do the hashing internally, such as rte_hash_add() which means that only the first, primary DPDK process instance can open and mmap /dev/hpet. If the number of required DPDK processes exceeds that of the number of available HPET comparators, the TSC (which is the default timer in this release) must be used as a time source across all processes instead of the HPET. - -.. |multi_process_memory| image:: img/multi_process_memory.*
doc/guides/prog_guide/overview.rst +3 -6
@@ -120,13 +120,12 @@ Core Components The *core components* are a set of libraries that provide all the elements needed for high-performance packet processing applications. -.. _pg_figure_1: +.. _figure_architecture-overview: -**Figure 1. Core Components Architecture** +.. figure:: img/architecture-overview.* -.. image2_png has been replaced + Core Components Architecture -|architecture-overview| Memory Manager (librte_malloc) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -203,5 +202,3 @@ librte_net The librte_net library is a collection of IP protocol definitions and convenience macros. It is based on code from the FreeBSD* IP stack and contains protocol numbers (for use in IP headers), IP-related macros, IPv4/IPv6 header structures and TCP, UDP and SCTP header structures. - -.. |architecture-overview| image:: img/architecture-overview.*
doc/guides/prog_guide/packet_distrib_lib.rst +8 -7
@@ -38,7 +38,10 @@ which is responsible for load balancing or distributing packets, and a set of worker lcores which are responsible for receiving the packets from the distributor and operating on them. The model of operation is shown in the diagram below. -|packet_distributor1| +.. figure:: img/packet_distributor1.* + + Packet Distributor mode of operation + Distributor Core Operation --------------------------
@@ -91,9 +94,11 @@ No packet ordering guarantees are made about packets which do not share a common Using the process and returned_pkts API, the following application workflow can be used, while allowing packet order within a packet flow -- identified by a tag -- to be maintained. -.. image41_png has been renamed -|packet_distributor2| +.. figure:: img/packet_distributor2.* + + Application workflow + The flush and clear_returns API calls, mentioned previously, are likely of less use that the process and returned_pkts APIS, and are principally provided to aid in unit testing of the library.
@@ -110,7 +115,3 @@ Since it may be desirable to vary the number of worker cores, depending on the t i.e. to save power at times of lighter load, it is possible to have a worker stop processing packets by calling "rte_distributor_return_pkt()" to indicate that it has finished the current packet and does not want a new one. - -.. |packet_distributor1| image:: img/packet_distributor1.* - -.. |packet_distributor2| image:: img/packet_distributor2.*
doc/guides/prog_guide/packet_framework.rst +33 -48
155 lines not on this page · raw message
doc/guides/prog_guide/qos_framework.rst +49 -114
333 lines not on this page · raw message
doc/guides/prog_guide/ring_lib.rst +91 -68
265 lines not on this page · raw message
doc/guides/sample_app_ug/dist_app.rst +9 -11
@@ -47,11 +47,12 @@ into each other. This application can be used to benchmark performance using the traffic generator as shown in the figure below. -.. _figure_22: +.. _figure_dist_perf: -**Figure 22. Performance Benchmarking Setup (Basic Environment)** +.. figure:: img/dist_perf.* + + Performance Benchmarking Setup (Basic Environment) -|dist_perf| Compiling the Application -------------------------
@@ -106,7 +107,7 @@ Explanation The distributor application consists of three types of threads: a receive thread (lcore_rx()), a set of worker threads(locre_worker()) and a transmit thread(lcore_tx()). How these threads work together is shown -in Fig2 below. The main() function launches threads of these three types. +in :numref:`figure_dist_app` below. The main() function launches threads of these three types. Each thread has a while loop which will be doing processing and which is terminated only upon SIGINT or ctrl+C. The receive and transmit threads communicate using a software ring (rte_ring structure).
@@ -136,11 +137,12 @@ Users who wish to terminate the running of the application have to press ctrl+C in the application will terminate all running threads gracefully and print final statistics to the user. -.. _figure_23: +.. _figure_dist_app: + +.. figure:: img/dist_app.* -**Figure 23. Distributor Sample Application Layout** + Distributor Sample Application Layout -|dist_app| Debug Logging Support ---------------------
@@ -171,7 +173,3 @@ Sample Application. See Section 9.4.4, "RX Queue Initialization". TX queue initialization is done in the same way as it is done in the L2 Forwarding Sample Application. See Section 9.4.5, "TX Queue Initialization". - -.. |dist_perf| image:: img/dist_perf.* - -.. |dist_app| image:: img/dist_app.*
doc/guides/sample_app_ug/exception_path.rst +3 -5
@@ -46,13 +46,12 @@ The second thread reads from a TAP interface and writes the data unmodified to t The packet flow through the exception path application is as shown in the following figure. -.. _figure_1: +.. _figure_exception_path_example: -**Figure 1. Packet Flow** +.. figure:: img/exception_path_example.* -.. image2_png has been replaced + Packet Flow -|exception_path_example| To make throughput measurements, kernel bridges must be setup to forward data between the bridges appropriately.
@@ -327,4 +326,3 @@ To remove bridges and persistent TAP interfaces, the following commands are used brctl delbr br0 openvpn --rmtun --dev tap_dpdk_00 -.. |exception_path_example| image:: img/exception_path_example.*
doc/guides/sample_app_ug/index.rst +32 -26
89 lines not on this page · raw message
doc/guides/sample_app_ug/intel_quickassist.rst +4 -7
@@ -46,17 +46,16 @@ For this sample application, there is a dependency on either of: Overview -------- -An overview of the application is provided in Figure 11. +An overview of the application is provided in :numref:`figure_quickassist_block_diagram`. For simplicity, only two NIC ports and one Intel® QuickAssist Technology device are shown in this diagram, although the number of NIC ports and Intel® QuickAssist Technology devices can be different. -.. _figure_11: +.. _figure_quickassist_block_diagram: -**Figure 11. Intel® QuickAssist Technology Application Block Diagram** +.. figure:: img/quickassist_block_diagram.* -.. image14_png has been renamed + Intel® QuickAssist Technology Application Block Diagram -|quickassist_block_diagram| The application allows the configuration of the following items:
@@ -220,5 +219,3 @@ performing AES-CBC-128 encryption with AES-XCBC-MAC-96 hash, the following setti Refer to the *DPDK Test Report* for more examples of traffic generator setup and the application startup command lines. If no errors are generated in response to the startup commands, the application is running correctly. - -.. |quickassist_block_diagram| image:: img/quickassist_block_diagram.*
doc/guides/sample_app_ug/kernel_nic_interface.rst +3 -6
@@ -71,13 +71,12 @@ it is just for performance testing, or it can work together with VMDq support in The packet flow through the Kernel NIC Interface application is as shown in the following figure. -.. _figure_2: +.. _figure_kernel_nic: -**Figure 2. Kernel NIC Application Packet Flow** +.. figure:: img/kernel_nic.* -.. image3_png has been renamed to kernel_nic.* + Kernel NIC Application Packet Flow -|kernel_nic| Compiling the Application -------------------------
@@ -616,5 +615,3 @@ Currently, setting a new MTU and configuring the network interface (up/ down) ar RTE_LOG(ERR, APP, "Failed to start port %d\n", port_id); return ret; } - -.. |kernel_nic| image:: img/kernel_nic.*
doc/guides/sample_app_ug/l2_forward_job_stats.rst +8 -15
@@ -55,27 +55,24 @@ Also, the MAC addresses are affected as follows: * The destination MAC address is replaced by 02:00:00:00:00:TX_PORT_ID -This application can be used to benchmark performance using a traffic-generator, as shown in the Figure 3. +This application can be used to benchmark performance using a traffic-generator, as shown in the :numref:`figure_l2_fwd_benchmark_setup_jobstats`. -The application can also be used in a virtualized environment as shown in Figure 4. +The application can also be used in a virtualized environment as shown in :numref:`figure_l2_fwd_virtenv_benchmark_setup_jobstats`. The L2 Forwarding application can also be used as a starting point for developing a new application based on the DPDK. -.. _figure_3: +.. _figure_l2_fwd_benchmark_setup_jobstats: -**Figure 3. Performance Benchmark Setup (Basic Environment)** +.. figure:: img/l2_fwd_benchmark_setup.* -.. image4_png has been replaced + Performance Benchmark Setup (Basic Environment) -|l2_fwd_benchmark_setup| +.. _figure_l2_fwd_virtenv_benchmark_setup_jobstats: -.. _figure_4: +.. figure:: img/l2_fwd_virtenv_benchmark_setup.* -**Figure 4. Performance Benchmark Setup (Virtualized Environment)** + Performance Benchmark Setup (Virtualized Environment) -.. image5_png has been renamed - -|l2_fwd_virtenv_benchmark_setup| Virtual Function Setup Instructions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -631,7 +628,3 @@ however it improves performance: * in which it was called. */ rte_jobstats_finish(&qconf->flush_job, qconf->flush_job.target); } - -.. |l2_fwd_benchmark_setup| image:: img/l2_fwd_benchmark_setup.* - -.. |l2_fwd_virtenv_benchmark_setup| image:: img/l2_fwd_virtenv_benchmark_setup.*
doc/guides/sample_app_ug/l2_forward_real_virtual.rst +8 -14
@@ -54,27 +54,25 @@ Also, the MAC addresses are affected as follows: * The destination MAC address is replaced by 02:00:00:00:00:TX_PORT_ID -This application can be used to benchmark performance using a traffic-generator, as shown in the Figure 3. +This application can be used to benchmark performance using a traffic-generator, as shown in the :numref:`figure_l2_fwd_benchmark_setup`. -The application can also be used in a virtualized environment as shown in Figure 4. +The application can also be used in a virtualized environment as shown in :numref:`figure_l2_fwd_virtenv_benchmark_setup`. The L2 Forwarding application can also be used as a starting point for developing a new application based on the DPDK. -.. _figure_3: +.. _figure_l2_fwd_benchmark_setup: -**Figure 3. Performance Benchmark Setup (Basic Environment)** +.. figure:: img/l2_fwd_benchmark_setup.* -.. image4_png has been replaced + Performance Benchmark Setup (Basic Environment) -|l2_fwd_benchmark_setup| -.. _figure_4: +.. _figure_l2_fwd_virtenv_benchmark_setup: -**Figure 4. Performance Benchmark Setup (Virtualized Environment)** +.. figure:: img/l2_fwd_virtenv_benchmark_setup.* -.. image5_png has been renamed + Performance Benchmark Setup (Virtualized Environment) -|l2_fwd_virtenv_benchmark_setup| Virtual Function Setup Instructions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -526,7 +524,3 @@ however it improves performance: prev_tsc = cur_tsc; } - -.. |l2_fwd_benchmark_setup| image:: img/l2_fwd_benchmark_setup.* - -.. |l2_fwd_virtenv_benchmark_setup| image:: img/l2_fwd_virtenv_benchmark_setup.*
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +9 -12
@@ -142,9 +142,13 @@ Other lines types are considered invalid. * A typical IPv4 ACL rule line should have a format as shown below: -.. image6_png has been renamed -|ipv4_acl_rule| +.. _figure_ipv4_acl_rule: + +.. figure:: img/ipv4_acl_rule.* + + A typical IPv4 ACL rule + IPv4 addresses are specified in CIDR format as specified in RFC 4632. They consist of the dot notation for the address and a prefix length separated by '/'.
@@ -164,15 +168,12 @@ For example: 6/0xfe matches protocol values 6 and 7. Rules File Example ~~~~~~~~~~~~~~~~~~ -.. _figure_5_1: +.. _figure_example_rules: -Figure 5 is an example of a rules file. This file has three rules, one for ACL and two for route information. +.. figure:: img/example_rules.* -**Figure 5.Example Rules File** + Rules example -.. image7_png has been renamed - -|example_rules| Each rule is explained as follows:
@@ -397,7 +398,3 @@ Finally, the application creates contexts handler from the ACL library, adds rules parsed from the file into the database and build an ACL trie. It is important to note that the application creates an independent copy of each database for each socket CPU involved in the task to reduce the time for remote memory access. - -.. |ipv4_acl_rule| image:: img/ipv4_acl_rule.* - -.. |example_rules| image:: img/example_rules.*
doc/guides/sample_app_ug/load_balancer.rst +3 -6
@@ -44,13 +44,12 @@ Overview The architecture of the Load Balance application is presented in the following figure. -.. _figure_5: +.. _figure_load_bal_app_arch: -**Figure 5. Load Balancer Application Architecture** +.. figure:: img/load_bal_app_arch.* -.. image8_png has been renamed + Load Balancer Application Architecture -|load_bal_app_arch| For the sake of simplicity, the diagram illustrates a specific case of two I/O RX and two I/O TX lcores off loading the packet I/O overhead incurred by four NIC ports from four worker cores, with each I/O lcore handling RX/TX for two NIC ports.
@@ -241,5 +240,3 @@ are on the same or different CPU sockets, the following run-time scenarios are p #. ABC: The packet is received on socket A, it is processed by an lcore on socket B, then it has to be transmitted out by a NIC connected to socket C. The performance price for crossing the CPU socket boundary is paid twice for this packet. - -.. |load_bal_app_arch| image:: img/load_bal_app_arch.*
doc/guides/sample_app_ug/multi_process.rst +12 -24
@@ -190,13 +190,12 @@ such as a client-server mode of operation seen in the next example, where different processes perform different tasks, yet co-operate to form a packet-processing system.) The following diagram shows the data-flow through the application, using two processes. -.. _figure_6: +.. _figure_sym_multi_proc_app: -**Figure 6. Example Data Flow in a Symmetric Multi-process Application** +.. figure:: img/sym_multi_proc_app.* -.. image9_png has been renamed + Example Data Flow in a Symmetric Multi-process Application -|sym_multi_proc_app| As the diagram shows, each process reads packets from each of the network ports in use. RSS is used to distribute incoming packets on each port to different hardware RX queues.
@@ -296,13 +295,12 @@ In this case, the client applications just perform level-2 forwarding of packets The following diagram shows the data-flow through the application, using two client processes. -.. _figure_7: +.. _figure_client_svr_sym_multi_proc_app: -**Figure 7. Example Data Flow in a Client-Server Symmetric Multi-process Application** +.. figure:: img/client_svr_sym_multi_proc_app.* -.. image10_png has been renamed + Example Data Flow in a Client-Server Symmetric Multi-process Application -|client_svr_sym_multi_proc_app| Running the Application ^^^^^^^^^^^^^^^^^^^^^^^
@@ -395,13 +393,12 @@ Once the master process begins to run, it tries to initialize all the resources memory, CPU cores, driver, ports, and so on, as the other examples do. Thereafter, it creates slave processes, as shown in the following figure. -.. _figure_8: +.. _figure_master_slave_proc: -**Figure 8. Master-slave Process Workflow** +.. figure:: img/master_slave_proc.* -.. image11_png has been renamed + Master-slave Process Workflow -|master_slave_proc| The master process calls the rte_eal_mp_remote_launch() EAL function to launch an application function for each pinned thread through the pipe. Then, it waits to check if any slave processes have exited.
@@ -475,13 +472,12 @@ Therefore, to provide the capability to resume the new slave instance if the pre The following diagram describes slave process recovery. -.. _figure_9: +.. _figure_slave_proc_recov: -**Figure 9. Slave Process Recovery Process Flow** +.. figure:: img/slave_proc_recov.* -.. image12_png has been renamed + Slave Process Recovery Process Flow -|slave_proc_recov| Floating Process Support ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -774,11 +770,3 @@ so it remaps the resource to the new core ID slot. } return 0; } - -.. |sym_multi_proc_app| image:: img/sym_multi_proc_app.* - -.. |client_svr_sym_multi_proc_app| image:: img/client_svr_sym_multi_proc_app.* - -.. |master_slave_proc| image:: img/master_slave_proc.* - -.. |slave_proc_recov| image:: img/slave_proc_recov.*
doc/guides/sample_app_ug/qos_scheduler.rst +3 -6
@@ -38,13 +38,12 @@ Overview The architecture of the QoS scheduler application is shown in the following figure. -.. _figure_10: +.. _figure_qos_sched_app_arch: -**Figure 10. QoS Scheduler Application Architecture** +.. figure:: img/qos_sched_app_arch.* -.. image13_png has been renamed + QoS Scheduler Application Architecture -|qos_sched_app_arch| There are two flavors of the runtime execution for this application, with two or three threads per each packet flow configuration being used.
@@ -347,5 +346,3 @@ This application classifies based on the QinQ double VLAN tags and the IP destin +----------------+-------------------------+--------------------------------------------------+----------------------------------+ Please refer to the "QoS Scheduler" chapter in the *DPDK Programmer's Guide* for more information about these parameters. - -.. |qos_sched_app_arch| image:: img/qos_sched_app_arch.*
doc/guides/sample_app_ug/quota_watermark.rst +12 -24
@@ -54,15 +54,14 @@ and ports 2 and 3 forward into each other. The MAC addresses of the forwarded Ethernet frames are not affected. Internally, packets are pulled from the ports by the master logical core and put on a variable length processing pipeline, -each stage of which being connected by rings, as shown in Figure 12. +each stage of which being connected by rings, as shown in :numref:`figure_pipeline_overview`. -.. _figure_12: +.. _figure_pipeline_overview: -**Figure 12. Pipeline Overview** +.. figure:: img/pipeline_overview.* -.. image15_png has been renamed + Pipeline Overview -|pipeline_overview| An adjustable quota value controls how many packets are being moved through the pipeline per enqueue and dequeue. Adjustable watermark values associated with the rings control a back-off mechanism that
@@ -79,15 +78,14 @@ eventually lead to an Ethernet flow control frame being send to the source. On top of serving as an example of quota and watermark usage, this application can be used to benchmark ring based processing pipelines performance using a traffic- generator, -as shown in Figure 13. +as shown in :numref:`figure_ring_pipeline_perf_setup`. -.. _figure_13: +.. _figure_ring_pipeline_perf_setup: -**Figure 13. Ring-based Processing Pipeline Performance Setup** +.. figure:: img/ring_pipeline_perf_setup.* -.. image16_png has been renamed + Ring-based Processing Pipeline Performance Setup -|ring_pipeline_perf_setup| Compiling the Application -------------------------
@@ -311,7 +309,7 @@ Logical Cores Assignment The application uses the master logical core to poll all the ports for new packets and enqueue them on a ring associated with the port. Each logical core except the last runs pipeline_stage() after a ring for each used port is initialized on that core. -pipeline_stage() on core X dequeues packets from core X-1's rings and enqueue them on its own rings. See Figure 14. +pipeline_stage() on core X dequeues packets from core X-1's rings and enqueue them on its own rings. See :numref:`figure_threads_pipelines`. .. code-block:: c
@@ -340,16 +338,12 @@ sending them out on the destination port setup by pair_ports(). Receive, Process and Transmit Packets ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -.. _figure_14: +.. _figure_threads_pipelines: -Figure 14 shows where each thread in the pipeline is. -It should be used as a reference while reading the rest of this section. +.. figure:: img/threads_pipelines.* -**Figure 14. Threads and Pipelines** + Threads and Pipelines -.. image17_png has been renamed - -|threads_pipelines| In the receive_stage() function running on the master logical core, the main task is to read ingress packets from the RX ports and enqueue them
@@ -498,9 +492,3 @@ low_watermark from the rte_memzone previously created by qw. low_watermark = (unsigned int *) qw_memzone->addr + sizeof(int); } - -.. |pipeline_overview| image:: img/pipeline_overview.* - -.. |ring_pipeline_perf_setup| image:: img/ring_pipeline_perf_setup.* - -.. |threads_pipelines| image:: img/threads_pipelines.*
doc/guides/sample_app_ug/test_pipeline.rst +3 -6
@@ -49,13 +49,12 @@ The application uses three CPU cores: * Core C ("TX core") receives traffic from core B through software queues and sends it to the NIC ports for transmission. -.. _figure_21: +.. _figure_test_pipeline_app: -**Figure 21.Test Pipeline Application** +.. figure:: img/test_pipeline_app.* -.. image24_png has been renamed + Test Pipeline Application -|test_pipeline_app| Compiling the Application -------------------------
@@ -281,5 +280,3 @@ The profile for input traffic is TCP/IPv4 packets with: * destination TCP port fixed to 0 * source TCP port fixed to 0 - -.. |test_pipeline_app| image:: img/test_pipeline_app.*
doc/guides/sample_app_ug/vhost.rst +15 -30
90 lines not on this page · raw message
doc/guides/sample_app_ug/vm_power_management.rst +8 -10
@@ -74,11 +74,12 @@ The solution is comprised of two high-level components: The l3fwd-power application will use this implementation when deployed on a VM (see Chapter 11 "L3 Forwarding with Power Management Application"). -.. _figure_24: +.. _figure_vm_power_mgr_highlevel: -**Figure 24. Highlevel Solution** +.. figure:: img/vm_power_mgr_highlevel.* + + Highlevel Solution -|vm_power_mgr_highlevel| Overview --------
@@ -105,11 +106,12 @@ at runtime based on the environment. Upon receiving a request, the host translates the vCPU to a pCPU via the libvirt API before forwarding to the host librte_power. -.. _figure_25: +.. _figure_vm_power_mgr_vm_request_seq: + +.. figure:: img/vm_power_mgr_vm_request_seq.* -**Figure 25. VM request to scale frequency** + VM request to scale frequency -|vm_power_mgr_vm_request_seq| Performance Considerations ~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -355,7 +357,3 @@ Where {core_num} is the lcore and channel to change frequency by scaling up/down .. code-block:: console set_cpu_freq {core_num} up|down|min|max - -.. |vm_power_mgr_highlevel| image:: img/vm_power_mgr_highlevel.* - -.. |vm_power_mgr_vm_request_seq| image:: img/vm_power_mgr_vm_request_seq.*
doc/guides/sample_app_ug/vmdq_dcb_forwarding.rst +4 -7
@@ -53,7 +53,7 @@ All traffic is read from a single incoming port (port 0) and output on port 1, w The traffic is split into 128 queues on input, where each thread of the application reads from multiple queues. For example, when run with 8 threads, that is, with the -c FF option, each thread receives and forwards packets from 16 queues. -As supplied, the sample application configures the VMDQ feature to have 16 pools with 8 queues each as indicated in Figure 15. +As supplied, the sample application configures the VMDQ feature to have 16 pools with 8 queues each as indicated in :numref:`figure_vmdq_dcb_example`. The Intel® 82599 10 Gigabit Ethernet Controller NIC also supports the splitting of traffic into 32 pools of 4 queues each and this can be used by changing the NUM_POOLS parameter in the supplied code. The NUM_POOLS parameter can be passed on the command line, after the EAL parameters:
@@ -64,13 +64,12 @@ The NUM_POOLS parameter can be passed on the command line, after the EAL paramet where, NP can be 16 or 32. -.. _figure_15: +.. _figure_vmdq_dcb_example: -**Figure 15. Packet Flow Through the VMDQ and DCB Sample Application** +.. figure:: img/vmdq_dcb_example.* -.. image18_png has been replaced + Packet Flow Through the VMDQ and DCB Sample Application -|vmdq_dcb_example| In Linux* user space, the application can display statistics with the number of packets received on each queue. To have the application display the statistics, send a SIGHUP signal to the running application process, as follows:
@@ -247,5 +246,3 @@ To generate the statistics output, use the following command: Please note that the statistics output will appear on the terminal where the vmdq_dcb_app is running, rather than the terminal from which the HUP signal was sent. - -.. |vmdq_dcb_example| image:: img/vmdq_dcb_example.*
doc/guides/xen/pkt_switch.rst +18 -12
@@ -52,9 +52,13 @@ The switching back end maps those grant table references and creates shared ring The following diagram describes the functionality of the DPDK Xen Packet- Switching Solution. -.. image35_png has been renamed -|dpdk_xen_pkt_switch| +.. _figure_dpdk_xen_pkt_switch: + +.. figure:: img/dpdk_xen_pkt_switch.* + + Functionality of the DPDK Xen Packet Switching Solution. + Note 1 The Xen hypervisor uses a mechanism called a Grant Table to share memory between domains (`http://wiki.xen.org/wiki/Grant Table <http://wiki.xen.org/wiki/Grant%20Table>`_).
@@ -62,9 +66,13 @@ Note 1 The Xen hypervisor uses a mechanism called a Grant Table to share memory A diagram of the design is shown below, where "gva" is the Guest Virtual Address, which is the data pointer of the mbuf, and "hva" is the Host Virtual Address: -.. image36_png has been renamed -|grant_table| +.. _figure_grant_table: + +.. figure:: img/grant_table.* + + DPDK Xen Layout + In this design, a Virtio ring is used as a para-virtualized interface for better performance over a Xen private ring when packet switching to and from a VM.
@@ -139,9 +147,13 @@ Take idx#_mempool_gref node for example, the host maps those Grant references to The real Grant reference information is stored in this virtual address space, where (gref, pfn) pairs follow each other with -1 as the terminator. -.. image37_pnng has been renamed -|grant_refs| +.. _figure_grant_refs: + +.. figure:: img/grant_refs.* + + Mapping Grant references to a continuous virtual address space + After all gref# IDs are retrieved, the host maps them to a continuous virtual address space. With the guest mempool virtual address, the host establishes 1:1 address mapping.
@@ -456,9 +468,3 @@ then sent out through hardware with destination MAC address 00:00:00:00:00:33. The packet flow is: packet generator->Virtio in guest VM1->switching backend->Virtio in guest VM2->switching backend->wire - -.. |grant_table| image:: img/grant_table.* - -.. |grant_refs| image:: img/grant_refs.* - -.. |dpdk_xen_pkt_switch| image:: img/dpdk_xen_pkt_switch.*
Signature · 1 line
1.8.1.4