From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f52.google.com (mail-it0-f52.google.com [209.85.214.52]) by dpdk.org (Postfix) with ESMTP id 7537829D1 for ; Mon, 29 Aug 2016 15:39:28 +0200 (CEST) Received: by mail-it0-f52.google.com with SMTP id d65so96773049ith.0 for ; Mon, 29 Aug 2016 06:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BIPcc6w7ITZlgUMWLnBJJLBGnvb1/a7soxtRe+vW+kA=; b=u7Uv9Wnj2otvoqltkdUujONuIZzp9HLKarSOxZuN8XnjL8wNrQ7Rq8pjRrOS9yOPDm pqTAEDtEeh/3efozg8P4Ko1X9BQ5qP8fLHwR8ushgMfAjiiQJAsqTB74/hioMClYihDD ZsJzOG7D0uJUaB+4QDVLtQsrKnc2oiYNqL7KjBxpMX/cttV413Mb6rv2HWmmDgtDWsHM DlZoVtXLype6Ew1wOB1o45pougKUI/hhrvAGral5ojb3scjrgF8bRVNYlm000qiqkrEn Q8Uz9G01/ZtalqgCn0QLj5lluH9toHgUVx/7BK65z1pmWOElZUnpWQY81fFkGWtbXrX1 zpbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BIPcc6w7ITZlgUMWLnBJJLBGnvb1/a7soxtRe+vW+kA=; b=eewhfQAd/mR7Bk8PYLth/T7IFdjMEkasZPJ8Q9nMYEIK9WpygDeVETE5zWJR242Y6Q tCwVoUYH4tx3C4pnU7MqidTQNJv7wND9PopD8Dgws1vLDrVwacq8j25L8l/ALe75j5ig CAIcM+4RFtNMddRxhn/MsEDn5RwVZLrDtfVsGwTsXQxdufqJ06zQ5xa/eee571JKf0nb NEA7rFxwcWsydykRFvmBbdiU+CLbnF+uLSOFdOYgS4ki/C60nrc0AzfTUE9M53zI5K9O cxZr/ebDD4+u0tPN92In1E257Ok2pFtIZFxr9q6x7y12GobLsA61qhnVJNh0j0lr4vDU z/qw== X-Gm-Message-State: AE9vXwNSbKPZcID975A+lrKgDMN25KKpTDEBCIN8PniJD9xnvCIS4hebfi8D1YXB5W6DpStlbZXGGYlQ+GaYbg== X-Received: by 10.36.65.150 with SMTP id b22mr13390316itd.90.1472477967844; Mon, 29 Aug 2016 06:39:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.12.208 with HTTP; Mon, 29 Aug 2016 06:39:07 -0700 (PDT) In-Reply-To: References: From: Andriy Berestovskyy Date: Mon, 29 Aug 2016 15:39:07 +0200 Message-ID: To: Amit Sharma Cc: users Content-Type: text/plain; charset=UTF-8 Subject: Re: [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 13:39:28 -0000 Hi Amit, The simplest solution would be to set the same HW address on vEth* interfaces as you had on eth* ones. You can use ifconfig or ip tool for that, i.e.: ip link set vEth0_0 address Also you might want to add this to your /etc/network/interfaces file (or similar) to make it permanent. Regards, Andriy On Mon, Aug 29, 2016 at 1:05 PM, Amit Sharma wrote: > 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 -- Andriy Berestovskyy