DPDK usage discussions
 help / color / mirror / Atom feed
From: Andrew Wang <andrw.wng@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] KNI sample application ping from remote host
Date: Tue, 10 Sep 2019 11:47:12 -0400	[thread overview]
Message-ID: <CANEosPCJyMAPYMufvqvZcePCy14NUp2X_qLgDQMhZ-pYcaMREg@mail.gmail.com> (raw)

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

                 reply	other threads:[~2019-09-10 15:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANEosPCJyMAPYMufvqvZcePCy14NUp2X_qLgDQMhZ-pYcaMREg@mail.gmail.com \
    --to=andrw.wng@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).