diff options
author | 2019-03-05 01:40:20 +0000 | |
---|---|---|
committer | 2019-03-05 01:40:20 +0000 | |
commit | a2601e131ff0f368d3550f6f2f6fed1f87457811 (patch) | |
tree | 92369dfbacc1c92073f7d96cb3b06e2a5ef782c7 | |
parent | move back to ifiq_input counting packets instead of queue operations. (diff) | |
download | wireguard-openbsd-a2601e131ff0f368d3550f6f2f6fed1f87457811.tar.xz wireguard-openbsd-a2601e131ff0f368d3550f6f2f6fed1f87457811.zip |
apply background init progress fix from r1.59 of mfii.c
(reverting most of r1.60 of mfi.c, oddly enough)
ok dlg@
tested on a SAS2008 (perc h310)
-rw-r--r-- | sys/dev/ic/mfi.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 905005d9707..a67ba33cfb3 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.169 2018/08/14 05:22:21 jmatthew Exp $ */ +/* $OpenBSD: mfi.c,v 1.170 2019/03/05 01:40:20 jmatthew Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -1745,7 +1745,6 @@ mfi_ioctl_vol(struct mfi_softc *sc, struct bioc_vol *bv) /* additional status can modify MFI status */ switch (sc->sc_ld_details[i].mld_progress.mlp_in_prog) { case MFI_LD_PROG_CC: - case MFI_LD_PROG_BGI: bv->bv_status = BIOC_SVSCRUB; per = (int)sc->sc_ld_details[i].mld_progress.mlp_cc.mp_progress; bv->bv_percent = (per * 100) / 0xffff; @@ -1753,6 +1752,14 @@ mfi_ioctl_vol(struct mfi_softc *sc, struct bioc_vol *bv) sc->sc_ld_details[i].mld_progress.mlp_cc.mp_elapsed_seconds; break; + case MFI_LD_PROG_BGI: + bv->bv_status = BIOC_SVSCRUB; + per = (int)sc->sc_ld_details[i].mld_progress.mlp_bgi.mp_progress; + bv->bv_percent = (per * 100) / 0xffff; + bv->bv_seconds = + sc->sc_ld_details[i].mld_progress.mlp_bgi.mp_elapsed_seconds; + break; + case MFI_LD_PROG_FGI: case MFI_LD_PROG_RECONSTRUCT: /* nothing yet */ |