From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f180.google.com (mail-qt0-f180.google.com [209.85.216.180]) by dpdk.org (Postfix) with ESMTP id 470B829C8 for ; Mon, 29 Aug 2016 13:05:46 +0200 (CEST) Received: by mail-qt0-f180.google.com with SMTP id 52so66197956qtq.3 for ; Mon, 29 Aug 2016 04:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=8JmhBdPSN+88DqcAgSGVody5SuWoNJfC0YGA5SZNMFw=; b=CYo9o4Fdr+bGjxVt51+zfEtZEcuTT4iG7e1A8yTCDQnp4E7AzvDeC6aw6DY+MxzphA +ONErNh7uS/aqK7JSpgsJtT3Irsw+4jXNWTdKBMxsYX/twTqDGy4+Oa3aQkcPHzROpVY 5SmqKOlovRdUnBgZlVR2hjvNV/d60ukBq57JoZir5LIjmj4JYLuu5Svo8mG6hMi/31RA G5emle4QeUkBehGe5I/d3Fo5Pok1zEHFMecmQ7cZDBfZSfR7+4zgYaNtgOsflAX2HX2V lO6HwUmrBnuchXBHoBmxi/D1PEuugzILndBixjwOsilRc8p6wZTS7+780xqiF1Kq7xO0 AxQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8JmhBdPSN+88DqcAgSGVody5SuWoNJfC0YGA5SZNMFw=; b=je53XB1E/ziKS/RcMZlFSLQKVXBkk38wh2KP2F2jmUEp005PxnTdd2wwzbT4lEjgWd t86T35dfYXy2EfGDTAuL5vSX7WEaE4bQkwi9cfBXiQtVjwFpo4aYqqufR5/d+Md/ZL85 uJshVZEqrpPptefXFX5prfOwZMITfEWfI1hkrmwIKE4gJzlN7PANnJpF1DheFfAZEMZz 2SUzc/L4gmrA4/SZ1AjvnifFMlH8GddCJx9JPEwNVM3835fw3yGRzkThEH3NFSbIthex 6Adw4lwfbVlDXdH3AOrR1TVsvB91UxRtXYQ/a7EUt6CCrbPqJ5TcaPSNO88Bd3jCIRb/ mYuw== X-Gm-Message-State: AE9vXwNmGcoFEVDSa5FJFt5bDnrsWDb3i38cdiU5cfSDji0wJ2bPRBhe6A9zGfgm0Gvl3JwIDjsaxMhwSwaKUA== X-Received: by 10.237.59.51 with SMTP id p48mr17791482qte.95.1472468745584; Mon, 29 Aug 2016 04:05:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.168.65 with HTTP; Mon, 29 Aug 2016 04:05:45 -0700 (PDT) From: Amit Sharma Date: Mon, 29 Aug 2016 16:35:45 +0530 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] Query Regarding DPDK KNI exmaple X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 11:05:46 -0000 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