summaryrefslogtreecommitdiffstats
path: root/sys/net/if_lagg.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-07-26 19:41:13 +0000
committeradrian <adrian@FreeBSD.org>2013-07-26 19:41:13 +0000
commit1467e47941ef8cecaa817a96faa46bdab7a79253 (patch)
tree4205f1f1657bf1688ef1232f82b3447d80685761 /sys/net/if_lagg.c
parentc8d343ae8b6bda9a70a4901342a1dfd1f22e5b75 (diff)
downloadFreeBSD-src-1467e47941ef8cecaa817a96faa46bdab7a79253.zip
FreeBSD-src-1467e47941ef8cecaa817a96faa46bdab7a79253.tar.gz
Break out the static, global LACP debug options into a per-lagg unit
sysctl tree. * Create a net.link.lagg.X.lacp node * Add a debug node under that for tx_test and rx_test * Add lacp_strict_mode, defaulting to 1 tx_test and rx_test are still a bitmap of unit numbers for now. At some point it would be nice to create child nodes of the lagg bundle for each sub-interface, and then populate those with various knobs and statistics. Sponsored by: Netflix
Diffstat (limited to 'sys/net/if_lagg.c')
-rw-r--r--sys/net/if_lagg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
index bc2127c..a46e1f3 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -291,7 +291,8 @@ lagg_clone_create(struct if_clone *ifc, int unit, caddr_t params)
sysctl_ctx_init(&sc->ctx);
snprintf(num, sizeof(num), "%u", unit);
sc->use_flowid = def_use_flowid;
- oid = SYSCTL_ADD_NODE(&sc->ctx, &SYSCTL_NODE_CHILDREN(_net_link, lagg),
+ sc->sc_oid = oid = SYSCTL_ADD_NODE(&sc->ctx,
+ &SYSCTL_NODE_CHILDREN(_net_link, lagg),
OID_AUTO, num, CTLFLAG_RD, NULL, "");
SYSCTL_ADD_INT(&sc->ctx, SYSCTL_CHILDREN(oid), OID_AUTO,
"use_flowid", CTLTYPE_INT|CTLFLAG_RW, &sc->use_flowid, sc->use_flowid,
OpenPOWER on IntegriCloud