pcap: fix device name
authorRemi Pommarel <repk@triplefau.lt>
Tue, 20 Jan 2015 19:15:16 +0000 (20:15 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 27 Jan 2015 11:25:32 +0000 (12:25 +0100)
commit616dc65bea06d8178ad145ebcf3f9b9060a976e9
tree6c003525e6c2a14f5f57c48acf637b52fff84f52
parentdd9fecd0bca75f4f4ed535291eb17de8811d77f9
pcap: fix device name

Ethernet device's data should contain the virtual device name for pcap port.
This name is correctly set by rte_eth_dev_allocate() at initialization time,
but it is directly lost.

Fixes: 83b41136934d ("ethdev: add unique name to devices")

Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_pcap/rte_eth_pcap.c