aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-12-22 21:56:47 +0000
committerMark Johnston <markj@FreeBSD.org>2019-12-22 21:56:47 +0000
commitc104c2990d15c1ccc2487a1962353e50034c327c (patch)
treee84eae87117ee1102cfec83e4f09bc1f9022e62e /sbin/ifconfig
parentb649c2ac34927ff5c503a1aa9e04d9f5c892b058 (diff)
downloadsrc-c104c2990d15c1ccc2487a1962353e50034c327c.tar.gz
src-c104c2990d15c1ccc2487a1962353e50034c327c.zip
lagg: Clean up handling of the rr_limit option.
- Don't allow an unprivileged user to set the stride. [1] - Only set the stride under the softc lock. - Rename the internal fields to accurately reflect their use. Keep ro_bkt to avoid changing the user API. - Simplify the implementation. The port index is just sc_seq / stride. - Document rr_limit in ifconfig.8. Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com> [1] MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22857
Notes
Notes: svn path=/head/; revision=356029
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.85
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index 3b6d29657e80..05c625360d25 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -28,7 +28,7 @@
.\" From: @(#)ifconfig.8 8.3 (Berkeley) 1/5/94
.\" $FreeBSD$
.\"
-.Dd August 26, 2019
+.Dd December 17, 2019
.Dt IFCONFIG 8
.Os
.Sh NAME
@@ -2567,6 +2567,9 @@ means
.Dq enabled .
.It Cm -lacp_strict
Disable lacp strict compliance on the interface.
+.It Cm rr_limit Ar number
+Configure a stride for an interface in round-robin mode.
+The default stride is 1.
.El
.Pp
The following parameters apply to IP tunnel interfaces,