netdev-linux: Get carrier from ioctl instead of sysfs.
authorEthan Jackson <ethan@nicira.com>
Tue, 14 Feb 2012 02:07:39 +0000 (18:07 -0800)
committerEthan Jackson <ethan@nicira.com>
Wed, 15 Feb 2012 00:40:43 +0000 (16:40 -0800)
commit755be9ea9d7250edd37e1056362e08a7436f6983
tree943ac835bc49b290ea31f5e0c0770971f76b27bf
parentd308be1dff713f762e6ae18c1764115b866db5a8
netdev-linux: Get carrier from ioctl instead of sysfs.

When a netdev Linux device is created or its netlink cache is
invalidate, it needs an alternative method to update the its
carrier status.  Previous patches retrieved this information from a
sysfs file.  This patch switches to ioctl which is significantly
simpler, and likely quite a bit faster as well.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/netdev-linux.c