net/tap: get rid of global name variable
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 11 Jan 2019 20:35:19 +0000 (12:35 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commitc8ae56e62d46308b734b56fd446bf30ec7f318d8
tree3f23bb89af99e8846c0a5f149340147c61e19768
parentb5235d61f3b7d2b1c2b9ee2601f3aca2b151b508
net/tap: get rid of global name variable

Having a global variable which is set to "TUN" or "TAP" during
probe is a potential bug if probing is ever done in different
processes or contexts. Let's fix it now by using existing enum
that has type of connection.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c