diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2022-03-08 16:13:09 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2022-03-08 16:13:09 +0000 |
commit | 81004558110ad0364c75a8eff370e5492f705a9b (patch) | |
tree | 898097af7390124e5fc0d74aab9017054851dd4b /sys/dev/fdt | |
parent | ae555239c16a1e6bba2d60a0f2265a445b72bf9d (diff) |
Make cad(4) handle rxr ioctl.
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/if_cad.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/fdt/if_cad.c b/sys/dev/fdt/if_cad.c index 146514318d7..dfeec94896c 100644 --- a/sys/dev/fdt/if_cad.c +++ b/sys/dev/fdt/if_cad.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cad.c,v 1.10 2022/03/07 13:02:53 visa Exp $ */ +/* $OpenBSD: if_cad.c,v 1.11 2022/03/08 16:13:08 visa Exp $ */ /* * Copyright (c) 2021-2022 Visa Hankala @@ -580,6 +580,11 @@ cad_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) error = ifmedia_ioctl(ifp, ifr, &sc->sc_mii.mii_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_ac, cmd, data); break; |