svn commit: r209615 - user/jmallett/octeon/sys/mips/cavium/octe

Juli Mallett jmallett at FreeBSD.org
Wed Jun 30 19:51:19 UTC 2010


Author: jmallett
Date: Wed Jun 30 19:51:19 2010
New Revision: 209615
URL: http://svn.freebsd.org/changeset/base/209615

Log:
  Set interface capabilities.

Modified:
  user/jmallett/octeon/sys/mips/cavium/octe/octe.c

Modified: user/jmallett/octeon/sys/mips/cavium/octe/octe.c
==============================================================================
--- user/jmallett/octeon/sys/mips/cavium/octe/octe.c	Wed Jun 30 18:34:45 2010	(r209614)
+++ user/jmallett/octeon/sys/mips/cavium/octe/octe.c	Wed Jun 30 19:51:19 2010	(r209615)
@@ -474,6 +474,15 @@ octe_ioctl(struct ifnet *ifp, u_long cmd
 		}
 		priv->if_flags = ifp->if_flags;
 		return (0);
+	
+	case SIOCSIFCAP:
+		/*
+		 * Just change the capabilities in software, currently none
+		 * require reprogramming hardware, they just toggle whether we
+		 * make use of already-present facilities in software.
+		 */
+		ifp->if_capenable = ifr->ifr_reqcap;
+		return (0);
 
 	case SIOCSIFMTU:
 		error = cvm_oct_common_change_mtu(ifp, ifr->ifr_mtu);


More information about the svn-src-user mailing list