From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rami Rosen Subject: [dpdk-next-net] [PATCH] net/af_packet: fix docs guide Date: Tue, 18 Dec 2018 09:10:37 +0200 Message-ID: <20181218071037.7762-1-ramirose@gmail.com> Cc: tiago.lam@intel.com, ferruh.yigit@intel.com, Rami Rosen To: dev@dpdk.org Return-path: Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id EC99C1B676 for ; Tue, 18 Dec 2018 08:10:52 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id r10so14698284wrs.10 for ; Mon, 17 Dec 2018 23:10:52 -0800 (PST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The framecnt option represents a counter (integer) that does not reflect size. It is somewhat parallel in this sense to the framecount member of pkt_rx_queue/pkt_tx_queue (or tp_frame_nr in tpacket_req). This patch removes the size indicator of bytes ("B") from framecnt in the af_packet guide. Fixes: c8dba1ee6cde ("doc: add af_packet PMD guide") Signed-off-by: Rami Rosen --- doc/guides/nics/af_packet.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/af_packet.rst b/doc/guides/nics/af_packet.rst index 188a6efe1..1260bb2c6 100644 --- a/doc/guides/nics/af_packet.rst +++ b/doc/guides/nics/af_packet.rst @@ -28,7 +28,7 @@ Some of these, in turn, will be used to configure the PAKET_MMAP settings. * ``blocksz`` - PACKET_MMAP block size (optional, default 4096); * ``framesz`` - PACKET_MMAP frame size (optional, default 2048B; Note: multiple of 16B); -* ``framecnt`` - PACKET_MMAP frame count (optional, default 512B). +* ``framecnt`` - PACKET_MMAP frame count (optional, default 512). Because this implementation is based on PACKET_MMAP, and PACKET_MMAP has its own pre-requisites, it should be noted that the inner workings of PACKET_MMAP @@ -60,7 +60,7 @@ Set up an af_packet interface The following example will set up an af_packet interface in DPDK with the default options described above (blocksz=4096B, framesz=2048B and -framecnt=512B): +framecnt=512): .. code-block:: console -- 2.17.1