summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2020-12-09 05:39:42 +0000
committerdlg <dlg@openbsd.org>2020-12-09 05:39:42 +0000
commit5f9afc6d1fa27f436cd6e67135bc401b4732de79 (patch)
tree87f820de66705767e921d1152d7752f7997e4884
parentEnable 802.11 A-MSDU support again. It was disabled some time ago but (diff)
downloadwireguard-openbsd-5f9afc6d1fa27f436cd6e67135bc401b4732de79.tar.xz
wireguard-openbsd-5f9afc6d1fa27f436cd6e67135bc401b4732de79.zip
ix_txq_kstats_read() should look at a tx_ring struct, not rx_ring.
luckily tx_rings and rx_rings have ix_softc pointers in the same place, so we got away with it. from Christiano Haesbaert
-rw-r--r--sys/dev/pci/if_ix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index 66325f83850..4661e92483e 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.175 2020/11/24 13:54:58 gerhard Exp $ */
+/* $OpenBSD: if_ix.c,v 1.176 2020/12/09 05:39:42 dlg Exp $ */
/******************************************************************************
@@ -3858,7 +3858,7 @@ int
ix_txq_kstats_read(struct kstat *ks)
{
struct ix_txq_kstats *stats = ks->ks_data;
- struct rx_ring *txr = ks->ks_softc;
+ struct tx_ring *txr = ks->ks_softc;
struct ix_softc *sc = txr->sc;
struct ixgbe_hw *hw = &sc->hw;
uint32_t i = txr->me;