Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net gif(4)'s if_output() is already MP-safe. It should e...
details: https://anonhg.NetBSD.org/src/rev/a4cbc9b0f8da
branches: trunk
changeset: 347533:a4cbc9b0f8da
user: knakahara <knakahara%NetBSD.org@localhost>
date: Thu Sep 01 06:50:09 2016 +0000
description:
gif(4)'s if_output() is already MP-safe. It should enable IFEF_OUTPUT_MPSAFE.
diffstat:
sys/net/if_gif.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r b69996cba121 -r a4cbc9b0f8da sys/net/if_gif.c
--- a/sys/net/if_gif.c Thu Sep 01 04:27:00 2016 +0000
+++ b/sys/net/if_gif.c Thu Sep 01 06:50:09 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gif.c,v 1.121 2016/08/18 11:44:22 knakahara Exp $ */
+/* $NetBSD: if_gif.c,v 1.122 2016/09/01 06:50:09 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.121 2016/08/18 11:44:22 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.122 2016/09/01 06:50:09 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -254,6 +254,9 @@
sc->gif_if.if_mtu = GIF_MTU;
sc->gif_if.if_flags = IFF_POINTOPOINT | IFF_MULTICAST;
sc->gif_if.if_extflags = IFEF_NO_LINK_STATE_CHANGE;
+#ifdef GIF_MPSAFE
+ sc->gif_if.if_extflags |= IFEF_OUTPUT_MPSAFE;
+#endif
sc->gif_if.if_ioctl = gif_ioctl;
sc->gif_if.if_output = gif_output;
sc->gif_if.if_start = gif_start;
Home |
Main Index |
Thread Index |
Old Index