net/tap: improve link update
authorPascal Mazon <pascal.mazon@6wind.com>
Wed, 22 Mar 2017 08:40:00 +0000 (09:40 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:47 +0000 (18:59 +0200)
commit0b3e4ab9bf96aba051f9fce88062250dc86ee328
tree1e3ee38c99a2c89527eadf49963bdee44097139b
parent2bc06869cd94195e986cfb7939a549d7050097e8
net/tap: improve link update

Reflect device link status according to the state of the tap netdevice
and the remote netdevice (if any). If both are UP and RUNNING, then the
device link status is set to ETH_LINK_UP, otherwise ETH_LINK_DOWN.

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c