diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-07-17 03:37:37 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-07-17 03:37:37 +0000 |
commit | abddcb29e1779911df51b8cb50da406fe731e05d (patch) | |
tree | 3540974d9551c0a816ea66b0b3a7f5db48c74d5b /sys/dev | |
parent | f7a3e9b1986778afd96bdbd1ed5a075dde9ea1af (diff) |
name the rx rings so systat mb shows them.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_myx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c index c155cea092a..8c486140ed8 100644 --- a/sys/dev/pci/if_myx.c +++ b/sys/dev/pci/if_myx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_myx.c,v 1.110 2020/07/17 02:58:14 dlg Exp $ */ +/* $OpenBSD: if_myx.c,v 1.111 2020/07/17 03:37:36 dlg Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org> @@ -957,9 +957,11 @@ myx_rxrinfo(struct myx_softc *sc, struct if_rxrinfo *ifri) ifr[0].ifr_size = MYX_RXSMALL_SIZE; ifr[0].ifr_info = sc->sc_rx_ring[0].mrr_rxr; + strlcpy(ifr[0].ifr_name, "small", sizeof(ifr[0].ifr_name)); ifr[1].ifr_size = MYX_RXBIG_SIZE; ifr[1].ifr_info = sc->sc_rx_ring[1].mrr_rxr; + strlcpy(ifr[1].ifr_name, "large", sizeof(ifr[1].ifr_name)); return (if_rxr_info_ioctl(ifri, nitems(ifr), ifr)); } |