]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bridge: vlan: set vlan option attributes while parsing
authorNikolay Aleksandrov <nikolay@nvidia.com>
Wed, 1 Sep 2021 10:38:15 +0000 (13:38 +0300)
committerDavid Ahern <dsahern@kernel.org>
Mon, 6 Sep 2021 23:00:31 +0000 (17:00 -0600)
commit12fbe3e4eb2860c2be4107651d1ea0ee5e7e7113
tree9ecd8ea0cd9ed9ebb11d2c6c6153893676fbafcc
parentdb28c944d8bb0d2b03a6a7a2f40c9a54834c874c
bridge: vlan: set vlan option attributes while parsing

Set vlan option attributes immediately while parsing to simplify the
checks, avoid having reserved values (e.g. -1 for unset var) and have
more limited scope for the variables. This is also similar to how global
vlan options are set. The attribute setting and checks are moved with
option parsing, no functional changes intended.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
bridge/vlan.c