net/tap: let kernel choose tun device name
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 11 Jan 2019 20:35:18 +0000 (12:35 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commitb5235d61f3b7d2b1c2b9ee2601f3aca2b151b508
tree491fde40fbce87352f17c4ed5a0609327fa0889f
parent16f1c8abb544a157096a0236cfb8e58a3b16c908
net/tap: let kernel choose tun device name

Assigning tun and tap index in DPDK tap device driver is racy
and fails if used with primary/secondary. Instead use the kernel
feature of device wildcarding where if a name with %d is used
the kernel will fill in the next available device.

Fixes: 02f96a0a82d1 ("net/tap: add TUN/TAP device PMD")
Cc: stable@dpdk.org
Reported-by: Haifeng Li <hfli@netitest.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c