From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) by dpdk.org (Postfix) with ESMTP id 4EDDB37A8 for ; Mon, 11 Apr 2016 11:02:07 +0200 (CEST) Received: by mail-io0-f175.google.com with SMTP id g185so200532825ioa.2 for ; Mon, 11 Apr 2016 02:02:07 -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=v3qnM/YqneUThCHYvILEteQJYjdlvUx+F3BSU63oeMY=; b=lOM4Kf9O/pD677LxUCeGI6vH0uE1pDlZPJqRNlMLBbFtSdGDaJpFXEtu8/g1EBrFnf digbbXLh+rysJPRUub4fN1FOFZHYtXCYPNqJ+nqPRbsqsSZw9pZ79ACQZ/YB7nJtiz6N KSsywvTlCiXy2SVUqIqUDvfdeQFFmuDOWGGO9Yb/14S234qMYnNkyz+aIyENj0msoLU0 eeyqPwie4k5PvokW1AAfymAJEBQxe6dKIxD4EGnaeCcPpbzG0aySTqRtpDl7wUT8XxV+ kNfM+gAqnj/2EJXflHCnY+pfHGKy/yb2LKxl/7p/RK4QgwhNpPfQ84e6MAW4lk/o6rRK bvog== 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=v3qnM/YqneUThCHYvILEteQJYjdlvUx+F3BSU63oeMY=; b=aSWkFTJyyjuuCp7Q8JNIQ4JEXwIx0CpDxOhBZyvaAH4dkQFIYKwgdezQCmGXvmAuKw 7JIrG9MFhekvx6vcpFxNBlaypLXWNim1+rfzNeRbRg1zpoisasUcb7qD9ElKqljK55I8 ctRvKfOktMWDkeQVeKNTIs7mSWIkx5o0ShfKWjamM1ksJC54qnQYtYht3WksI0Kc0Ilu QagN7ONc0IEudCCT5YVDgu/sLTDSQN69Vt+UiyhJzt5TmOnxgAGZAqITgnFJg16Rizm0 jYOxWWG1BK63R3YQI3rbyESQJf25iI55ZvpFNk8o/uUsQgY7ufAoQ0Kt1RhY45WP8nhh 4fcQ== X-Gm-Message-State: AD7BkJI2VbXLzcm5GYw3D0V0mQtdcbIjvw3NFfw7l9G3JOs2EuA8zt8DbFFU8FudJCxqhdjGPLGOrdL0Pv34xQ== X-Received: by 10.107.170.17 with SMTP id t17mr26477882ioe.71.1460365326776; Mon, 11 Apr 2016 02:02:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.33.144 with HTTP; Mon, 11 Apr 2016 02:01:47 -0700 (PDT) In-Reply-To: References: From: Andriy Berestovskyy Date: Mon, 11 Apr 2016 11:01:47 +0200 Message-ID: To: sml Cc: users Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-users] Configuring MAC Address of KNI - Don't want random 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, 11 Apr 2016 09:02:07 -0000 Hi sml, The KNI uses old ixgbe and igb Linux drivers in order to support ethtool. Here is the list of supported e1000 devices: http://dpdk.org/browse/dpdk/tree/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_hw.h#n37 The list is somewhat shorter than the list of supported devices in DPDK itself. So there are some devices which work well in DPDK, but KNI generates random MACs for them. The DPDK community decided to get rid of the KNI, so your only option is to set the MAC on vEth using ip(8) or ifconfig(8). You can also add an option into the /etc/network/interfaces (or similar), so the MAC will be configured once your vEth device is up. Andriy On Sat, Apr 9, 2016 at 7:41 AM, sml wrote: > Hello, > > I am having an issue where when creating the KNI interface I would like to > KEEP the hardware MAC address. I can properly create the interface. It > starts in a down state, I then need to manually ifconfig the IP Address and > MAC address with UP to get what I need. If I just do the plain ifconfig -v > vEth0_0 up - it assigns a random mac address. (Using a e1000 as well I350 > and emulated e1000) > > This also happens if you DOWN the interface and bring it UP using ifconfig > again. Using Version 2.2.0 > > What is the proper procedure/flow for doing this within the codebase so I > can have the end result of the original hardware MAC and the interface in > an UP state? > > Sorry if this seems basic I just can't seem to find any examples of how > this is done. -- Andriy Berestovskyy