summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2014-11-24 23:28:50 +0000
committerbrad <brad@openbsd.org>2014-11-24 23:28:50 +0000
commitf0cb16ab56a8c37ba78b89bfc0ccd44ec7f7268a (patch)
treecd51698bfee563c219ddbef2ce357f1e93415f1b
parentintroduce a hashspace define and check that there's enough space to (diff)
downloadwireguard-openbsd-f0cb16ab56a8c37ba78b89bfc0ccd44ec7f7268a.tar.xz
wireguard-openbsd-f0cb16ab56a8c37ba78b89bfc0ccd44ec7f7268a.zip
rxr ioctl handling.
ok mpi@
-rw-r--r--sys/dev/pci/if_msk.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c
index 99e4271e37f..fdc9c4aab4a 100644
--- a/sys/dev/pci/if_msk.c
+++ b/sys/dev/pci/if_msk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_msk.c,v 1.110 2014/10/19 03:54:56 brad Exp $ */
+/* $OpenBSD: if_msk.c,v 1.111 2014/11/24 23:28:50 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -617,6 +617,11 @@ msk_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, sc_if->sk_pktlen, &sc_if->sk_cdata.sk_rx_ring);
+ break;
+
default:
error = ether_ioctl(ifp, &sc_if->arpcom, command, data);
}