git: eb0f28db1bfa - main - ure: Handle SIOCGIFXMEDIA
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Oct 2026 19:04:57 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=eb0f28db1bfa5b4e6b0eda0a3dc25820bff1acba
commit eb0f28db1bfa5b4e6b0eda0a3dc25820bff1acba
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-10-30 14:57:27 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-10-30 19:04:39 +0000
ure: Handle SIOCGIFXMEDIA
The SIOCGIFXMEDIA ioctl is uesd to report extended Ethernet media
subtypes.
ure(4) commit d4cf41a99b40 added support for some newer devices and
added a special case to call ifmedia_ioctl() instead of uether_ioctl()
for those devices, but only for SIOCGIFMEDIA and SIOCSIFXMEDIA.
Fixes: d4cf41a99b40 ("Add support for RTL8153B, RTL8156 and RTL8156B to if_ure(4).")
Reviewed by: kbowling
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61049
---
sys/dev/usb/net/if_ure.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/dev/usb/net/if_ure.c b/sys/dev/usb/net/if_ure.c
index 7cf77466d420..81e1232a0e64 100644
--- a/sys/dev/usb/net/if_ure.c
+++ b/sys/dev/usb/net/if_ure.c
@@ -1583,6 +1583,7 @@ ure_ioctl(if_t ifp, u_long cmd, caddr_t data)
break;
case SIOCGIFMEDIA:
+ case SIOCGIFXMEDIA:
case SIOCSIFMEDIA:
if (sc->sc_flags & (URE_FLAG_8156 | URE_FLAG_8156B))
error = ifmedia_ioctl(ifp, ifr, &sc->sc_ifmedia, cmd);