svn commit: r290450 - in head: sbin/ifconfig share/man/man4 sys/net

Gleb Smirnoff glebius at FreeBSD.org
Fri Nov 13 22:36:31 UTC 2015


On Fri, Nov 06, 2015 at 03:33:28PM +0000, Steven Hartland wrote:
S> Author: smh
S> Date: Fri Nov  6 15:33:27 2015
S> New Revision: 290450
S> URL: https://svnweb.freebsd.org/changeset/base/290450
S> 
S> Log:
S>   Add sysctl to control LACP strict compliance default
S>   
S>   Add net.link.lagg.lacp.default_strict_mode which defines
S>   the default value for LACP strict compliance for created
S>   lagg devices.
S>   
S>   Also:
S>   * Add lacp_strict option to ifconfig(8).
S>   * Fix lagg(4) creation examples.
S>   * Minor style(9) fix.

AFAIU, you are adding the sysctl to close a very short period
of time between cloning a lagg(4) and configuring it.

This is not a pretty solution to the problem. But the network
stack has an API for supplying extra parameters at the cloning
time. The lagg_clone_create() accepts the params, that can
be supplied by ifconfig. If you put there the same arguments you
supply with SIOCGLAGGOPTS, you can create and configure a lagg
in one syscall.

-- 
Totus tuus, Glebius.


More information about the svn-src-all mailing list