OSDN Git Service

tcp: batch tcp_net_metrics_exit
authorEric Dumazet <edumazet@google.com>
Tue, 19 Sep 2017 23:27:07 +0000 (16:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 23:32:23 +0000 (16:32 -0700)
commit789e6ddb0b2fb5d5024b760b178a47876e4de7a6
treec5eb8d06088fb31d2553c2bca8839f551b4d1832
parenta90c9347e90ed1e9323d71402ed18023bc910cd8
tcp: batch tcp_net_metrics_exit

When dealing with a list of dismantling netns, we can scan
tcp_metrics once, saving cpu cycles.

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