* [dpdk-users] kni interface about X710
@ 2018-01-18 8:55 Xiao, Xiaohong (NSB - CN/Shanghai)
0 siblings, 0 replies; only message in thread
From: Xiao, Xiaohong (NSB - CN/Shanghai) @ 2018-01-18 8:55 UTC (permalink / raw)
To: users
Cc: Zhu, Lin D. (NSB - CN/Shanghai), Chen, Fei A. (NSB - CN/Shanghai),
Huang, Qiang F. (NSB - CN/Shanghai),
Li, Miaocai A. (NSB - CN/Shanghai)
[-- 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-18 8:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-18 8:55 [dpdk-users] kni interface about X710 Xiao, Xiaohong (NSB - CN/Shanghai)
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).