DPDK usage discussions
 help / color / mirror / Atom feed
From: Sushil Adhikari <sushil446@gmail.com>
To: Andriy Berestovskyy <aber@semihalf.com>
Cc: users <users@dpdk.org>
Subject: Re: [dpdk-users] Setting real MAC address in KNI application
Date: Wed, 17 May 2017 14:47:16 -0500	[thread overview]
Message-ID: <CAPO9LfRW6LtFBVmQoLsvv4_gum49KinucfSyfPJSf_EXMN_hAg@mail.gmail.com> (raw)
In-Reply-To: <CAOysbxrME0EnNtaXFaqZeDf5AnNiGbEV37iY8r8DSOYNWcXDwQ@mail.gmail.com>

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
>

      reply	other threads:[~2017-05-17 19:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-16 17:10 Sushil Adhikari
2017-05-17 10:42 ` Andriy Berestovskyy
2017-05-17 19:47   ` Sushil Adhikari [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPO9LfRW6LtFBVmQoLsvv4_gum49KinucfSyfPJSf_EXMN_hAg@mail.gmail.com \
    --to=sushil446@gmail.com \
    --cc=aber@semihalf.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).