]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lagg: Clean up handling of the rr_limit option.
authormarkj <markj@FreeBSD.org>
Sun, 22 Dec 2019 21:56:47 +0000 (21:56 +0000)
committermarkj <markj@FreeBSD.org>
Sun, 22 Dec 2019 21:56:47 +0000 (21:56 +0000)
commit7733daac8a6dc76822eed8c11b6faa36f6ae157e
treee84eae87117ee1102cfec83e4f09bc1f9022e62e
parente3e2b87e3f9c1d050cfd852ec116f3837ab4a707
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
sbin/ifconfig/ifconfig.8
share/man/man4/lagg.4
sys/net/if_lagg.c
sys/net/if_lagg.h