Author: bz
Date: Wed Apr 20 21:04:39 2016
New Revision: 298373
URL: https://svnweb.freebsd.org/changeset/base/298373

Log:
  Add more fields from struct ifnet needed during debugging a kernel panic.
  Move if_fib into the right place.
  
  MFC after:    2 weeks
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/net/if_debug.c

Modified: head/sys/net/if_debug.c
==============================================================================
--- head/sys/net/if_debug.c     Wed Apr 20 20:58:30 2016        (r298372)
+++ head/sys/net/if_debug.c     Wed Apr 20 21:04:39 2016        (r298373)
@@ -65,6 +65,9 @@ if_show_ifnet(struct ifnet *ifp)
        IF_DB_PRINTF("%d", if_index_reserved);
        IF_DB_PRINTF("%p", if_softc);
        IF_DB_PRINTF("%p", if_l2com);
+       IF_DB_PRINTF("%p", if_afdata);
+       IF_DB_PRINTF("%d", if_afdata_initialized);
+       IF_DB_PRINTF("%u", if_fib);
        IF_DB_PRINTF("%p", if_vnet);
        IF_DB_PRINTF("%p", if_home_vnet);
        IF_DB_PRINTF("%p", if_vlantrunk);
@@ -87,7 +90,6 @@ if_show_ifnet(struct ifnet *ifp)
        IF_DB_PRINTF("%d", if_snd.ifq_drv_maxlen);
        IF_DB_PRINTF("%d", if_snd.altq_type);
        IF_DB_PRINTF("%x", if_snd.altq_flags);
-       IF_DB_PRINTF("%u", if_fib);
 #undef IF_DB_PRINTF
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to