From 9947cf1dc4f3f7c64beafd6aa173ffa9124de50f Mon Sep 17 00:00:00 2001 From: visa Date: Tue, 8 Mar 2022 16:13:08 +0000 Subject: [PATCH] Make cad(4) handle rxr ioctl. --- sys/dev/fdt/if_cad.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.20.1