tun: avoid extra timer schedule in tun_flow_cleanup()
authorEric Dumazet <edumazet@google.com>
Fri, 20 Oct 2017 18:29:56 +0000 (11:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 02:13:19 +0000 (03:13 +0100)
commit81d98fa4df3d1683b3ef21e8a7a0ccac7874f0de
tree663e667174987317f515eb313db6082c39c44401
parent7dbfb4ef77db5666f0f3a425e7db93ca30ff4285
tun: avoid extra timer schedule in tun_flow_cleanup()

If tun_flow_cleanup() deleted all flows, no need to
arm the timer again. It will be armed next time
tun_flow_update() is called.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c