]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
veth: Fix carrier detect
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Feb 2009 19:47:29 +0000 (19:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2009 04:44:21 +0000 (20:44 -0800)
commit2cf48a10aa1f45c7b1f1117a829f2f8a1a1309e2
tree4b467e81ebb7aa6c6789791115426ab5837b701f
parentcac477e8f1038c41b6f29d3161ce351462ef3df7
veth: Fix carrier detect

The current implementation of carrier detect in veth is broken.
It reports the link is down until both sides of the veth pair
are administatively up and then forever after it reports link up.

So fix veth so that it only reports link up when both interfaces
of the pair are administratively up.

Signed-off-by: Eric Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c