From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by dpdk.org (Postfix) with ESMTP id 6711537B1 for ; Mon, 26 Sep 2016 09:45:44 +0200 (CEST) Received: by mail-qk0-f173.google.com with SMTP id t7so155850195qkh.2 for ; Mon, 26 Sep 2016 00:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/4oqh0+82jlcW+ja931TgGrTjbhyBUBTlcKQhYG6MgY=; b=Hzf+2WtFadWhLhaw1KAFcQSfOnGcZlatdLBreEE/sVMDdFY1HevEvv9DM0n8g89djh fGq4CQNPq5ZpQJ7/NVD2KxyrPjn7oUPPl2ubpXjjuObx1uAqGSNVtviC+7JmHltU46jZ AYVEDCRGhCYn0Q8HISEmpTtN2busRAbp1hxdvXd6Dgf8cBLKv1G7EG4htWTTozlrYgaB zonTPbB6zmmsh1rkNwXJ4xpEnni//A3yDNj7GM7Hawze3ykWtD6Y3l8zwQaqftm4ik2k V0rSeXFcjnsAnRo4/OImDTfHWFPnTTpFNu2hiSs+219wXtshqzUCDd96ZciX/Kx933gL 6j9A== 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=/4oqh0+82jlcW+ja931TgGrTjbhyBUBTlcKQhYG6MgY=; b=WNXk5ZjFgVHzOr/rTSVtOYDP+VpkCB5csg+DP1StZQAyokxswpaibAXyAWlbmnVJMr cpJ+JdE7t21LNBrRCnReCQ8W/DHVAtNq9bA4CdLZoaHdk7d128aAObGD90zICt1GQf3/ r/z1yx4klmqE4AGz1Drxp5DKfZqwoGkfbWltx6ucEuN4GaX9NKCZlhsX0oclWi/J0pLN lSd5Yii8bLoihxmp+T8051cBhNasyjgRWokhPWszlvaBIO48E/3GkERCZaKQxYaJ0WmC zt96hmf153GaQXCV1bFCfn9hC0iwb0HLFYp7gZ5Z+jwGfuJ+OPZ53sP/H6h7vTorP9OY 9Idg== X-Gm-Message-State: AA6/9Rl1OvAiLDr2tLT6veL3Pas3qA73IzOd1pZA3RJkqffobHRUdX4VirMfEdAb5RnM5QR/9Ay/TKVKgvg/gg== X-Received: by 10.233.221.65 with SMTP id r62mr21587175qkf.104.1474875943845; Mon, 26 Sep 2016 00:45:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.6.5 with HTTP; Mon, 26 Sep 2016 00:45:43 -0700 (PDT) In-Reply-To: References: From: Amit Sharma Date: Mon, 26 Sep 2016 13:15:43 +0530 Message-ID: To: Andriy Berestovskyy Cc: users , jashn83@gmail.com Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Packet drop when using KNI sample application 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, 26 Sep 2016 07:45:44 -0000 Hi Andiry, We already changed the vEth0 mac address [same as eth0 mac address]. For reproducing the issue, please follow below mention steps:- 1. Assign the ip address to vEth0. 2. take the port down [*ifconfig vEth0 down*] 3. up the port [*ifconfig vEth0 up*] 4. wait for 400-500 ping Packet, issue is going to reproduce. PS:- when we do port down and up, once port is up. Issue will occur. Br Amit Sharma On Thu, Sep 22, 2016 at 1:37 PM, Andriy Berestovskyy wrote: > Hey Amit, > Regarding the pings. Try to set the same MAC on vEth as you have on > eth0 prior the unbind, i.e.: > > # ifconfig vEth hw ether > > > Regarding the logs. There are compile-time options to enable debugs in > PMDs. Please see config/common_base file for the complete list. > > Not sure which driver you use, but for virtio-net you could try to > enable *_VIRTIO_DEBUG_RX/TX and then recompile the DPDK and the KNI > example. > > Regards, > Andriy > > On Mon, Sep 19, 2016 at 9:59 AM, Amit Sharma > wrote: > > Hi, > > > > While running the DPDK KNI sample application, we are facing packet drop > > after some time. > > > > *Setup:-* > > 1. 2 VMs configured using Ubuntu 14.04 > > 2. eth0 of both VMs connected to each other, and able to ping > > > > *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 0x3 -n 4 -- -P -p 0x1 > > --config="(0,0,1)"*]. > > 4. Assign the ip address to vEth0 [*ifconfig vEth0 10.0.1.2*] > > 5. start the tcpdump on vEth0 > > 6. From 2nd VM try to ping 8.8.8.8 > > > > *Issue:- * > > ping works fine for around 400-500 packets(we reserved 2000 2MB > hugepages). > > after that ping packet is never sent back to VM2 > > on further investigation we found *rte_eth_tx_burst *always returns 0 > when > > the problem occurs > > we are investigating it further, But before that any help is welcome > > > > > > on the side note, we have another issue with log levels, to investigate > the > > above issue we were trying to enable the logs for PMD > > using the following code > > > > rte_set_log_type(RTE_LOGTYPE_PMD, 1); > > > > rte_set_log_level(RTE_LOG_DEBUG); > > > > during initialization we see some logs from PMD, But after that no logs > > during receive and transmission of packets, any idea why is that? > > > > Thanks > > Amit Sharma > > > > -- > Andriy Berestovskyy >