diff options
author | yongari <yongari@FreeBSD.org> | 2012-01-19 20:21:59 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2012-01-19 20:21:59 +0000 |
commit | 6941e5c632e32466281579bc2e10b82005615d8c (patch) | |
tree | a5a53ff75e15a700865772fc45a75256fb874129 /sys/dev/bge | |
parent | 0a977bdce4bf41a55fe7827a369b147a3afade6e (diff) | |
download | FreeBSD-src-6941e5c632e32466281579bc2e10b82005615d8c.zip FreeBSD-src-6941e5c632e32466281579bc2e10b82005615d8c.tar.gz |
Rename dev.bge.%d.msi_disable to dev.bge.%d.msi which matches
enable/disable and default it to on.
Suggested by: jhb
Diffstat (limited to 'sys/dev/bge')
-rw-r--r-- | sys/dev/bge/if_bge.c | 12 | ||||
-rw-r--r-- | sys/dev/bge/if_bgereg.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index bb4c7a7..2732b8f 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -2745,7 +2745,7 @@ bge_can_use_msi(struct bge_softc *sc) { int can_use_msi = 0; - if (sc->bge_msi_disable != 0) + if (sc->bge_msi != 0) return (0); /* Disable MSI for polling(4). */ @@ -5630,11 +5630,11 @@ bge_add_sysctls(struct bge_softc *sc) "Number of fragmented TX buffers of a frame allowed before " "forced collapsing"); - sc->bge_msi_disable = 0; - snprintf(tn, sizeof(tn), "dev.bge.%d.msi_disable", unit); - TUNABLE_INT_FETCH(tn, &sc->bge_msi_disable); - SYSCTL_ADD_INT(ctx, children, OID_AUTO, "msi_disable", - CTLFLAG_RD, &sc->bge_msi_disable, 0, "Disable MSI"); + sc->bge_msi = 1; + snprintf(tn, sizeof(tn), "dev.bge.%d.msi", unit); + TUNABLE_INT_FETCH(tn, &sc->bge_msi); + SYSCTL_ADD_INT(ctx, children, OID_AUTO, "msi", + CTLFLAG_RD, &sc->bge_msi, 0, "Enable MSI"); /* * It seems all Broadcom controllers have a bug that can generate UDP diff --git a/sys/dev/bge/if_bgereg.h b/sys/dev/bge/if_bgereg.h index de06b2b..e3b1ade 100644 --- a/sys/dev/bge/if_bgereg.h +++ b/sys/dev/bge/if_bgereg.h @@ -2864,7 +2864,7 @@ struct bge_softc { int bge_timer; int bge_forced_collapse; int bge_forced_udpcsum; - int bge_msi_disable; + int bge_msi; int bge_csum_features; struct callout bge_stat_ch; uint32_t bge_rx_discards; |