DPDK usage discussions
 help / color / Atom feed
* [dpdk-users] KNI sample application ping from remote host
@ 2019-09-10 15:47 Andrew Wang
  0 siblings, 0 replies; only message in thread
From: Andrew Wang @ 2019-09-10 15:47 UTC (permalink / raw)
  To: 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-10 15:47 [dpdk-users] KNI sample application ping from remote host Andrew Wang

DPDK usage discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox