doc: fix code-block syntax
Some blocks are not visible with some Sphinx versions because they are using the wrong keyword for code. Tested with Sphinx v1.1.3. Fixes: 1733be6d3147 ("doc: new eal multi-pthread feature") Fixes: ccefe752cab0 ("doc: add jobstats sample guide") Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
parent
32962fb1b4
commit
1796f4859b
@ -349,7 +349,7 @@ cgroup control
|
|||||||
The following is a simple example of cgroup control usage, there are two pthreads(t0 and t1) doing packet I/O on the same core ($CPU).
|
The following is a simple example of cgroup control usage, there are two pthreads(t0 and t1) doing packet I/O on the same core ($CPU).
|
||||||
We expect only 50% of CPU spend on packet IO.
|
We expect only 50% of CPU spend on packet IO.
|
||||||
|
|
||||||
.. code::
|
.. code-block:: console
|
||||||
|
|
||||||
mkdir /sys/fs/cgroup/cpu/pkt_io
|
mkdir /sys/fs/cgroup/cpu/pkt_io
|
||||||
mkdir /sys/fs/cgroup/cpuset/pkt_io
|
mkdir /sys/fs/cgroup/cpuset/pkt_io
|
||||||
|
@ -494,7 +494,7 @@ The rte_eth_rx_burst() function writes the mbuf pointers in a local table and re
|
|||||||
|
|
||||||
After first read second try is issued.
|
After first read second try is issued.
|
||||||
|
|
||||||
.. code::
|
.. code-block:: c
|
||||||
|
|
||||||
if (total_nb_rx == MAX_PKT_BURST) {
|
if (total_nb_rx == MAX_PKT_BURST) {
|
||||||
const uint16_t nb_rx = rte_eth_rx_burst((uint8_t) portid, 0, pkts_burst,
|
const uint16_t nb_rx = rte_eth_rx_burst((uint8_t) portid, 0, pkts_burst,
|
||||||
@ -510,7 +510,7 @@ After first read second try is issued.
|
|||||||
|
|
||||||
This second read is important to give job stats library a feedback how many packets was processed.
|
This second read is important to give job stats library a feedback how many packets was processed.
|
||||||
|
|
||||||
.. code::
|
.. code-block:: c
|
||||||
|
|
||||||
/* Adjust period time in which we are running here. */
|
/* Adjust period time in which we are running here. */
|
||||||
if (rte_jobstats_finish(job, total_nb_rx) != 0) {
|
if (rte_jobstats_finish(job, total_nb_rx) != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user