Call bge_add_sysctls() early and especially before bge_can_use_msi() so
r230337 actually has a chance of working and doesn't always unconditionally disable the use of MSIs.
This commit is contained in:
parent
8a1a60d49a
commit
8c91aec273
@ -2786,6 +2786,8 @@ bge_attach(device_t dev)
|
|||||||
sc = device_get_softc(dev);
|
sc = device_get_softc(dev);
|
||||||
sc->bge_dev = dev;
|
sc->bge_dev = dev;
|
||||||
|
|
||||||
|
bge_add_sysctls(sc);
|
||||||
|
|
||||||
TASK_INIT(&sc->bge_intr_task, 0, bge_intr_task, sc);
|
TASK_INIT(&sc->bge_intr_task, 0, bge_intr_task, sc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -3198,8 +3200,6 @@ bge_attach(device_t dev)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
bge_add_sysctls(sc);
|
|
||||||
|
|
||||||
/* Set default tuneable values. */
|
/* Set default tuneable values. */
|
||||||
sc->bge_stat_ticks = BGE_TICKS_PER_SEC;
|
sc->bge_stat_ticks = BGE_TICKS_PER_SEC;
|
||||||
sc->bge_rx_coal_ticks = 150;
|
sc->bge_rx_coal_ticks = 150;
|
||||||
|
Loading…
Reference in New Issue
Block a user