From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 54E44A0471 for ; Wed, 19 Jun 2019 21:01:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AAAFF1D194; Wed, 19 Jun 2019 21:00:23 +0200 (CEST) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by dpdk.org (Postfix) with ESMTP id 188101D170 for ; Wed, 19 Jun 2019 21:00:12 +0200 (CEST) Received: by mail-pl1-f194.google.com with SMTP id a93so195000pla.7 for ; Wed, 19 Jun 2019 12:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=izo55QUJe9iBPGBP8dhjRckymadapEsbrUhHMdFoGuU=; b=uwC46/eTTfVTzZDPjiez1JrvUGX+Jnjf1GRn5lz/EP6GJsYqcYN3HbIgXvYrvkcDXm 1UACZKzCzXiCo7dGDw4tukjPvX5GtckOlucv47VhvAnRId4scmTleYSTpW1Yml6t7MKb 5E6zsVfx2D6B9w7bGAnKuZ0jxqRdiu9H0MaI0ChN9So/Uzqd5gPlgKqyzwvd66AN1e69 V8HR2hKMZRujCWkjUfeH7yRINEInC6HO8eh0heTyk+4RSNPGOF4i7x6k091azKWe/M+M d1Uq40SLhUxA7045DuGbVdNERLdCh9rTSEZoPrMaOQgVVAU6p42Y041uhqO2APCKbNur yyoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=izo55QUJe9iBPGBP8dhjRckymadapEsbrUhHMdFoGuU=; b=VnSZ8OLsUBXWcFHaDPydh6eZUPBCJ+UJrWtjQt7JYy3HjbhQYlBo21UzmFbrgKXI2X o2ekvhvjJng445pCbb9xDMFLH030mhth/ZlX3QBXgU4E33wfzDywXyZg2ML+iGuDwmrj LT9vPXEuq5OYovA8mX6d7OfUg3N+NPXujyaZBS8sroqgPgL2pw2kI7rgJdeN3Zi1VSpf z/6boxRl/zh//UeBF7nE35VDXIi9xidZFP0lLzzbCaenHP5rKBs+JnYXNwaBb8BjRFOv pIQzxDN497h8zA6xHEdydw+VlrVY9TyjVMv04lmCFAbXnhB4GefoJpEtgk/WaxM11IWk EttA== X-Gm-Message-State: APjAAAWtKdNIT3pCm/F39zkv/To5Yt7BWTGBip+n1tK1kIMtthRem9p8 N8dj8v0jL/TdxiCf237lQIINZBCyb0Y= X-Google-Smtp-Source: APXvYqzTPOHEc4yIX1klRLmdu7zYyJ2Uv4WoRcKHozv+3fmzql2JOPs/rRZlIqouJIP2dfig1/xGAg== X-Received: by 2002:a17:902:b495:: with SMTP id y21mr119102985plr.243.1560970810993; Wed, 19 Jun 2019 12:00:10 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id g8sm18613397pfi.8.2019.06.19.12.00.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 12:00:09 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Stephen Hemminger Date: Wed, 19 Jun 2019 11:59:57 -0700 Message-Id: <20190619185958.27306-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190619185958.27306-1-stephen@networkplumber.org> References: <20190610175155.21374-1-stephen@networkplumber.org> <20190619185958.27306-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 7/8] doc: update KNI documentation 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" From: Stephen Hemminger Make the KNI documentation reflect modern kernel networking. Ifconfig has been superseded by iproute2 for 15 years. Iproute2 is well maintained, supports current feature set. Ethtool is no longer supported by KNI. Tshark is a better replacement for tcpdump. Signed-off-by: Stephen Hemminger --- .../sample_app_ug/kernel_nic_interface.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/guides/sample_app_ug/kernel_nic_interface.rst b/doc/guides/sample_app_ug/kernel_nic_interface.rst index a7e549d5213a..422bd8c98465 100644 --- a/doc/guides/sample_app_ug/kernel_nic_interface.rst +++ b/doc/guides/sample_app_ug/kernel_nic_interface.rst @@ -21,14 +21,14 @@ The FIFO queues contain pointers to data packets in the DPDK. This: * Provides a faster mechanism to interface with the kernel net stack and eliminates system calls -* Facilitates the DPDK using standard Linux* userspace net tools (tcpdump, ftp, and so on) +* Facilitates the DPDK using standard Linux* userspace net tools (tshark, rsync, and so on) * Eliminate the copy_to_user and copy_from_user operations on packets. The Kernel NIC Interface sample application is a simple example that demonstrates the use of the DPDK to create a path for packets to go through the Linux* kernel. This is done by creating one or more kernel net devices for each of the DPDK ports. -The application allows the use of standard Linux tools (ethtool, ifconfig, tcpdump) with the DPDK ports and +The application allows the use of standard Linux tools (iproute, tshark) with the DPDK ports and also the exchange of packets between the DPDK application and the Linux* kernel. The Kernel NIC Interface sample application requires that the @@ -220,13 +220,13 @@ Enable KNI interface and assign an IP address: .. code-block:: console - # ifconfig vEth0_0 192.168.0.1 + # ip addr add dev vEth0_0 192.168.0.1 Show KNI interface configuration and statistics: .. code-block:: console - # ifconfig vEth0_0 + # ip -s -d addr show vEth0_0 The user can also check and reset the packet statistics inside the ``kni`` application by sending the app the USR1 and USR2 signals: @@ -234,16 +234,16 @@ application by sending the app the USR1 and USR2 signals: .. code-block:: console # Print statistics - # kill -SIGUSR1 `pidof kni` + # pkill -USR1 kni # Zero statistics - # kill -SIGUSR2 `pidof kni` + # pkill -USR2 kni Dump network traffic: .. code-block:: console - # tcpdump -i vEth0_0 + # tshark -n -i vEth0_0 The normal Linux commands can also be used to change the MAC address and MTU size used by the physical NIC which corresponds to the KNI interface. @@ -254,13 +254,13 @@ Change the MAC address: .. code-block:: console - # ifconfig vEth0_0 hw ether 0C:01:02:03:04:08 + # ip link set dev vEth0_0 lladdr 0C:01:02:03:04:08 Change the MTU size: .. code-block:: console - # ifconfig vEth0_0 mtu 1450 + # ip link set dev vEth0_0 mtu 1450 When the ``kni`` application is closed, all the KNI interfaces are deleted from the Linux kernel. -- 2.20.1