From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp113.ord1c.emailsrvr.com (smtp113.ord1c.emailsrvr.com [108.166.43.113]) by dpdk.org (Postfix) with ESMTP id 281FF30E for ; Thu, 3 Jul 2014 07:05:18 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp7.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 54F8A38176E; Thu, 3 Jul 2014 01:05:38 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp7.relay.ord1c.emailsrvr.com (Authenticated sender: padam.singh-AT-inventum.net) with ESMTPSA id 6E51E3817BB; Thu, 3 Jul 2014 01:05:35 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) From: "Padam J. Singh" In-Reply-To: Date: Thu, 3 Jul 2014 10:35:30 +0530 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: "Zhang, Helin" X-Mailer: Apple Mail (2.1878.2) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] KNI hw Address. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 05:05:18 -0000 Zhang, Alex, Please see the patch I had submitted a few days back which allows = setting the MAC address using=20 ifconfig ... hw ether MAC-ADDRESS An "ifconfig DEV up" , followed by this sets the MAC address. Thanks, Padam On 03-Jul-2014, at 10:26 am, Zhang, Helin wrote: >=20 >> -----Original Message----- >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Alex Markuze >> Sent: Wednesday, July 2, 2014 11:57 PM >> To: dev@dpdk.org >> Subject: [dpdk-dev] KNI hw Address. >>=20 >> Hi, I'm playing with KNI on a VM (kvm), the Interface that is created = has no >> MAC address until the IP is set via ifconfig - then a random mac is = created. >> The VF has a mac address that is easily retrieved with = rte_eth_macaddr_get. >>=20 >> What I did not find is a way to create the KNI with that specific mac = address >> enabled. >> What are the ways to set the KNI mac address? >>=20 >> Thanks >> Alex >=20 > Hi Alex >=20 > No way without modifying the code. Two ways can be taken into account = as below. >=20 > 1. Implement ndo_set_mac in KNI kernel module to set the MAC address. > 2. Add mac address as one more parameters in user space KNI interface, = to tell the kernel module the mac during kni device creation. >=20 > Regards, > Helin