From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by dpdk.org (Postfix) with ESMTP id DB15DC314 for ; Wed, 27 Jan 2016 21:28:15 +0100 (CET) Received: by mail-oi0-f49.google.com with SMTP id p187so13322623oia.2 for ; Wed, 27 Jan 2016 12:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ao+xN1lxkOywyQKogpgPX2O4+pj7pgCmbcni2GuKFdo=; b=mWl6UHWt5sFGOy3u6VsXvxDRASO8AhN2injFjkBa0zQEuN2eQ8HLe5cuePCW6PSquG N5Yqm8Waa/TCy1hlefZer8bowaGtQh5sJj3dHx97rGuqPu1Zi1i4RFfBz16uz1p014mM 7kfaypGo9TMlzPyQpOHkmzpmFSfvr2pjbrYf4oqaBzavr/CAeEXHqFa4Jq033nnYP5rd TnPkV7n6hZ0mEiXYbSYmYHHmU6vPYdGqnLq+ZbvDocJ3dO+b94C9yLr3eX5+/a3PVVuY uiucsimTpqxpCHoWK83etR7/7XUEmESLWXUHTNclCD/FMPNyJ/ak1WFmViwSFFHK3OjB P/gQ== 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:date :message-id:subject:from:to:cc:content-type; bh=Ao+xN1lxkOywyQKogpgPX2O4+pj7pgCmbcni2GuKFdo=; b=UfI9pmozJrdWSfMDVsBbUa6kVZJBShOIdy3uob6Pr8lMTSZ5lcec92Giobiox+E/jl obrHJ/WXY+P1AkpVDzq1Bd2vLDqZ+zHaywUCzaTRjgkKD8ltzA8I1OXT4LmLLVIMI73A FTONQ2mf3HRRlVeTFbIgeHaC9oGGygQh1ZKWEkBdl7U5P2wHHST1Uh5+0MKUZRmOMn7O kTWBvay4IJURs10KQAGm549MHMYS8ZGzb5Vzzxt6vqhsmpjB79B3mTjL4NCj4ccAALSc YC8DDxzNDHTkOFzBCbIFuLaK5Bjia3b6IlhRIhWifHja7Sv7Vjgl+sflyrsBkt57raLY QTzg== X-Gm-Message-State: AG10YOT1SrWvFgGeJRHuqoK/BieTqAMfqO+XZvRcKgHdRZyR+0o/O3wMfJqzRijJmtE9IYplThDKgfs/UdI5bA== MIME-Version: 1.0 X-Received: by 10.202.84.132 with SMTP id i126mr20680386oib.99.1453926494994; Wed, 27 Jan 2016 12:28:14 -0800 (PST) Received: by 10.76.105.111 with HTTP; Wed, 27 Jan 2016 12:28:14 -0800 (PST) In-Reply-To: References: Date: Wed, 27 Jan 2016 12:28:14 -0800 Message-ID: From: arun kumar To: Masoud Moshref Javadi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: users@dpdk.org Subject: Re: [dpdk-users] KNI implementation help needed 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, 27 Jan 2016 20:28:16 -0000 Thanks for your reply ! I used to run KNI in similar manner and I tested KNI sample application. Came to know the reason behind dpdk0 interface ceration. I am using mTCP package which contains dpdk integrated it. mTCP team modified the igb_uio driver code to create dpdk# interfaces when the PCI address is assigned igb_uio driver. so that's the reason I am seing dpdk0 interface when I run setup.py script and attach a device to igb_uio driver. The dpdk0 interface will not be created by plain DPDK libraray/driver. So I think I have to check with mTCP library to remove dependency with dpdk0 interface to achieve what I need. On Tue, Jan 26, 2016 at 2:28 AM, Masoud Moshref Javadi < masood.moshref.j@gmail.com> wrote: > What command did you use in setup.py to create dpdk0? > This is how I use kni + dpdk. > use setup.py to load kni and igb-uio module and connect interface to igb > uio module > run kni sample app > > On Tue, Jan 26, 2016 at 1:08 AM arun kumar wrote= : > >> Hi All, >> >> I need to integrate the KNI interface into my DPDK application which can >> redirect the packets to Kernel stack. >> >> But the DPDK =E2=80=9Csetup.py=E2=80=9D script already creating one DPDK= interface (dpdk0) >> for the NIC port. Also the KNI interface creates one more logical >> interface >> for the same NIC port. The creation of 2 logical interfaces for the same >> NIC port creates issues in my application when I want to communicate to >> external client. >> >> So I want to use only one interface which can be used by DPDK applicatio= n >> and by KNI as well. >> >> So, how to integrate KNI into DPDK applications? >> >> >> >> -Arun >> >