Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Schedule pppoe_softintr only when a packet is enqueued
details: https://anonhg.NetBSD.org/src/rev/e217a46087a9
branches: trunk
changeset: 330227:e217a46087a9
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Jun 30 10:03:41 2014 +0000
description:
Schedule pppoe_softintr only when a packet is enqueued
diffstat:
sys/net/if_ethersubr.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 277275144b6f -r e217a46087a9 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c Mon Jun 30 06:09:44 2014 +0000
+++ b/sys/net/if_ethersubr.c Mon Jun 30 10:03:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ethersubr.c,v 1.201 2014/06/17 10:39:46 ozaki-r Exp $ */
+/* $NetBSD: if_ethersubr.c,v 1.202 2014/06/30 10:03:41 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.201 2014/06/17 10:39:46 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.202 2014/06/30 10:03:41 ozaki-r Exp $");
#include "opt_inet.h"
#include "opt_atalk.h"
@@ -751,9 +751,10 @@
if (IF_QFULL(inq)) {
IF_DROP(inq);
m_freem(m);
- } else
+ } else {
IF_ENQUEUE(inq, m);
- softint_schedule(pppoe_softintr);
+ softint_schedule(pppoe_softintr);
+ }
return;
#endif /* NPPPOE > 0 */
case ETHERTYPE_SLOWPROTOCOLS: {
Home |
Main Index |
Thread Index |
Old Index