From: Andriy Berestovskyy <aber@semihalf.com>
To: Sushil Adhikari <sushil446@gmail.com>
Cc: users <users@dpdk.org>
Subject: Re: [dpdk-users] Setting real MAC address in KNI application
Date: Wed, 17 May 2017 12:42:27 +0200 [thread overview]
Message-ID: <CAOysbxrME0EnNtaXFaqZeDf5AnNiGbEV37iY8r8DSOYNWcXDwQ@mail.gmail.com> (raw)
In-Reply-To: <CAPO9LfT+8q8AWeuGrER8qxAn9yyN9thJ+8p2zDhJcUm0nCJk8Q@mail.gmail.com>
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
next prev parent reply other threads:[~2017-05-17 10:42 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 [this message]
2017-05-17 19:47 ` Sushil Adhikari
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=CAOysbxrME0EnNtaXFaqZeDf5AnNiGbEV37iY8r8DSOYNWcXDwQ@mail.gmail.com \
--to=aber@semihalf.com \
--cc=sushil446@gmail.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).