]> git.proxmox.com Git - mirror_ovs.git/commit - lib/netdev-linux.c
netdev-linux: Use ethtool when miimon fails.
authorDavid Hill <dhill@redhat.com>
Tue, 30 Aug 2016 19:13:31 +0000 (15:13 -0400)
committerJoe Stringer <joe@ovn.org>
Tue, 27 Sep 2016 18:38:18 +0000 (11:38 -0700)
commit9120cfc05cd49d4ba1a47eb97e6407e72a5d33f7
treee681da43a459a574fd7624ac234828b7f2f4eb40
parent2b02d770c4cb381ec32cd4b7b1e991c42b448884
netdev-linux: Use ethtool when miimon fails.

Some network drivers might return true to SIOCGMIIPHY and an error on
SIOCGMIIREG when using MII to query phy state. Fall back to ethtool if this
happens to allow failover to work when using such nics.

Reported-at: http://openvswitch.org/pipermail/dev/2016-August/078800.html
Signed-off-by: David Hill <dhill@redhat.com>
Signed-off-by: Joe Stringer <joe@ovn.org>
AUTHORS
lib/netdev-linux.c