From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by dpdk.org (Postfix) with ESMTP id EA7BE5681 for ; Wed, 23 Nov 2016 19:40:22 +0100 (CET) Received: by mail-oi0-f48.google.com with SMTP id v84so25405175oie.3 for ; Wed, 23 Nov 2016 10:40:22 -0800 (PST) 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; bh=M3M7sVOweSsIOnfGV9Ehr/gRLQwqWuma8nYTXGyqvSs=; b=Ym3gidMkTnYRatFu4t4yz0t4Juncj3KYhFv+DOJAvDlxVcw/4oyIusK1D6g0e1afWl icw+j5Yq/bM6dp+9O/zmq7idLCIFeZVKRoUJxq7O2DD6LqvjVOB2b0515tan80ak2yhK wrtkxyVMAawMjThNpTtPCauc2dFUsAVkvFsyv0C3QZZBaZgTJMNPEd7it2yN79jaaRa3 N8uPxkvJ2rs043smSQ8HDkQioe25JjM4joJFSSJbhsJDGgfl89fbDWZMxtBF0w++pccl wQwtNE0IDKtup4K/NlUHjmq8JiC2D2x9NvcrLnW0VLXd/uwN4G/Z3BMgsk7dY4s5S9zz cFxw== 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; bh=M3M7sVOweSsIOnfGV9Ehr/gRLQwqWuma8nYTXGyqvSs=; b=kWdptQMnuanDO4Kruc5P+ExivjjJQWqcp0UWdz7rBrDnHA8IczbgeF32F3A5kN/e5v hvTGdHP7j6V6mLKI4rlxKnUS4/ADfPeRDeo2wQOlOSRlQzXurdeuLas5yIxmPkdCpRjS V0AsYj7xjd0fXVySiu5dCDWT4TLy/b1S9pYP+H9bDUF7RHmFUt0ecjo7m8Q8zgFqs1il UkFUFqkNtaWtneZPXgdz3ID9L0+ALE6+cgaIQUDOSHoq8M7NwXlyGFSj5hV2ShgZS3Qg lftH6RqSr1NU2Qxjh2IHC8eR2mXfaWtoJSts1ermqHmpEn6DAQlGXr2biOMEreG3Af6B tbOA== X-Gm-Message-State: AKaTC02H8TEpQSA/DI/4b1duNhj1ymXNOuoPrAlNjGbmcyU3qFwe/S8XYcNd54GcLdhSPuo2CAkmLBcMuddyVQ== X-Received: by 10.157.48.4 with SMTP id d4mr2715151otc.110.1479926422026; Wed, 23 Nov 2016 10:40:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.3.3 with HTTP; Wed, 23 Nov 2016 10:40:21 -0800 (PST) In-Reply-To: References: From: John Pearson Date: Wed, 23 Nov 2016 10:40:21 -0800 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] KNI Integration 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: Wed, 23 Nov 2016 18:40:23 -0000 I tried to follow why the kni_config_network_function was being called multiple times and it only happens sometimes. I have 4 cores and I am running with coremask 0xf and lcores 0,1 On Fri, Nov 18, 2016 at 9:25 PM, John Pearson wrote: > Hi, > > I have a DPDK application with two interfaces acting as a load balancer. > On one of the interfaces, I am allocating a KNI interface so that certain > packets can be processed by the kernel. To test I have a DHCP server > connected to the physical port to which KNI is bound. > > I'm having 3 issues: > > 1. kni_config_network_interface function set on the rte_kni_ops struct > when allocating the port is called multiple times when run "ifconfig vEth0 > up". This function is called 2 or 3 times every time. > > 2. After I receive DHCP, when I ping google.com to test, I get multiple > packets that are duplicates, which are repeats of the same ICMP Sequence > and with message "DUP!" attached (http://unix.stackexchange.com/a/13256) > > 3. After a while of running the interface KNI and using it process > packets, usually after transmitting 200-300 Pings, the interface "dies out" > and stops reading or sending packets to the kernel. > > The statistics for ping: > > --- google.com ping statistics --- > > 302 packets transmitted, 198 received, +95 duplicates, +49 errors, 34% > packet loss, time 310119ms > > > >