Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net ppp_inproc: handle non-IP protocols correctly (hi ms...
details: https://anonhg.NetBSD.org/src/rev/a9c3205d47c4
branches: trunk
changeset: 329269:a9c3205d47c4
user: rmind <rmind%NetBSD.org@localhost>
date: Sat May 17 14:51:09 2014 +0000
description:
ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813.
diffstat:
sys/net/if_ppp.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 00ecf20e8a1d -r a9c3205d47c4 sys/net/if_ppp.c
--- a/sys/net/if_ppp.c Sat May 17 12:38:42 2014 +0000
+++ b/sys/net/if_ppp.c Sat May 17 14:51:09 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ppp.c,v 1.142 2014/05/15 09:23:03 msaitoh Exp $ */
+/* $NetBSD: if_ppp.c,v 1.143 2014/05/17 14:51:09 rmind Exp $ */
/* Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp */
/*
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.142 2014/05/15 09:23:03 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.143 2014/05/17 14:51:09 rmind Exp $");
#include "ppp.h"
@@ -1676,7 +1676,9 @@
goto bad;
}
IF_ENQUEUE(inq, m);
- schednetisr(isr);
+ if (__predict_true(isr)) {
+ schednetisr(isr);
+ }
splx(s);
ifp->if_ipackets++;
ifp->if_ibytes += ilen;
Home |
Main Index |
Thread Index |
Old Index