mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 04:28:12 +03:00
[netdevice] Add netdev_is_open() wrapper function
Signed-off-by: Michael Brown <mcb30@etherboot.org>
This commit is contained in:
@@ -90,7 +90,7 @@ void ifstat ( struct net_device *netdev ) {
|
||||
printf ( "%s: %s on %s (%s)\n"
|
||||
" [Link:%s, TX:%d TXE:%d RX:%d RXE:%d]\n",
|
||||
netdev->name, netdev_addr ( netdev ), netdev->dev->name,
|
||||
( ( netdev->state & NETDEV_OPEN ) ? "open" : "closed" ),
|
||||
( netdev_is_open ( netdev ) ? "open" : "closed" ),
|
||||
( netdev_link_ok ( netdev ) ? "up" : "down" ),
|
||||
netdev->tx_stats.good, netdev->tx_stats.bad,
|
||||
netdev->rx_stats.good, netdev->rx_stats.bad );
|
||||
|
||||
Reference in New Issue
Block a user