summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-06-29 15:21:34 +0000
committerjhb <jhb@FreeBSD.org>2012-06-29 15:21:34 +0000
commit722e0571698d84ca79f966be76d161a8617893f2 (patch)
tree8fbe06d03fb7d3a8609552c31432b253571524eb /sys/net/if.h
parent213f4b7f2551bf5affdf0ffd7bd47680c677b0ee (diff)
downloadFreeBSD-src-722e0571698d84ca79f966be76d161a8617893f2.zip
FreeBSD-src-722e0571698d84ca79f966be76d161a8617893f2.tar.gz
Hold GIF_LOCK() for almost all of gif_start(). It is required to be held
across in_gif_output() and in6_gif_output() anyway, and once it is held across those it might as well be held for the entire loop. This simplifies the code and removes the need for the custom IFF_GIF_WANTED flag (which belonged in the softc and not as an IFF_* flag anyway). Tested by: Vincent Hoffman vince unsane co uk
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 5b4db00..d420d26 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -153,7 +153,6 @@ struct if_data {
#define IFF_STATICARP 0x80000 /* (n) static ARP */
#define IFF_DYING 0x200000 /* (n) interface is winding down */
#define IFF_RENAMING 0x400000 /* (n) interface is being renamed */
-#define IFF_GIF_WANTED 0x1000000 /* (n) The gif tunnel is wanted */
/*
* Old names for driver flags so that user space tools can continue to use
* the old (portable) names.
OpenPOWER on IntegriCloud