Re: [dpdk-dev] [PATCH v2] net/tap: fix dev name look-up

2017-03-06 Thread Pascal Mazon
On Mon, 6 Mar 2017 14:27:18 + Ferruh Yigit wrote: > On 3/6/2017 1:51 PM, Pascal Mazon wrote: > > Store the device name in dev->data->name, to have symmetrical > > behavior between rte_pmd_tap_probe(name) and > > rte_pmd_tap_remove(name). > > > > The netdevice name (linux interface name) is s

Re: [dpdk-dev] [PATCH v2] net/tap: fix dev name look-up

2017-03-06 Thread Ferruh Yigit
On 3/6/2017 1:51 PM, Pascal Mazon wrote: > Store the device name in dev->data->name, to have symmetrical behavior > between rte_pmd_tap_probe(name) and rte_pmd_tap_remove(name). > > The netdevice name (linux interface name) is stored in the name field of > struct pmd_internals. +1 for this. > >

[dpdk-dev] [PATCH v2] net/tap: fix dev name look-up

2017-03-06 Thread Pascal Mazon
Store the device name in dev->data->name, to have symmetrical behavior between rte_pmd_tap_probe(name) and rte_pmd_tap_remove(name). The netdevice name (linux interface name) is stored in the name field of struct pmd_internals. There's no need to allocate an rte_eth_dev_data, as it is done in rte