Module Name: src Committed By: msaitoh Date: Mon Apr 22 09:08:14 UTC 2019
Modified Files: src/sys/dev/pci: if_alc.c Log Message: This driver uses MII(4) and have hook SIOC[GS]IFMEDIA which just pass to ifmedia_ioctl(), the hook is not required because ether_ioctl has it (if_ethersubr.c rev. 1.160). This driver might require some additional fixes for SIOCSIFMTU and other ioctl()s. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/dev/pci/if_alc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_alc.c diff -u src/sys/dev/pci/if_alc.c:1.31 src/sys/dev/pci/if_alc.c:1.32 --- src/sys/dev/pci/if_alc.c:1.31 Tue Mar 5 08:25:02 2019 +++ src/sys/dev/pci/if_alc.c Mon Apr 22 09:08:14 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: if_alc.c,v 1.31 2019/03/05 08:25:02 msaitoh Exp $ */ +/* $NetBSD: if_alc.c,v 1.32 2019/04/22 09:08:14 msaitoh Exp $ */ /* $OpenBSD: if_alc.c,v 1.1 2009/08/08 09:31:13 kevlo Exp $ */ /*- * Copyright (c) 2009, Pyun YongHyeon <yong...@freebsd.org> @@ -2050,8 +2050,6 @@ static int alc_ioctl(struct ifnet *ifp, u_long cmd, void *data) { struct alc_softc *sc = ifp->if_softc; - struct mii_data *mii = &sc->sc_miibus; - struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; s = splnet(); @@ -2076,11 +2074,6 @@ alc_ioctl(struct ifnet *ifp, u_long cmd, } break; - case SIOCSIFMEDIA: - case SIOCGIFMEDIA: - error = ifmedia_ioctl(ifp, ifr, &mii->mii_media, cmd); - break; - default: error = ether_ioctl(ifp, cmd, data); break;