Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Put schednetisr(NETISR_IP) into splnet()/splx() pair.
details: https://anonhg.NetBSD.org/src/rev/0e8284399861
branches: trunk
changeset: 329207:0e8284399861
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu May 15 07:48:41 2014 +0000
description:
Put schednetisr(NETISR_IP) into splnet()/splx() pair.
This avoid extra ipintr() call with empty queue.
diffstat:
sys/net/if_mpls.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 04ad8fca2e86 -r 0e8284399861 sys/net/if_mpls.c
--- a/sys/net/if_mpls.c Thu May 15 07:35:38 2014 +0000
+++ b/sys/net/if_mpls.c Thu May 15 07:48:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_mpls.c,v 1.11 2013/10/25 09:25:32 kefren Exp $ */
+/* $NetBSD: if_mpls.c,v 1.12 2014/05/15 07:48:41 msaitoh Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mpls.c,v 1.11 2013/10/25 09:25:32 kefren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mpls.c,v 1.12 2014/05/15 07:48:41 msaitoh Exp $");
#include "opt_inet.h"
#include "opt_mpls.h"
@@ -540,8 +540,8 @@
return ENOBUFS;
}
IF_ENQUEUE(inq, m);
+ schednetisr(NETISR_IP);
splx(s);
- schednetisr(NETISR_IP);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index