From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f180.google.com (mail-io0-f180.google.com [209.85.223.180]) by dpdk.org (Postfix) with ESMTP id 502A958D8 for ; Thu, 22 Sep 2016 10:08:06 +0200 (CEST) Received: by mail-io0-f180.google.com with SMTP id q92so78255776ioi.1 for ; Thu, 22 Sep 2016 01:08:06 -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=/XrChfELuCaBSNB56FDVG6xihuOMc5VuoA5HelL3mK0=; b=t+EbtbjIq2p3tdHbE2ff7sT9b654HQruwDzaI+TPxHG7ZevGIUWrRIN+ch6MgATrpj 0ritb9wgqjwBCEL9LD102aTAkorcrVuuaE0km5sblyLzEXhSS5lI2XRGW2d1BH9m2Utt YLsWJxpML7FySPxA0xv8HcUq1SduzGOpymckSZjwVKEg0wZxVgNqBDYR5A1V75SnwIgq ASUOP7fELsEP9r5USYe9hT66ySxxSB3IEzQnBtcHC+I++yuQ9CErhpLAtaEpodGv5SJZ VWItZ4B6gV/9pOE0BVMSM7nP1vnowlS0vcpDX/8jKOj0SRva/wQmhqM5ckfcu2ZsX7yo h70w== 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=/XrChfELuCaBSNB56FDVG6xihuOMc5VuoA5HelL3mK0=; b=aFlwAE/6VuIhxP3dimrmF46tNsP0xznM8GJOkTPeNrc0cmEMOGLTVPZflZ5ryPFklJ 6653CMVvD62eVnZ13mQ2J+qboYIY+aDSoDRvzmnL5aP9fHrNklfT9zfsgsyJPsM2sY7h V5qBurjFgCAQK8NLaFYK+/TmYrDz9oX5dLLRRGjXCHt4Ks2GGojB/8CPRCV4N2HQlHxk BhFDqRU/BbBmf7egqexBn7AyU8R+jV2Y+xZauUKoCsWCfYtlVhMPrFowOgAYRHgRJAnv 5iiKEKfS/CneIejpyg1bdwULxApEbGFRkgUv3jSeitM5ZQ4iZ0+CymbRa/iURFjHguU+ 4swg== X-Gm-Message-State: AE9vXwP8HbRnyseNhX5ROiTEcqZOcYE55WInW5OW5s1XB9MpbAHC+vleWhM3slhoR1s/FuFNcj2x51LgVeX/eQ== X-Received: by 10.107.133.145 with SMTP id p17mr1289491ioi.164.1474531685732; Thu, 22 Sep 2016 01:08:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.13.135 with HTTP; Thu, 22 Sep 2016 01:07:44 -0700 (PDT) In-Reply-To: References: From: Andriy Berestovskyy Date: Thu, 22 Sep 2016 10:07:44 +0200 Message-ID: To: Amit Sharma Cc: users Content-Type: text/plain; charset=UTF-8 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: Thu, 22 Sep 2016 08:08:06 -0000 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