diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2018-07-24 16:35:52 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2018-07-24 16:35:52 +0000 |
commit | 5f901c92a8d99227901f548f0b755b31d9dd8525 (patch) | |
tree | 90ee09df9416f8603c23b2fa89cb65e6da1c5637 /sys/net/ieee8023ad_lacp.c | |
parent | 8f958ba91e49bdac1b41f93245619d547618a2b1 (diff) | |
download | src-5f901c92a8d99227901f548f0b755b31d9dd8525.tar.gz src-5f901c92a8d99227901f548f0b755b31d9dd8525.zip |
Use the new VNET_DEFINE_STATIC macro when we are defining static VNET
variables.
Reviewed by: bz
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D16147
Notes
Notes:
svn path=/head/; revision=336676
Diffstat (limited to 'sys/net/ieee8023ad_lacp.c')
-rw-r--r-- | sys/net/ieee8023ad_lacp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/ieee8023ad_lacp.c b/sys/net/ieee8023ad_lacp.c index efc5655ee096..68b42ddd4212 100644 --- a/sys/net/ieee8023ad_lacp.c +++ b/sys/net/ieee8023ad_lacp.c @@ -194,13 +194,13 @@ static const char *lacp_format_portid(const struct lacp_portid *, char *, static void lacp_dprintf(const struct lacp_port *, const char *, ...) __attribute__((__format__(__printf__, 2, 3))); -static VNET_DEFINE(int, lacp_debug); +VNET_DEFINE_STATIC(int, lacp_debug); #define V_lacp_debug VNET(lacp_debug) SYSCTL_NODE(_net_link_lagg, OID_AUTO, lacp, CTLFLAG_RD, 0, "ieee802.3ad"); SYSCTL_INT(_net_link_lagg_lacp, OID_AUTO, debug, CTLFLAG_RWTUN | CTLFLAG_VNET, &VNET_NAME(lacp_debug), 0, "Enable LACP debug logging (1=debug, 2=trace)"); -static VNET_DEFINE(int, lacp_default_strict_mode) = 1; +VNET_DEFINE_STATIC(int, lacp_default_strict_mode) = 1; SYSCTL_INT(_net_link_lagg_lacp, OID_AUTO, default_strict_mode, CTLFLAG_RWTUN | CTLFLAG_VNET, &VNET_NAME(lacp_default_strict_mode), 0, "LACP strict protocol compliance default"); |