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 9A9A7A0471 for ; Tue, 18 Jun 2019 18:18:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 424FB1C258; Tue, 18 Jun 2019 18:17:05 +0200 (CEST) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 3303C1C22B for ; Tue, 18 Jun 2019 18:16:54 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id p10so7975420pgn.1 for ; Tue, 18 Jun 2019 09:16:54 -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=zwcpHj9mObwR/3WCwV5l4XnojjP3r4EDgCtfcfF1G0s=; b=NC7L0a+f0XzHznxJiLnmH5GWG8s1udyChV1amhxHMgMkf9r8IFAF4LeskKMGLp1kfK BC3Cj4BKPkZHISo/o73bqiOjE52flJFiN/9p0v1nLOfBDRf+nbKAfdSCGK5dHstAbMrY dHqZigKARkUS3iUCQ1xfXPevJUXqTLHiVHKL2rIOT4YngM9ws6098CsOjekstbPVtv25 OABdJmmfbt+vZiph8z2eOAB3Ol/7wUtoYvp8t0llC3vHHZIl90l9VzePGmEXVfrOmkpl mZlwVHl8sny22Ul+pgAURBjtxKY8kNwArF3aAIABstS7ZfOMdAgTWBEclo6rQdQwH7Fv chIQ== 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=zwcpHj9mObwR/3WCwV5l4XnojjP3r4EDgCtfcfF1G0s=; b=CRCrbd6ixZgZPnt75trl492zZIYxHQtokXcBKeJPP1xCwyT8owtV77NOFSgR6adyPu DVYl8ba7Km7K/HXtEP+T/XibyTcfdjTs+F1RIdb9MrG8Ni5/VNZz7eNehMmgdrtrZaWs ryW6s3uEKTwkxdhor8Wb2Qcte3bwLhWT75jPuAPFDCoEt8XU/40iiv+dwlPLNIWrnhz2 w6Om7Q0unneoty/T4v/D0WX5lmWARbUPBUVZf+F/tfGHyart06UCHdM4fM+48ABy8wdB UzfgQAaU8Tb9VmLvBL4jM9F4B5EDxpJ8m5Y2tdU5UK7kPUcVEg+c5Kgn/7L2eSykXU9u GORg== X-Gm-Message-State: APjAAAUPOZH9gs2bepl0Z8KhIigrq445k+gxuSrd7vCzPVbSuhwNH5nN jtZuYQepvdMekxkZPba7ijp/yJKAZ2Q= X-Google-Smtp-Source: APXvYqyVbbgz7BThf+UjBecV0zFsBigrFDVUW35oMKYBL98SSiz9pqidXsWcxy2ntjYnXmKj875TqA== X-Received: by 2002:a63:ce08:: with SMTP id y8mr3338414pgf.38.1560874613103; Tue, 18 Jun 2019 09:16:53 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 3sm15485385pfp.114.2019.06.18.09.16.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 18 Jun 2019 09:16:52 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 18 Jun 2019 09:16:35 -0700 Message-Id: <20190618161636.23748-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190618161636.23748-1-stephen@networkplumber.org> References: <20190610175155.21374-1-stephen@networkplumber.org> <20190618161636.23748-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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" 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