svn commit: r191603 - head/sys/net

Sam Leffler sam at FreeBSD.org
Mon Apr 27 22:06:50 UTC 2009


Author: sam
Date: Mon Apr 27 22:06:49 2009
New Revision: 191603
URL: http://svn.freebsd.org/changeset/base/191603

Log:
  use if_transmit intead of direct frobbing of the if_snd q; this is no
  longer allowed
  
  Identified by:	rwatson
  Reviewed by:	kmacy

Modified:
  head/sys/net/if_bridge.c

Modified: head/sys/net/if_bridge.c
==============================================================================
--- head/sys/net/if_bridge.c	Mon Apr 27 21:53:44 2009	(r191602)
+++ head/sys/net/if_bridge.c	Mon Apr 27 22:06:49 2009	(r191603)
@@ -1761,24 +1761,15 @@ bridge_enqueue(struct bridge_softc *sc, 
 		}
 
 		if (err == 0)
-			IFQ_ENQUEUE(&dst_ifp->if_snd, m, err);
+			dst_ifp->if_transmit(dst_ifp, m);
 	}
 
 	if (err == 0) {
-
 		sc->sc_ifp->if_opackets++;
 		sc->sc_ifp->if_obytes += len;
-
-		dst_ifp->if_obytes += len;
-
-		if (mflags & M_MCAST) {
+		if (mflags & M_MCAST)
 			sc->sc_ifp->if_omcasts++;
-			dst_ifp->if_omcasts++;
-		}
 	}
-
-	if ((dst_ifp->if_drv_flags & IFF_DRV_OACTIVE) == 0)
-		(*dst_ifp->if_start)(dst_ifp);
 }
 
 /*


More information about the svn-src-head mailing list