summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe/ixv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ixgbe/ixv.c')
-rw-r--r--sys/dev/ixgbe/ixv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ixgbe/ixv.c b/sys/dev/ixgbe/ixv.c
index 37f602b..1acb3f0 100644
--- a/sys/dev/ixgbe/ixv.c
+++ b/sys/dev/ixgbe/ixv.c
@@ -299,6 +299,11 @@ ixv_attach(device_t dev)
INIT_DEBUGOUT("ixv_attach: begin");
+ if (resource_disabled("ixgbe", device_get_unit(dev))) {
+ device_printf(dev, "Disabled by device hint\n");
+ return (ENXIO);
+ }
+
/* Allocate, clear, and link in our adapter structure */
adapter = device_get_softc(dev);
adapter->dev = adapter->osdep.dev = dev;
OpenPOWER on IntegriCloud