Zhang, Alex,

Please see the patch I had submitted a few days back which allows setting the 
MAC address using 

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 <helin.zhang at intel.com> wrote:

> 
>> -----Original Message-----
>> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Alex Markuze
>> Sent: Wednesday, July 2, 2014 11:57 PM
>> To: dev at dpdk.org
>> Subject: [dpdk-dev] KNI hw Address.
>> 
>> 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.
>> 
>> 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?
>> 
>> Thanks
>> Alex
> 
> Hi Alex
> 
> No way without modifying the code. Two ways can be taken into account as 
> below.
> 
> 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.
> 
> Regards,
> Helin

Reply via email to