DPDK usage discussions
 help / color / mirror / Atom feed
From: "Xiao, Xiaohong (NSB - CN/Shanghai)" <xiaohong.xiao@nokia-sbell.com>
To: "users@dpdk.org" <users@dpdk.org>
Cc: "Zhu, Lin D. (NSB - CN/Shanghai)" <lin.d.zhu@nokia-sbell.com>,
	"Chen, Fei A. (NSB - CN/Shanghai)" <fei.a.chen@nokia-sbell.com>,
	"Huang,
	Qiang F. (NSB - CN/Shanghai)" <qiang.f.huang@nokia-sbell.com>,
	"Li,
	Miaocai A. (NSB - CN/Shanghai)" <miaocai.a.li@nokia-sbell.com>
Subject: [dpdk-users] kni interface about X710
Date: Thu, 18 Jan 2018 08:55:47 +0000	[thread overview]
Message-ID: <db99a46ef1ec464091fcdb7ad045eeb0@nokia-sbell.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 958 bytes --]

Hello
We are trying to create kni interfaces on the X710 ethernet interface, so that the function kni_ioctl_create() is called. But we falls to below ¡°else¡± branch and get a random MAC address on the created kni interface.
And we also noticed that, for igb/ixgbe devices, no above issue ¨C it goes with below ¡°if¡± branch.
Is there a plan to develop a function like i40e_kni_probe() to provide similar function of existing igb_kni_probe() / ixgbe_kni_probe()£¿Or can you please suggest a way how to set the real MAC here?

Thanks a lot.
Xiao Xiaohong

if (kni->lad_dev)
                   memcpy(net_dev->dev_addr, kni->lad_dev->dev_addr, ETH_ALEN);
         else
                   /*
                   * Generate random mac address. eth_random_addr() is the newer
                   * version of generating mac address in linux kernel.
                   */
         {
                            random_ether_addr(net_dev->dev_addr);

                 reply	other threads:[~2018-01-18  8:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=db99a46ef1ec464091fcdb7ad045eeb0@nokia-sbell.com \
    --to=xiaohong.xiao@nokia-sbell.com \
    --cc=fei.a.chen@nokia-sbell.com \
    --cc=lin.d.zhu@nokia-sbell.com \
    --cc=miaocai.a.li@nokia-sbell.com \
    --cc=qiang.f.huang@nokia-sbell.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).