Re: [dpdk-dev] [PATCH v3 1/6] net/tap: add MAC address management ops

2017-03-10 Thread Pascal Mazon
On Thu, 9 Mar 2017 14:05:51 + Ferruh Yigit wrote: > On 3/7/2017 4:31 PM, Pascal Mazon wrote: > > Set a random MAC address when probing the device, as to not leave an > > empty MAC in pmd->eth_addr. > > > > This MAC will be set on the tap netdevice as soon as it's been > > created using tun_a

Re: [dpdk-dev] [PATCH v3 1/6] net/tap: add MAC address management ops

2017-03-09 Thread Ferruh Yigit
On 3/7/2017 4:31 PM, Pascal Mazon wrote: > Set a random MAC address when probing the device, as to not leave an > empty MAC in pmd->eth_addr. > > This MAC will be set on the tap netdevice as soon as it's been created > using tun_alloc(). As the tap_mac_add() function depend on the fd in > the firs

[dpdk-dev] [PATCH v3 1/6] net/tap: add MAC address management ops

2017-03-07 Thread Pascal Mazon
Set a random MAC address when probing the device, as to not leave an empty MAC in pmd->eth_addr. This MAC will be set on the tap netdevice as soon as it's been created using tun_alloc(). As the tap_mac_add() function depend on the fd in the first rxq, move code from tun_alloc() to tap_setup_queue(