From patchwork Sun Feb 5 16:05:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wiles, Keith" X-Patchwork-Id: 20170 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id CD28614EC; Sun, 5 Feb 2017 17:05:18 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0A36514EC for ; Sun, 5 Feb 2017 17:05:16 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP; 05 Feb 2017 08:05:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,338,1477983600"; d="scan'208";a="40040835" Received: from fshahid-mobl2.amr.corp.intel.com ([10.254.19.238]) by orsmga002.jf.intel.com with ESMTP; 05 Feb 2017 08:05:15 -0800 From: Keith Wiles To: dev@dpdk.org Cc: pascal.mazon@6wind.com, ferruh.yigit@intel.com Date: Sun, 5 Feb 2017 10:05:04 -0600 Message-Id: <20170205160509.88530-1-keith.wiles@intel.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170202223330.39240-1-keith.wiles@intel.com> References: <20170202223330.39240-1-keith.wiles@intel.com> Subject: [dpdk-dev] [PATCH v2 1/6] net/tap: fix tap docs for device name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Keith Wiles --- doc/guides/nics/tap.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/guides/nics/tap.rst b/doc/guides/nics/tap.rst index 622b9e7..c4f207b 100644 --- a/doc/guides/nics/tap.rst +++ b/doc/guides/nics/tap.rst @@ -45,18 +45,18 @@ device. These TAP interfaces can be used with Wireshark or tcpdump or Pktgen-DPDK along with being able to be used as a network connection to the DPDK application. The method enable one or more interfaces is to use the -``--vdev=net_tap`` option on the DPDK application command line. Each -``--vdev=net_tap`` option give will create an interface named dtap0, dtap1, +``--vdev=net_tap0`` option on the DPDK application command line. Each +``--vdev=net_tap1`` option give will create an interface named dtap0, dtap1, and so on. -The interfaced name can be changed by adding the ``iface=foo0``, for example:: +The interface name can be changed by adding the ``iface=foo0``, for example:: - --vdev=net_tap,iface=foo0 --vdev=net_tap,iface=foo1, ... + --vdev=net_tap0,iface=foo0 --vdev=net_tap1,iface=foo1, ... Also the speed of the interface can be changed from 10G to whatever number needed, but the interface does not enforce that speed, for example:: - --vdev=net_tap,iface=foo0,speed=25000 + --vdev=net_tap0,iface=foo0,speed=25000 After the DPDK application is started you can send and receive packets on the interface using the standard rx_burst/tx_burst APIs in DPDK. From the host @@ -97,7 +97,7 @@ following:: sudo ./app/app/x86_64-native-linuxapp-gcc/app/pktgen -l 1-5 -n 4 \ --proc-type auto --log-level 8 --socket-mem 512,512 --file-prefix pg \ - --vdev=net_tap --vdev=net_tap -b 05:00.0 -b 05:00.1 \ + --vdev=net_tap0 --vdev=net_tap1 -b 05:00.0 -b 05:00.1 \ -b 04:00.0 -b 04:00.1 -b 04:00.2 -b 04:00.3 \ -b 81:00.0 -b 81:00.1 -b 81:00.2 -b 81:00.3 \ -b 82:00.0 -b 83:00.0 -- -T -P -m [2:3].0 -m [4:5].1 \ @@ -131,6 +131,6 @@ time with ``start all``. The command ``str`` is an alias for ``start all`` and While running you should see the 64 byte counters increasing to verify the traffic is being looped back. You can use ``set all size XXX`` to change the -size of the packets after you stop the traffic. Use the pktgen ``help`` +size of the packets after you stop the traffic. Use pktgen ``help`` command to see a list of all commands. You can also use the ``-f`` option to -load commands at startup. +load commands at startup in command line or Lua script in pktgen.