diff options
author | 2020-12-09 05:39:42 +0000 | |
---|---|---|
committer | 2020-12-09 05:39:42 +0000 | |
commit | 5f9afc6d1fa27f436cd6e67135bc401b4732de79 (patch) | |
tree | 87f820de66705767e921d1152d7752f7997e4884 | |
parent | Enable 802.11 A-MSDU support again. It was disabled some time ago but (diff) | |
download | wireguard-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.c | 4 |
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; |