net/tap: refactor ioctl calls
authorPascal Mazon <pascal.mazon@6wind.com>
Wed, 15 Mar 2017 14:48:13 +0000 (15:48 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:40 +0000 (18:59 +0200)
commit73cf55c8bd51f75b1281c316e4f35a301c95881b
tree6075f142ebfd588464386acf84560086c56aa7fa
parent9d4aabe66aee0fd2a63846f56df16e77bc5e91b1
net/tap: refactor ioctl calls

Create a socket for ioctl at tap device creation instead of opening it
and closing it every call to tap_link_set_flags().

Use a common tap_ioctl() function that can be extended for various uses
(such as MTU change, MAC address change, ...).

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/tap/rte_eth_tap.c