[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dpdk-users
Subject:    Re: [dpdk-users] Setting real MAC address in KNI application
From:       Sushil Adhikari <sushil446 () gmail ! com>
Date:       2017-05-17 19:47:16
Message-ID: CAPO9LfRW6LtFBVmQoLsvv4_gum49KinucfSyfPJSf_EXMN_hAg () mail ! gmail ! com
[Download RAW message or body]

Thank you for the replay but I am trying to do it in the KNI application
which runs before bringing the network up. I found one recent patch which
seem to work
http://dpdk.org/dev/patchwork/patch/24067/

I applied the patch and added mac address in configuration parameter of
struct rte_kni_conf.


On Wed, May 17, 2017 at 5:42 AM, Andriy Berestovskyy <aber@semihalf.com>
wrote:

> Hey Suchil,
> Just add a MAC to your /etc/network/interfaces:
>
> iface kni0 inet static
> hwaddress 10:20:30:40:50:60
>
> Regards,
> Andriy
>
>
> On Tue, May 16, 2017 at 7:10 PM, Sushil Adhikari <sushil446@gmail.com>
> wrote:
> > When I run the DPDK KNI application it gives random mac address to the
> > ethernet ports. How can I configure it to set up the real MAC address of
> > the hardware(ethernet ports)? It seems like I can get mac address by
> > calling rte_eth_macaddr_get but to set up I need to call kni_net_set_mac
> > which takes in net_device structure which again I don't have access to
> from
> > my application. Is there a way to set up the mac address of dpdk ports to
> > its original mac address in kni application.
>
>
>
> --
> Andriy Berestovskyy
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic