Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net if_detach: drain ip6_pktq as well.



details:   https://anonhg.NetBSD.org/src/rev/4a8fe6f70a4a
branches:  trunk
changeset: 796667:4a8fe6f70a4a
user:      rmind <rmind%NetBSD.org@localhost>
date:      Fri Jun 13 13:54:08 2014 +0000

description:
if_detach: drain ip6_pktq as well.

diffstat:

 sys/net/if.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r d1e0a95fe81f -r 4a8fe6f70a4a sys/net/if.c
--- a/sys/net/if.c      Fri Jun 13 13:38:52 2014 +0000
+++ b/sys/net/if.c      Fri Jun 13 13:54:08 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.280 2014/06/10 09:38:30 joerg Exp $   */
+/*     $NetBSD: if.c,v 1.281 2014/06/13 13:54:08 rmind Exp $   */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.280 2014/06/10 09:38:30 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.281 2014/06/13 13:54:08 rmind Exp $");
 
 #include "opt_inet.h"
 
@@ -875,6 +875,9 @@
 #ifdef INET
        pktq_barrier(ip_pktq);
 #endif
+#ifdef INET6
+       pktq_barrier(ip6_pktq);
+#endif
        xc = xc_broadcast(0, (xcfunc_t)nullop, NULL, NULL);
        xc_wait(xc);
 



Home | Main Index | Thread Index | Old Index