From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2457A0487 for ; Thu, 4 Jul 2019 16:52:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C0BC62C60; Thu, 4 Jul 2019 16:52:18 +0200 (CEST) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by dpdk.org (Postfix) with ESMTP id B3A7E2C38 for ; Thu, 4 Jul 2019 16:52:16 +0200 (CEST) Received: by mail-pf1-f180.google.com with SMTP id u14so1857797pfn.2 for ; Thu, 04 Jul 2019 07:52:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HV5sZoakKTGVWjbCmMxBm9W/WZtVjZBw5MBagpJbULw=; b=ko/RwyCg5vc0mK9W/l1Cah/gZP32kF0ano3kqu6+iLGvCeNgYsibQ2TlkdLWDqE2DQ j38vuuFPGK0xxSgFu6SPXuBPgEVmp7m5RzBcFK//M4PjzlWKn6PphtRkQdLeVpcLQ1UP Oa/9M1va84QH3VufpXffx1kI1lAuOmppVGb2hRZhBW4fx088Lz9azkpnyt+4xo9Mk0Cv zYIPYVz99nHCvyikWICmcsAMRGtADDUZd7x6k47nUsRkg29gdUkDiTN7YVW1bHVZpEed FcIjbrQk8sB/mDVz98u8ULZvGOiGk2XipxZ3gXwuXrSAU3hAargvgfiQ6rHCPc2pQfwI VsQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HV5sZoakKTGVWjbCmMxBm9W/WZtVjZBw5MBagpJbULw=; b=dgLAS4UK6Ni6BefELB/V64EEpuUjifrQS6r/qnhjGCxNidWvmMM3sTg3gzMJ4SMAU/ AlIIhT7Oo5Q9g83JITCWYzzTr5LuUhn6jtyMSumb8HEdyV/Y/I1SCx3paPcwGyg6cFX/ 6ORD2z1aDjddOGow+l5SpLKOQ4CDVCBSsXhWHCvEaB7oXtWQ6I6Vt4ropcbqLhDEI2Lh sMyMLyCFmKZYYWwB4EMTRvHDkD3ljO8QoF/e1FJdDgIuhSZseTbom8IgKK+R3+mhjKPp NDpyMwsiwkAAw+1KksRGM3qhguIncdUlddNiIVlwG7kIfihjZA6vqK6GQgFK25bOBjnj Fr9Q== X-Gm-Message-State: APjAAAXfeYsL0vlUNseLGH6N1iuh0jNXcJEDJTr/uFyNWHyO8EM+BfBz HEG00XPaOgkSnZR7EpkE8Senyg== X-Google-Smtp-Source: APXvYqxuBKupZ0AlIPHBDtRS3HhaeLGNBEGM8hREgdQZb/E8hwYW5FOyhwqRqiIRk5pUm49DMOXOPQ== X-Received: by 2002:a65:48c3:: with SMTP id o3mr41681491pgs.70.1562251935840; Thu, 04 Jul 2019 07:52:15 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id y10sm7636574pfm.66.2019.07.04.07.52.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 04 Jul 2019 07:52:15 -0700 (PDT) Date: Thu, 4 Jul 2019 07:52:07 -0700 From: Stephen Hemminger To: Nilesh Unhale Cc: , Message-ID: <20190704075207.429045c2@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] How allocate IP to NIC binded to DPDK driver (igb) X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" On Thu, 04 Jul 2019 14:44:58 +0530 Nilesh Unhale wrote: > Hello, > > We are trying to build an application over DPDK. However, we are facing > some issues: > > After binding NIC to DPDK driver (igb_uio), we can not see it in > ifconfig -a. > So, how to bring up that interface and allocate IP to it? We want the > interface to be up even after our application is terminated. (Using KNI > module which is provided with DPDK, we were able to give ip address > which lasts till KNI program is running, but while KNI application is > running, we can not run any other application (which uses DPDK)). > > System specification : > 2 machines with > Distributor ID: Ubuntu > Description: Ubuntu 16.04.5 LTS > Release: 16.04 > Codename: xenial > > Kernel: 4.15.0-29-generic > DPDK: 19.05.0 > > Hardware: > CPU: Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz > > NIC 1: Intel Corporation Ethernet Controller XL710 for 40GbE QSFP+ > (i40e) > NIC 2: Intel Corporation I350 Gigabit Network Connection (igb) Your question relates to understanding what DPDK is (and is not). The DPDK is a set of routines for processing packets in user space. It has no direct connection to the Linux kernel, therefore there is no visible network device once a network interface is bound to DPDK. There are many ways (KNI, Virtio, TAP) for a DPDK application to reinject packets to the kernel. These all create pseudo network devices. If the majority of your packets need to go into the Linux kernel, you probably don't want to use DPDK. Instead use the packet processing features of kernel (netfilter, XDP, qdisc, etc).