svn commit: r316475 - head/sys/dev/e1000
Sean Bruno
sbruno at FreeBSD.org
Mon Apr 3 21:19:13 UTC 2017
Author: sbruno
Date: Mon Apr 3 21:19:12 2017
New Revision: 316475
URL: https://svnweb.freebsd.org/changeset/base/316475
Log:
Remove unsafe and non-functional DDB functions that I added long ago
for debugging.
Modified:
head/sys/dev/e1000/if_em.c
Modified: head/sys/dev/e1000/if_em.c
==============================================================================
--- head/sys/dev/e1000/if_em.c Mon Apr 3 21:17:57 2017 (r316474)
+++ head/sys/dev/e1000/if_em.c Mon Apr 3 21:19:12 2017 (r316475)
@@ -4378,40 +4378,3 @@ em_enable_vectors_82574(if_ctx_t ctx)
device_printf(dev, "Writing to eeprom: done\n");
}
}
-
-
-#ifdef DDB
-DB_COMMAND(em_reset_dev, em_ddb_reset_dev)
-{
- devclass_t dc;
- int max_em;
-
- dc = devclass_find("em");
- max_em = devclass_get_maxunit(dc);
-
- for (int index = 0; index < (max_em - 1); index++) {
- device_t dev;
- dev = devclass_get_device(dc, index);
- if (device_get_driver(dev) == &em_driver) {
- struct adapter *adapter = device_get_softc(dev);
- em_if_init(adapter->ctx);
- }
- }
-}
-DB_COMMAND(em_dump_queue, em_ddb_dump_queue)
-{
- devclass_t dc;
- int max_em;
-
- dc = devclass_find("em");
- max_em = devclass_get_maxunit(dc);
-
- for (int index = 0; index < (max_em - 1); index++) {
- device_t dev;
- dev = devclass_get_device(dc, index);
- if (device_get_driver(dev) == &em_driver)
- em_print_debug_info(device_get_softc(dev));
- }
-
-}
-#endif
More information about the svn-src-head
mailing list