Author: scf
Date: Tue Mar 17 02:32:36 2009
New Revision: 189907
URL: http://svn.freebsd.org/changeset/base/189907

Log:
  Remove the splimp()/splx() calls around the setting of the MTU.  They are
  no-op's that I inadvertently added.  Even if locking is needed in general
  for the ioctl's, setting a single long will not need it due to the operation
  being atomic.
  
  Reported by:  rwatson

Modified:
  head/sys/net/if_tap.c

Modified: head/sys/net/if_tap.c
==============================================================================
--- head/sys/net/if_tap.c       Tue Mar 17 01:46:40 2009        (r189906)
+++ head/sys/net/if_tap.c       Tue Mar 17 02:32:36 2009        (r189907)
@@ -611,9 +611,7 @@ tapifioctl(struct ifnet *ifp, u_long cmd
                        break;
 
                case SIOCSIFMTU:
-                       s = splimp();
                        ifp->if_mtu = ifr->ifr_mtu;
-                       splx(s);
                        break;
 
                case SIOCGIFSTATUS:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to