瀏覽代碼

[netdevice] Allow network device to update link state before checking

If the network interface has only just been opened (e.g. by the "dhcp"
command) then we should allow at least one opportunity for the card to
update the link state before testing it, to avoid false positives.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 年之前
父節點
當前提交
44d5ef9d7d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/usr/ifmgmt.c

+ 3
- 0
src/usr/ifmgmt.c 查看文件

113
 	int key;
113
 	int key;
114
 	int rc;
114
 	int rc;
115
 
115
 
116
+	/* Allow link state to be updated */
117
+	netdev_poll ( netdev );
118
+
116
 	if ( netdev_link_ok ( netdev ) )
119
 	if ( netdev_link_ok ( netdev ) )
117
 		return 0;
120
 		return 0;
118
 
121
 

Loading…
取消
儲存