mirror of
https://github.com/opnsense/src.git
synced 2026-02-04 03:00:53 -06:00
if_vxlan(4): Prefer SYSCTL_INT over TUNABLE_INT
This driver does not need to retrieve those tunable during early boot. Meanwhile SYSCTL_INT can provide rich info such as description. Also `sysctl net.link.vxlan.[legacy_port|reuse_port]` can report the current settings. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48621 (cherry picked from commit 92632371b360010709fad60146f1aee0b8b99776)
This commit is contained in:
parent
32153f610d
commit
3ff2763a72
@ -429,9 +429,11 @@ SYSCTL_NODE(_net_link, OID_AUTO, vxlan, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
|
||||
"Virtual eXtensible Local Area Network");
|
||||
|
||||
static int vxlan_legacy_port = 0;
|
||||
TUNABLE_INT("net.link.vxlan.legacy_port", &vxlan_legacy_port);
|
||||
SYSCTL_INT(_net_link_vxlan, OID_AUTO, legacy_port, CTLFLAG_RDTUN,
|
||||
&vxlan_legacy_port, 0, "Use legacy port");
|
||||
static int vxlan_reuse_port = 0;
|
||||
TUNABLE_INT("net.link.vxlan.reuse_port", &vxlan_reuse_port);
|
||||
SYSCTL_INT(_net_link_vxlan, OID_AUTO, reuse_port, CTLFLAG_RDTUN,
|
||||
&vxlan_reuse_port, 0, "Re-use port");
|
||||
|
||||
/*
|
||||
* This macro controls the default upper limitation on nesting of vxlan
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user