net/tap: restore state of remote device when closing
authorThomas Monjalon <thomas@monjalon.net>
Tue, 27 Jun 2017 12:33:15 +0000 (14:33 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
commit4810d3af8343895742339a4875545ed68c89cc2b
tree0e784eb537d000e93ebe3a88af5699f32a3df1a9
parent856ceb331b0aa0421cdf8b4d5fe13e3f463010fa
net/tap: restore state of remote device when closing

When exiting a DPDK application, the TAP remote was left
with the link down even if it was initially up.

The device flags of the remote netdevice are saved when probing,
and restored when calling the close function.
The remote state is not set down when calling the stop function anymore.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Pascal Mazon <pascal.mazon@6wind.com>
drivers/net/tap/rte_eth_tap.c
drivers/net/tap/rte_eth_tap.h