ethdev: update link status after start
authorJia Yu <jyu@vmware.com>
Fri, 7 Nov 2014 17:31:50 +0000 (09:31 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 18 Feb 2015 16:50:15 +0000 (17:50 +0100)
commit99610782edaaa88f6c442ff11662780aa161be85
tree54a32d9c6d44b095246c7d4ffe7c09480befa0af
parent6966683f207070061fe20be5e5f83eee3699950c
ethdev: update link status after start

Since LSR interrupt is disabled by pmd drivers, link status in rte_eth_device is always down.
Bond slave_configure() enables LSR interrupt on devices to get notification if link status
changes. However, the LSC interrupt at device start time is still lost.

In this fix, call link_update to read link status from hardware
register at device start time.

Signed-off-by: Jia Yu <jyu@vmware.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
lib/librte_ether/rte_ethdev.c