]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: changelink: Postpone vxlan_config_apply()
authorPetr Machata <petrm@mellanox.com>
Wed, 16 Jan 2019 23:06:41 +0000 (23:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 23:18:46 +0000 (15:18 -0800)
commit553a53d1283eda8d5f4db5a50f0eff169ee380d3
tree57074c80d3beff160bb636ab6a2272f08e762bf2
parent15eeb0d906f5606501ffe5ecb0a90a149f5256d9
vxlan: changelink: Postpone vxlan_config_apply()

When an FDB entry is vetoed, it is necessary to unroll the changes that
have already been done. To avoid having to unroll vxlan_config_apply(),
postpone the call after the point where the vetoing takes place. Since
the call can't fail, it doesn't necessitate any cleanups in the
preceding FDB update logic.

Correspondingly, move down the mod_timer() call as well.

References to *dst need to be replaced with references to conf.
Additionally, old_dst and old_age_interval are not necessary anymore,
and therefore drop them.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c