diff options
| author | Jesse Gross <jesse@nicira.com> | 2010-10-27 15:29:16 -0700 |
|---|---|---|
| committer | Jesse Gross <jesse@nicira.com> | 2010-11-16 15:17:38 -0800 |
| commit | efa3112b7c340203decf0061e7d1d12be03a150f (patch) | |
| tree | 250c53a9496f6e3bd213f05f81164de0fb4eb364 /lib/netdev-patch.c | |
| parent | 58453fde168c5938afe445f8e22f8aa96d02083f (diff) | |
| download | openvswitch-lts-1.0.tar.gz | |
netdev: Fix carrier status for down interfaces.lts-1.0
Currently netdev_get_carrier() returns both a carrier status and
an error code. However, usage of the error code was inconsistent:
most callers either ignored it or didn't perform their task if an
error occured, which prevented bond rebalancing. This makes the
handling consistent by translating an error into a down status in
the netdev library.
Bug #3959
Diffstat (limited to 'lib/netdev-patch.c')
| -rw-r--r-- | lib/netdev-patch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev-patch.c b/lib/netdev-patch.c index 7e8b1990e..d2a064332 100644 --- a/lib/netdev-patch.c +++ b/lib/netdev-patch.c @@ -200,7 +200,7 @@ const struct netdev_class netdev_patch_class = { netdev_vport_get_etheraddr, netdev_vport_get_mtu, NULL, /* get_ifindex */ - netdev_vport_get_carrier, + NULL, /* get_carrier */ netdev_vport_get_stats, netdev_vport_set_stats, |
