HomeFreeBSD

lagg: Further cleanup of the rr_limit option.

Description

lagg: Further cleanup of the rr_limit option.

Add an option flag so that arbitrary updates to a lagg's configuration
do not clear sc_stride. Preseve compatibility for old ifconfig
binaries. Update ifconfig to use the new flag and improve the casting
used when parsing the option parameter.

Modify the RR transmit function to avoid locklessly reading sc_stride
twice. Ensure that sc_stride is always 1 or greater.

Reviewed by: hselasky
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23092

Details

Committed
markjJan 9 2020, 2:58 PM
Reviewer
hselasky
Differential Revision
D23092: lagg: Further cleanup of the rr_limit option.
Parents
rS356553: Revert r356515 - add LLVM_LIBUNWIND back to sparc64 BROKEN_OPTIONS
Branches
Unknown
Tags
Unknown