Merge branch 'tcp_metrics_netns_debloat'
commit5e1459ca13eddea516f8c56122cb3253e7b0e03e
authorDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2015 05:57:16 +0000 (13 01:57 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2015 05:57:16 +0000 (13 01:57 -0400)
tree4440bf30fb2500af39ea2d084c9caba0d5ca064f
parent719a11cdbf57b7bdd6c87ded00fd7cb36a76a6a3
parent098a697b497e3154a1a583c1d34c67568acaadcc
Merge branch 'tcp_metrics_netns_debloat'

Eric W. Biederman says:

====================
tcp_metrics: Network namespace bloat reduction v3

This is a small pile of patches that convert tcp_metrics from using a
hash table per network namespace to using a single hash table for all
network namespaces.

This is broken up into several patches so that each small step along
the way could be carefully scrutinized as I wrote it, and equally so
that each small step can be reviewed.

There are several cleanups included in this series.  The addition of
panic calls during boot where we can not handle failure, and not trying
simplifies the code.  The removal of the return code from
tcp_metrics_flush_all.

The motivation for this change is that the tcp_metrics hash table at
128KiB is one of the largest components of a freshly allocated network
namespace.

I am resending the the previous version I sent has suffered bitrot, so I
have respun the patches so that they apply.  I believe I have addressed
all of the review concerns except optimal behavior on little machines
with 32-byte cache lines, which is beyond me as even the current code
has bad behavior in that case.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>