Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/net Pullup rev. 1.55 (requested by itojun in ticket...



details:   https://anonhg.NetBSD.org/src/rev/b9f20d5d8de4
branches:  netbsd-1-6
changeset: 530334:b9f20d5d8de4
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 17 11:55:08 2003 +0000

description:
Pullup rev. 1.55 (requested by itojun in ticket #984):
 remove all entries in rt timer queue on ip_mtudisc change, instead of
 destroying the queue.

diffstat:

 sys/net/route.c |  18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diffs (47 lines):

diff -r 376b1c6f996d -r b9f20d5d8de4 sys/net/route.c
--- a/sys/net/route.c   Tue Jun 17 11:54:16 2003 +0000
+++ b/sys/net/route.c   Tue Jun 17 11:55:08 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.52.4.1 2002/12/11 18:14:47 he Exp $        */
+/*     $NetBSD: route.c,v 1.52.4.2 2003/06/17 11:55:08 msaitoh Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.52.4.1 2002/12/11 18:14:47 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.52.4.2 2003/06/17 11:55:08 msaitoh Exp $");
 
 #include "opt_ns.h"
 
@@ -918,7 +918,7 @@
 }
 
 void
-rt_timer_queue_destroy(rtq, destroy)
+rt_timer_queue_remove_all(rtq, destroy)
        struct rttimer_queue *rtq;
        int destroy;
 {
@@ -933,8 +933,18 @@
                if (rtq->rtq_count > 0)
                        rtq->rtq_count--;
                else
-                       printf("rt_timer_queue_destroy: rtq_count reached 0\n");
+                       printf("rt_timer_queue_remove_all: "
+                           "rtq_count reached 0\n");
        }
+}
+
+void
+rt_timer_queue_destroy(rtq, destroy)
+       struct rttimer_queue *rtq;
+       int destroy;
+{
+
+       rt_timer_queue_remove_all(rtq, destroy);
 
        LIST_REMOVE(rtq, rtq_link);
 



Home | Main Index | Thread Index | Old Index