summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2021-01-04 23:12:05 +0000
committerdlg <dlg@openbsd.org>2021-01-04 23:12:05 +0000
commit8a1995950d63ff2599a6f1eecd7002f7026e1441 (patch)
tree6893772310a8cca87cf49af1555f0fdd70f75755
parentestructure sntrup761.sh to process all files in a single list, which will (diff)
downloadwireguard-openbsd-8a1995950d63ff2599a6f1eecd7002f7026e1441.tar.xz
wireguard-openbsd-8a1995950d63ff2599a6f1eecd7002f7026e1441.zip
the tx doorbell is next to the rx doorbell, not on top of it.
-rw-r--r--sys/dev/pci/if_mcx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c
index e5d096a99ec..fd43dee55d4 100644
--- a/sys/dev/pci/if_mcx.c
+++ b/sys/dev/pci/if_mcx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mcx.c,v 1.92 2021/01/04 04:50:05 dlg Exp $ */
+/* $OpenBSD: if_mcx.c,v 1.93 2021/01/04 23:12:05 dlg Exp $ */
/*
* Copyright (c) 2017 David Gwynne <dlg@openbsd.org>
@@ -4992,7 +4992,7 @@ mcx_create_sq(struct mcx_softc *sc, struct mcx_tx *tx, int uar, int db,
int insize, npages, paslen, token;
tx->tx_doorbell = MCX_WQ_DOORBELL_BASE +
- (db * MCX_WQ_DOORBELL_STRIDE);
+ (db * MCX_WQ_DOORBELL_STRIDE) + 4;
npages = howmany((1 << MCX_LOG_SQ_SIZE) * sizeof(struct mcx_sq_entry),
MCX_PAGE_SIZE);