diff options
author | 2015-03-13 00:05:52 -0500 | |
---|---|---|
committer | 2015-03-13 01:57:07 -0400 | |
commit | 849e8a0ca8d5d286510ab30b5f67b91aa6965ef6 (patch) | |
tree | 995b044bc4e622efb842799e03e90185a203173c /net/tipc/node.h | |
parent | tcp_metrics: Mix the network namespace into the hash function. (diff) | |
download | wireguard-linux-849e8a0ca8d5d286510ab30b5f67b91aa6965ef6.tar.xz wireguard-linux-849e8a0ca8d5d286510ab30b5f67b91aa6965ef6.zip |
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/tipc/node.h')
0 files changed, 0 insertions, 0 deletions