diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-08-27 05:54:16 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-08-27 05:54:16 +0000 |
commit | e5384adc6b806ad71b18a5708f3ef6f3076663d0 (patch) | |
tree | 664e3a682e97f20350d536177f8442ac21405157 | |
parent | 09970540c89b1ad9f0f54f937d2fedfe4c8fc991 (diff) |
rxr ioctl handling.
-rw-r--r-- | sys/dev/ic/gem.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index 5cc0dd60ff8..0394b78b55b 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gem.c,v 1.105 2014/07/22 13:12:12 mpi Exp $ */ +/* $OpenBSD: gem.c,v 1.106 2014/08/27 05:54:15 dlg Exp $ */ /* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */ /* @@ -1535,6 +1535,11 @@ gem_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) error = ifmedia_ioctl(ifp, ifr, &sc->sc_media, cmd); break; + case SIOCGIFRXR: + error = if_rxr_ioctl((struct if_rxrinfo *)ifr->ifr_data, + NULL, MCLBYTES, &sc->sc_rx_ring); + break; + default: error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data); } |