]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08ae63857590984487a7c2ae7a1f8be211e18ccc
tree663e667174987317f515eb313db6082c39c44401
parentea5f0eeacc468e452c8b16b7303d246f05b85a74
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