diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-13 00:05:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-13 01:57:07 -0400 |
commit | 849e8a0ca8d5d286510ab30b5f67b91aa6965ef6 (patch) | |
tree | 995b044bc4e622efb842799e03e90185a203173c /net/socket.c | |
parent | 3e5da62d0bcbfa86332f66cca0e3983e70557fac (diff) |
tcp_metrics: Add a field tcpm_net and verify it matches on lookup
In preparation for using one tcp metrics hash table for all network
namespaces add a field tcpm_net to struct tcp_metrics_block, and
verify that field on all hash table lookups.
Make the field tcpm_net of type possible_net_t so it takes no space
when network namespaces are disabled.
Further add a function tm_net to read that field so we can be
efficient when network namespaces are disabled and concise
the rest of the time.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions