Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net eliminate unused softint for gif(4) Rx
details: https://anonhg.NetBSD.org/src/rev/e4ea25895460
branches: trunk
changeset: 346084:e4ea25895460
user: knakahara <knakahara%NetBSD.org@localhost>
date: Fri Jun 24 06:32:47 2016 +0000
description:
eliminate unused softint for gif(4) Rx
diffstat:
sys/net/if_gif.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r c18e8fde1325 -r e4ea25895460 sys/net/if_gif.c
--- a/sys/net/if_gif.c Fri Jun 24 04:38:12 2016 +0000
+++ b/sys/net/if_gif.c Fri Jun 24 06:32:47 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gif.c,v 1.111 2016/06/24 04:38:12 knakahara Exp $ */
+/* $NetBSD: if_gif.c,v 1.112 2016/06/24 06:32:47 knakahara Exp $ */
/* $KAME: if_gif.c,v 1.76 2001/08/20 02:01:02 kjc Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.111 2016/06/24 04:38:12 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.112 2016/06/24 06:32:47 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -191,7 +191,8 @@
sc->gif_if.if_dlt = DLT_NULL;
sc->gif_if.if_softc = sc;
IFQ_SET_READY(&sc->gif_if.if_snd);
- if_attach(&sc->gif_if);
+ if_initialize(&sc->gif_if);
+ if_register(&sc->gif_if);
if_alloc_sadl(&sc->gif_if);
bpf_attach(&sc->gif_if, DLT_NULL, sizeof(u_int));
}
Home |
Main Index |
Thread Index |
Old Index