doc: fix references in guides
authorThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 Apr 2016 21:21:35 +0000 (23:21 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 Apr 2016 21:56:34 +0000 (23:56 +0200)
Replace some hard-coded section numbers by dynamic links.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
12 files changed:
doc/guides/nics/virtio.rst
doc/guides/prog_guide/ip_fragment_reassembly_lib.rst
doc/guides/prog_guide/kernel_nic_interface.rst
doc/guides/prog_guide/lpm6_lib.rst
doc/guides/prog_guide/lpm_lib.rst
doc/guides/prog_guide/mbuf_lib.rst
doc/guides/prog_guide/mempool_lib.rst
doc/guides/prog_guide/multi_proc_support.rst
doc/guides/prog_guide/qos_framework.rst
doc/guides/prog_guide/writing_efficient_code.rst
doc/guides/sample_app_ug/l2_forward_job_stats.rst
doc/guides/sample_app_ug/multi_process.rst

index 200a8bed0bcac0b6c387084d0734536c1e17f14d..06ca433a3c8222b2352058aeca1bae25b907e5b1 100644 (file)
@@ -140,7 +140,7 @@ Host2VM communication example
     For each physical port, kni also creates a kernel thread that retrieves packets from the kni receive queue,
     place them onto kni's raw socket's queue and wake up the vhost kernel thread to exchange packets with the virtio virt queue.
 
-    For more details about kni, please refer to Chapter 24 "Kernel NIC Interface".
+    For more details about kni, please refer to :ref:`kni`.
 
 #.  Enable the kni raw socket functionality for the specified physical NIC port,
     get the generated file descriptor and set it in the qemu command line parameter.
index 1d3d4ac51e6e6898c15e4c73e5a9c14c9e1ae54a..43168f011d378017f8ed08e5d0e420ea7d780051 100644 (file)
@@ -54,7 +54,7 @@ Finally 'direct' and 'indirect' mbufs for each fragment are linked together via
 
 The caller has an ability to explicitly specify which mempools should be used to allocate 'direct' and 'indirect' mbufs from.
 
-For more information about direct and indirect mbufs, refer to the *DPDK Programmers guide 7.7 Direct and Indirect Buffers.*
+For more information about direct and indirect mbufs, refer to :ref:`direct_indirect_buffer`.
 
 Packet reassembly
 -----------------
index 0d91476198872455230f6f1c097d38f8fbac0ad0..fac1960b3ec9c08990e05206e7e05156aab6c869 100644 (file)
@@ -28,6 +28,8 @@
     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+.. _kni:
+
 Kernel NIC Interface
 ====================
 
index 87f5066a70ee0e1d684149d0b0f16b390c3c9997..0aea5c5c30b573ab92e7381439d8363bacd29b68 100644 (file)
@@ -75,7 +75,7 @@ The main methods exported for the LPM component are:
 Implementation Details
 ~~~~~~~~~~~~~~~~~~~~~~
 
-This is a modification of the algorithm used for IPv4 (see Section 19.2 "Implementation Details").
+This is a modification of the algorithm used for IPv4 (see :ref:`lpm4_details`).
 In this case, instead of using two levels, one with a tbl24 and a second with a tbl8, 14 levels are used.
 
 The implementation can be seen as a multi-bit trie where the *stride*
index c33e4693bd6081dfae84ad291e15962eaf387834..8b5ff99cab253ab2edf7c48e3ce4791707212eb6 100644 (file)
@@ -62,6 +62,8 @@ The main methods exported by the LPM component are:
     the algorithm picks the rule with the highest depth as the best match rule,
     which means that the rule has the highest number of most significant bits matching between the input key and the rule key.
 
+.. _lpm4_details:
+
 Implementation Details
 ----------------------
 
index 32a041edfff790acd29a729be5095af6390408df..8e616826c9b9c82767727f6943060598428cd5db 100644 (file)
@@ -235,6 +235,8 @@ The list of flags and their precise meaning is described in the mbuf API
 documentation (rte_mbuf.h). Also refer to the testpmd source code
 (specifically the csumonly.c file) for details.
 
+.. _direct_indirect_buffer:
+
 Direct and Indirect Buffers
 ---------------------------
 
index f0ca06f70b734873a55d57c95190577974b304fd..5fae79abb53c9e7815c2e393054a749802c86ae7 100644 (file)
@@ -98,6 +98,8 @@ no padding is required between objects (except for objects whose size are n x 3
 
 When creating a new pool, the user can specify to use this feature or not.
 
+.. _mempool_local_cache:
+
 Local Cache
 -----------
 
index 1680d6b457997efc573c84dd825426ae8cf19103..badd102ea2886c6a151bda89ae0ce12f93df12b8 100644 (file)
@@ -80,7 +80,7 @@ and point to the same objects, in both processes.
 
 .. note::
 
-    Refer to Section 23.3 "Multi-process Limitations" for details of
+    Refer to `Multi-process Limitations`_ for details of
     how Linux kernel Address-Space Layout Randomization (ASLR) can affect memory sharing.
 
 .. _figure_multi_process_memory:
index c4e390c14b0fd93d661ef61c3a02219a4ec1fa40..f3f60b882155053160d48e1632d3ba97ddcd1603 100644 (file)
@@ -147,7 +147,7 @@ these packets are later on removed and handed over to the NIC TX with the packet
 
 The hierarchical scheduler is optimized for a large number of packet queues.
 When only a small number of queues are needed, message passing queues should be used instead of this block.
-See Section 26.2.5 "Worst Case Scenarios for Performance" for a more detailed discussion.
+See `Worst Case Scenarios for Performance`_ for a more detailed discussion.
 
 Scheduling Hierarchy
 ~~~~~~~~~~~~~~~~~~~~
@@ -712,7 +712,7 @@ where, r = port line rate (in bytes per second).
    |   |                         |     of the grinders), update the credits for the pipe and its subport.      |
    |   |                         |                                                                             |
    |   |                         | The current implementation is using option 3.  According to Section         |
-   |   |                         | 26.2.4.4 "Dequeue State Machine", the pipe and subport credits are          |
+   |   |                         | `Dequeue State Machine`_, the pipe and subport credits are                  |
    |   |                         | updated every time a pipe is selected by the dequeue process before the     |
    |   |                         | pipe and subport credits are actually used.                                 |
    |   |                         |                                                                             |
@@ -783,7 +783,7 @@ as described in :numref:`table_qos_10` and :numref:`table_qos_11`.
    | 1 | tc_time               | Bytes | Time of the next update (upper limit refill) for the 4 TCs of the     |
    |   |                       |       | current subport / pipe.                                               |
    |   |                       |       |                                                                       |
-   |   |                       |       | See  Section 26.2.4.5.1, "Internal Time Reference" for the            |
+   |   |                       |       | See  Section `Internal Time Reference`_ for the                       |
    |   |                       |       | explanation of why the time is maintained in byte units.              |
    |   |                       |       |                                                                       |
    +---+-----------------------+-------+-----------------------------------------------------------------------+
@@ -1334,7 +1334,7 @@ Where:
 
 The time reference is in units of bytes,
 where a byte signifies the time duration required by the physical interface to send out a byte on the transmission medium
-(see Section 26.2.4.5.1 "Internal Time Reference").
+(see Section `Internal Time Reference`_).
 The parameter s is defined in the dropper module as a constant with the value: s=2^22.
 This corresponds to the time required by every leaf node in a hierarchy with 64K leaf nodes
 to transmit one 64-byte packet onto the wire and represents the worst case scenario.
index 613db880ed173a0c111762c2ce7584a5c91883f1..78d2afa94cda25599279da4aea6e4789e1eb46a7 100644 (file)
@@ -113,7 +113,7 @@ it is advised to use the DPDK ring API, which provides a lockless ring implement
 
 The ring supports bulk and burst access,
 meaning that it is possible to read several elements from the ring with only one costly atomic operation
-(see Chapter 5 "Ring Library").
+(see :doc:`ring_lib`).
 Performance is greatly improved when using bulk access operations.
 
 The code algorithm that dequeues messages may be something similar to the following:
index acf627341e45f5cec9f2ec3ff7384206cf5089f0..03d997793b508d919f91b081e25c786c337160b8 100644 (file)
@@ -154,7 +154,8 @@ Command Line Arguments
 ~~~~~~~~~~~~~~~~~~~~~~
 
 The L2 Forwarding sample application takes specific parameters,
-in addition to Environment Abstraction Layer (EAL) arguments (see Section 9.3).
+in addition to Environment Abstraction Layer (EAL) arguments
+(see `Running the Application`_).
 The preferred way to parse parameters is to use the getopt() function,
 since it is part of a well-defined and portable library.
 
@@ -344,7 +345,7 @@ The list of queues that must be polled for a given lcore is stored in a private
 Values of struct lcore_queue_conf:
 
 *   n_rx_port and rx_port_list[] are used in the main packet processing loop
-    (see Section 9.4.6 "Receive, Process and Transmit Packets" later in this chapter).
+    (see Section `Receive, Process and Transmit Packets`_ later in this chapter).
 
 *   rx_timers and flush_timer are used to ensure forced TX on low packet rate.
 
index ffe7ee682b33ec8efb4474c253a44f92313c2f37..3571490519159b29968eec1c3d337b7d008a8881 100644 (file)
@@ -495,7 +495,7 @@ For threads/processes not created in that way, either pinned to a core or not, t
 rte_lcore_id() function will not work in the correct way.
 However, sometimes these threads/processes still need the unique ID mechanism to do easy access on structures or resources.
 For example, the DPDK mempool library provides a local cache mechanism
-(refer to *DPDK Programmer's Guide* , Section 6.4, "Local Cache")
+(refer to :ref:`mempool_local_cache`)
 for fast element allocation and freeing.
 If using a non-unique ID or a fake one,
 a race condition occurs if two or more threads/ processes with the same core ID try to use the local cache.