DPDK usage discussions
 help / color / mirror / Atom feed
From: Amit Sharma <amit.sh1094@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] Query Regarding DPDK KNI exmaple
Date: Mon, 29 Aug 2016 16:35:45 +0530	[thread overview]
Message-ID: <CA+VcHBKSE=6XKjLqBXpVbZzn3KDEuVeXa+8Hi4BUsOECy=XV+Q@mail.gmail.com> (raw)

Hi,

*Setup:-*
1. 2 VMs configured using Ubuntu 14.04
2. eth0 of both VMs connected to each other, and able to ping

*Requirement:-* *pinging between both VM using DPDK KNI example*.

*DPDK related setup:-*
1. 1st VM eth0 is bound with DPDK driver[bind=uio_pci_generic]
2. Insert the KNI module in Linux kernel[insmod rte_kni.ko].
3. Start the KNI application [*./build/kni -c 0xf0 -n 4 -- -P -p 0x3
--config="(0,4,6,8),(1,5,7,9)"*].
4. Assign the ip address to vEth0_0 [*ifconfig vEth0_0 10.0.1.4*]
5. start the tcpdump on vEth0_0
6. From 2nd VM try to ping 10.0.1.4

Issue:-
*Not able to receive ping packet from VM2 to VM1.*

*Invetigation details:*

Ping from VM2 is sending an *ARP packet first* and that's received by our
KNI sample app on VM1 and it responds with an ARP reply
But when VM2 sends an ICMP request it's not received by the KNI sample app.

while investigating we found that when we configure virtual
port(vEth0_0)(step number 4 above), an *HW address is also set*, That *isn't
same as the HW addr of NIC at port 0*
So When the kernel see the ARP request, it is responding with the HW addr
of VEth0_0, VM2 sends the ICMP request to HW addr received in ARP reply.
*ICMP packet isn't seen in at port 0* as the HW addr is different,

BTW the ARP request was received because it was broadcasted and kernel
finds one of it's interfaces has ip addr which is queried in the ARP
request, so it responds


*The question is how to map physical Port 0 withe virtual port 0? any
inputs here?*

Thanks
Amit Sharma

             reply	other threads:[~2016-08-29 11:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-29 11:05 Amit Sharma [this message]
2016-08-29 13:39 ` Andriy Berestovskyy

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='CA+VcHBKSE=6XKjLqBXpVbZzn3KDEuVeXa+8Hi4BUsOECy=XV+Q@mail.gmail.com' \
    --to=amit.sh1094@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).