tun: keep link (carrier) state up to date
authorNolan Leake <nolan@cumulusnetworks.com>
Tue, 27 Jul 2010 13:53:43 +0000 (13:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Jul 2010 05:06:41 +0000 (22:06 -0700)
commitbee31369ce16fc3898ec9a54161248c9eddb06bc
tree5c5752c2263e7523941f663788ed406328b81b1b
parentae3568adf42d5d3bb3cfa505b94351c5d1ce4924
tun: keep link (carrier) state up to date

Currently, only ethtool can get accurate link state of a tap device.
With this patch, IFF_RUNNING and IF_OPER_UP/DOWN are kept up to date as
well.

Signed-off-by: Nolan Leake <nolan@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c