Date: Fri, 8 Jul 2016 15:45:53 GMT From: vincenzo@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r305838 - soc2016/vincenzo/head/sys/dev/netmap Message-ID: <201607081545.u68FjrNl010327@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vincenzo Date: Fri Jul 8 15:45:53 2016 New Revision: 305838 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=305838 Log: freebsd: ptnet_ioctl: add SIOCSIFCAP stub implementation Modified: soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Modified: soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c ============================================================================== --- soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Fri Jul 8 15:45:41 2016 (r305837) +++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Fri Jul 8 15:45:53 2016 (r305838) @@ -706,6 +706,7 @@ { struct ptnet_softc *sc = ifp->if_softc; device_t dev = sc->dev; + struct ifreq *ifr = (struct ifreq *)data; int err = 0; switch (cmd) { @@ -724,6 +725,14 @@ PTNET_CORE_UNLOCK(sc); break; + case SIOCSIFCAP: + device_printf(dev, "SIOCSIFCAP %x %x\n", + ifr->ifr_reqcap, ifp->if_capenable); + PTNET_CORE_LOCK(sc); + ifp->if_capenable = ifr->ifr_reqcap; + PTNET_CORE_UNLOCK(sc); + break; + default: err = ether_ioctl(ifp, cmd, data); break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607081545.u68FjrNl010327>