diff options
author | 2018-03-16 04:30:31 +0000 | |
---|---|---|
committer | 2018-03-16 04:30:31 +0000 | |
commit | 2d40c8a5752e4c0e660ed171c709c0a79adc98de (patch) | |
tree | 287ec4bfc2767e6e24d2e30364a5f916fafc03b6 | |
parent | Allocate an mfi frame for each ccb, to be used to submit passthrough (diff) | |
download | wireguard-openbsd-2d40c8a5752e4c0e660ed171c709c0a79adc98de.tar.xz wireguard-openbsd-2d40c8a5752e4c0e660ed171c709c0a79adc98de.zip |
use MFI_STAT_INVALID_STATUS where appropriate
part of a diff from Naoki Fukaumi
ok dlg@
-rw-r--r-- | sys/dev/pci/mfii.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c index 4bd6fc1a1f9..0a5266acda2 100644 --- a/sys/dev/pci/mfii.c +++ b/sys/dev/pci/mfii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfii.c,v 1.48 2018/03/16 04:28:14 jmatthew Exp $ */ +/* $OpenBSD: mfii.c,v 1.49 2018/03/16 04:30:31 jmatthew Exp $ */ /* * Copyright (c) 2012 David Gwynne <dlg@openbsd.org> @@ -1304,7 +1304,7 @@ mfii_mfa_poll(struct mfii_softc *sc, struct mfii_ccb *ccb) #endif hdr->mfh_context = ccb->ccb_smid; - hdr->mfh_cmd_status = 0xff; + hdr->mfh_cmd_status = MFI_STAT_INVALID_STATUS; hdr->mfh_flags |= htole16(MFI_FRAME_DONT_POST_IN_REPLY_QUEUE); r = MFII_REQ_MFA(ccb->ccb_request_dva); @@ -1317,7 +1317,7 @@ mfii_mfa_poll(struct mfii_softc *sc, struct mfii_ccb *ccb) ccb->ccb_request_offset, MFII_REQUEST_SIZE, BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE); - if (hdr->mfh_cmd_status != 0xff) + if (hdr->mfh_cmd_status != MFI_STAT_INVALID_STATUS) break; if (to++ > 5000) { /* XXX 5 seconds busywait sucks */ |