Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 2009 03:17:44 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191037 - head/sys/net
Message-ID:  <200904140317.n3E3HigF092519@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Tue Apr 14 03:17:44 2009
New Revision: 191037
URL: http://svn.freebsd.org/changeset/base/191037

Log:
  call default if_qflush on ifq if default method isn't used by the driver

Modified:
  head/sys/net/if.c

Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c	Tue Apr 14 03:13:05 2009	(r191036)
+++ head/sys/net/if.c	Tue Apr 14 03:17:44 2009	(r191037)
@@ -1509,6 +1509,8 @@ if_unroute(struct ifnet *ifp, int flag, 
 		if (fam == PF_UNSPEC || (fam == ifa->ifa_addr->sa_family))
 			pfctlinput(PRC_IFDOWN, ifa->ifa_addr);
 	ifp->if_qflush(ifp);
+	if (ifp->if_snd.ifq_head != NULL)
+		if_qflush(ifp);
 	
 #ifdef DEV_CARP
 	if (ifp->if_carp)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904140317.n3E3HigF092519>