diff options
-rw-r--r-- | sys/dev/ic/re.c | 6 | ||||
-rw-r--r-- | sys/dev/ic/xl.c | 7 | ||||
-rw-r--r-- | sys/dev/pci/if_sis.c | 7 |
3 files changed, 17 insertions, 3 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index cbd5e898cb4..32219a78801 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.162 2014/11/24 02:03:37 brad Exp $ */ +/* $OpenBSD: re.c,v 1.163 2014/11/24 10:33:37 brad Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -2040,6 +2040,10 @@ re_ioctl(struct ifnet *ifp, u_long command, caddr_t data) case SIOCSIFMEDIA: error = ifmedia_ioctl(ifp, ifr, &sc->sc_mii.mii_media, command); break; + case SIOCGIFRXR: + error = if_rxr_ioctl((struct if_rxrinfo *)ifr->ifr_data, + NULL, MCLBYTES, &sc->rl_ldata.rl_rx_ring); + break; default: error = ether_ioctl(ifp, &sc->sc_arpcom, command, data); } diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index 6eee41d13e9..1d951471f15 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.117 2014/11/24 03:47:55 brad Exp $ */ +/* $OpenBSD: xl.c,v 1.118 2014/11/24 10:33:37 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2247,6 +2247,11 @@ xl_ioctl(struct ifnet *ifp, u_long command, caddr_t data) &mii->mii_media, command); break; + case SIOCGIFRXR: + error = if_rxr_ioctl((struct if_rxrinfo *)ifr->ifr_data, + NULL, MCLBYTES, &sc->xl_cdata.xl_rx_ring); + break; + default: error = ether_ioctl(ifp, &sc->sc_arpcom, command, data); } diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 3285e9d938d..87ecf789e3b 100644 --- a/sys/dev/pci/if_sis.c +++ b/sys/dev/pci/if_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sis.c,v 1.117 2014/07/22 13:12:11 mpi Exp $ */ +/* $OpenBSD: if_sis.c,v 1.118 2014/11/24 10:33:37 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -1892,6 +1892,11 @@ sis_ioctl(struct ifnet *ifp, u_long command, caddr_t data) error = ifmedia_ioctl(ifp, ifr, &mii->mii_media, command); break; + case SIOCGIFRXR: + error = if_rxr_ioctl((struct if_rxrinfo *)ifr->ifr_data, + NULL, MCLBYTES, &sc->sis_cdata.sis_rx_ring); + break; + default: error = ether_ioctl(ifp, &sc->arpcom, command, data); } |