From abddcb29e1779911df51b8cb50da406fe731e05d Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Fri, 17 Jul 2020 03:37:37 +0000 Subject: name the rx rings so systat mb shows them. --- sys/dev/pci/if_myx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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 @@ -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)); } -- cgit v1.2.3