Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177855597
D10126.1795437907.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
827 B
Referenced Files
None
Subscribers
None
D10126.1795437907.diff
View Options
Index: head/sys/dev/e1000/if_em.c
===================================================================
--- head/sys/dev/e1000/if_em.c
+++ head/sys/dev/e1000/if_em.c
@@ -4341,16 +4341,17 @@
static void
em_print_debug_info(struct adapter *adapter)
{
- device_t dev = adapter->dev;
+ device_t dev = iflib_get_dev(adapter->ctx);
+ struct ifnet *ifp = iflib_get_ifp(adapter->ctx);
struct tx_ring *txr = &adapter->tx_queues->txr;
struct rx_ring *rxr = &adapter->rx_queues->rxr;
- if (if_getdrvflags(adapter->ifp) & IFF_DRV_RUNNING)
+ if (if_getdrvflags(ifp) & IFF_DRV_RUNNING)
printf("Interface is RUNNING ");
else
printf("Interface is NOT RUNNING\n");
- if (if_getdrvflags(adapter->ifp) & IFF_DRV_OACTIVE)
+ if (if_getdrvflags(ifp) & IFF_DRV_OACTIVE)
printf("and INACTIVE\n");
else
printf("and ACTIVE\n");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 12:45 PM (1 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41931411
Default Alt Text
D10126.1795437907.diff (827 B)
Attached To
Mode
D10126: em(4) em_print_debug_info crash
Attached
Detach File
Event Timeline