Source-Changes-HG archive

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

[src/trunk]: src/sys/net fix if_snd_is_used(), ifp->if_snd is also used by if...



details:   https://anonhg.NetBSD.org/src/rev/77f89e121732
branches:  trunk
changeset: 365273:77f89e121732
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Aug 10 10:31:01 2018 +0000

description:
fix if_snd_is_used(), ifp->if_snd is also used by if.c::if_transmit().

diffstat:

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

diffs (26 lines):

diff -r 5013469f55e6 -r 77f89e121732 sys/net/if.c
--- a/sys/net/if.c      Fri Aug 10 07:24:09 2018 +0000
+++ b/sys/net/if.c      Fri Aug 10 10:31:01 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.432 2018/08/10 07:24:09 msaitoh Exp $ */
+/*     $NetBSD: if.c,v 1.433 2018/08/10 10:31:01 knakahara 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.432 2018/08/10 07:24:09 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.433 2018/08/10 10:31:01 knakahara Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -1042,6 +1042,7 @@
 {
 
        return ifp->if_transmit == NULL || ifp->if_transmit == if_nulltransmit ||
+           ifp->if_transmit == if_transmit ||
            ALTQ_IS_ENABLED(&ifp->if_snd);
 }
 



Home | Main Index | Thread Index | Old Index