From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C8F31A2EEB for ; Tue, 10 Sep 2019 17:47:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2E6911EF61; Tue, 10 Sep 2019 17:47:25 +0200 (CEST) Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) by dpdk.org (Postfix) with ESMTP id CE4B71EF60 for ; Tue, 10 Sep 2019 17:47:23 +0200 (CEST) Received: by mail-yb1-f179.google.com with SMTP id o80so3471279ybc.6 for ; Tue, 10 Sep 2019 08:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=TWwqq6OATYHEpFosXyr/KUZYl9MZaV1OP2lTzfRV0g8=; b=bnQVM8izPLoS42ORujYZTDnN1fOfCGp53+Nk01crthlklU/rOJmiI2yTjUtyPmNXRE 7pR3dCnLEgGyNziz3/sGU3XmwOpHHhsDO5XY7Nqlf+K3vMJBmCF7zMcmXIvzCm39SJ3B FyHlAxQnOyFp0kYP9xHnbFwXLhWxhZOR4tCPdX6QZfGeEvAY3bgwRmpHPpU3Pm75T5Fa OZRdQvsHNpfyTnmUsAxcwyPVkgHpE3ZPi7oHyVd7IJ7dmi3cwWS8LLL0mQ4TuMWYI7+e i9mlK36xlstEWFLFz7YUYLFoRA8Lib0cOIs5jWIo8LHo/WpUuP0jo4ce2vdcuUXdNObz cU/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=TWwqq6OATYHEpFosXyr/KUZYl9MZaV1OP2lTzfRV0g8=; b=gqXO0vDlFkSr0oh4X4PvYrNAW1tCihfRmI6n95HAnOpqswhOEPEFBLpV0bAUfyWWcZ 0oKfhShmPohXAIfMF1fRckgkMCpfQlrz9qmH8dSPcJX7J14NW40kSqwFWE+zFbzqRjAu hteiXKUTuZZeHBKjKZs1/27JN+izF/aganq8bNPM+CNPbttgp0Krzdujq+ewE0t9FqPS PoFguYcAVG/Tpw6E95yqN0kups5eK6BRNubVj68m3zLvZuBhb3z0Se/qCaTeYIGfLO51 zPwjEAX38hHZ/Z9/qq0Nta9T1IpyeIAh7AzoxgEk1eY54+mA3f2cvjnWtanMpptenwut LVTw== X-Gm-Message-State: APjAAAUV1PqD2dIr5JhwMiqoXAZjr87ZIdUCP9QFbfYWq5ZLhjzj5Y/s 20QEOA036/VIjb10MRdbBN2CDBuQVKOU7cqd8EuhB8ms X-Google-Smtp-Source: APXvYqzHngLbbyU+BHDe2xhwSBuoMEbGndLQa8QDPkYu3WgwJApVTy6rrMidIJTa0woIh3RtgGNz0tJNlzlPnVAHtKg= X-Received: by 2002:a25:72c5:: with SMTP id n188mr19033303ybc.328.1568130442887; Tue, 10 Sep 2019 08:47:22 -0700 (PDT) MIME-Version: 1.0 From: Andrew Wang Date: Tue, 10 Sep 2019 11:47:12 -0400 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] KNI sample application ping from remote host X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi I tried running KNI sample application. The host machine has 2 "82599ES 10-Gigabit SFI/SFP+ Network" interfaces, one of which was bound to igb_uio Network devices using DPDK-compatible driver ============================================ 0000:04:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' drv=igb_uio unused= I started the kni application on that interface root@localhost:/tmp/dpdk-stable-18.11.2/examples/kni# build/kni -c 0x3 -n 2 -- -P -p 0x1 --config="(0,0,1)" EAL: Detected 24 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Probing VFIO support... EAL: PCI device 0000:04:00.0 on NUMA socket 0 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:04:00.1 on NUMA socket 0 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:08:00.0 on NUMA socket 0 EAL: probe driver: 8086:1583 net_i40e EAL: PCI device 0000:08:00.1 on NUMA socket 0 EAL: probe driver: 8086:1583 net_i40e APP: Initialising port 0 ... KNI: pci: 04:00:01 8086:10fb Checking link status done Port0 Link Up - speed 10000Mbps - full-duplex APP: ======================== APP: KNI Running APP: kill -SIGUSR1 29622 APP: Show KNI Statistics. APP: kill -SIGUSR2 29622 APP: Zero KNI Statistics. APP: ======================== APP: Lcore 1 is writing to port 0 APP: Lcore 0 is reading from port 0 And then bound the vEth0 interface to a local subnet address: root@localhost:~# ip addr add 192.168.0.4/24 dev vEth0 root@localhost:~# ip link set vEth0 up I can ping the interface locally: root@localhost:~# ping -c 1 192.168.0.4 PING 192.168.0.4 (192.168.0.4) 56(84) bytes of data. 64 bytes from 192.168.0.4: icmp_seq=1 ttl=64 time=0.040 ms --- 192.168.0.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.040/0.040/0.040/0.000 ms But from a different host, the ping won't succeed: root@gateway-09:~# ping -c 1 192.168.0.4 PING 192.168.0.4 (192.168.0.4) 56(84) bytes of data. >From 192.168.0.2 icmp_seq=1 Destination Host Unreachable --- 192.168.0.4 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms Is this expected behavior? I had thought the sample KNI application would just grab packets and forward to the kernel but it seems this is not the case. How do I have the DPDK app grab all packets it sees in the interface and forward to the kernel? Thanks Andrew