]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit40051c4dcad5b374156ad9cceae8d15c0ef1cb95
tree64a9ae178702902de7814a5c9843ae00a595a25d
parent5728ae0d17d27e14b7e5034f73a38b562cfcd5c5
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