From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by dpdk.org (Postfix) with ESMTP id 6880037A8 for ; Tue, 7 Apr 2015 18:07:09 +0200 (CEST) Received: by wizk4 with SMTP id k4so23392252wiz.1 for ; Tue, 07 Apr 2015 09:07:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=El/7v2JXnMJzMvajoSW88cTE8rKlUMXlZXI2NGDoRjg=; b=TMX5dN9rrLTUJHKiP+hs5gg2cKsidLLfcylXKQUct+cWxy58CyNNnYXOSDnAlqH7qx TNU0rlfZWJisxyfqREI6OrzDZ4D3CJ/m+kQx0bg4ZZApFFUlYI4BSgYuf7mw9srbSaWq ubbBspK/gd9xXq4v0LYi5m10CY/WjRwuwUMVEVzvbsMyxfWjCt2LLhXiKmt83Bg7sTKq 0OgbvCCCJLqYBDvWdIYvSlFavno88V9ICx/pECp8f0KNBgMmXo+qF9A+tP7KnUYHUP/I O35PtBsCmhmVUjC4Ng00LVIVXnJoWOprvft8kw0lBeBX6bQhsmXxc8B8cYYXsPgHlcD4 koqA== X-Gm-Message-State: ALoCoQlFWatDwGrPK8kkAyaP17sX034GVrhK7bxSsM3nh8p7CFg8HBt3oeLoFT2jfTTd9lekAOo5 X-Received: by 10.180.74.170 with SMTP id u10mr5978298wiv.46.1428422829285; Tue, 07 Apr 2015 09:07:09 -0700 (PDT) Received: from XPS13.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id gy8sm11610040wib.13.2015.04.07.09.07.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Apr 2015 09:07:08 -0700 (PDT) From: Thomas Monjalon To: siobhan.a.butler@intel.com Date: Tue, 7 Apr 2015 18:06:20 +0200 Message-Id: <1428422780-7079-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.2.2 Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH] doc: fix code-block syntax X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2015 16:07:09 -0000 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 --- doc/guides/prog_guide/env_abstraction_layer.rst | 2 +- doc/guides/sample_app_ug/l2_forward_job_stats.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/guides/prog_guide/env_abstraction_layer.rst b/doc/guides/prog_guide/env_abstraction_layer.rst index 1b531e2..06289ed 100644 --- a/doc/guides/prog_guide/env_abstraction_layer.rst +++ b/doc/guides/prog_guide/env_abstraction_layer.rst @@ -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). 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/cpuset/pkt_io diff --git a/doc/guides/sample_app_ug/l2_forward_job_stats.rst b/doc/guides/sample_app_ug/l2_forward_job_stats.rst index eafb8df..54d25cb 100644 --- a/doc/guides/sample_app_ug/l2_forward_job_stats.rst +++ b/doc/guides/sample_app_ug/l2_forward_job_stats.rst @@ -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. -.. code:: +.. code-block:: c if (total_nb_rx == MAX_PKT_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. -.. code:: +.. code-block:: c /* Adjust period time in which we are running here. */ if (rte_jobstats_finish(job, total_nb_rx) != 0) { -- 2.2.2