]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Allow changing ageing time
authorIdo Schimmel <idosch@mellanox.com>
Wed, 21 Nov 2018 08:02:40 +0000 (08:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Nov 2018 01:10:31 +0000 (17:10 -0800)
commite49fe6cc665c0906df15c7b747cc46ee7d905a4c
tree64a9ae178702902de7814a5c9843ae00a595a25d
parent5267140b6a87126ba29a1e7666a69ffe3b926caf
vxlan: Allow changing ageing time

In a similar fashion to the bridge device, allow changing the ageing
time of the VxLAN device by scheduling its timer to fire if the ageing
time changed.

One use case is selftests where learning / ageing of VxLAN FDB entries
is tested. The default ageing time is 5 minutes, which is too long for a
simple selftest.

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