diff options
| author | Eric W. Biederman <[email protected]> | 2015-03-13 05:05:52 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-03-13 05:57:07 +0000 |
| commit | 849e8a0ca8d5d286510ab30b5f67b91aa6965ef6 (patch) | |
| tree | 995b044bc4e622efb842799e03e90185a203173c /net/switchdev/switchdev.c | |
| parent | tcp_metrics: Mix the network namespace into the hash function. (diff) | |
| download | kernel-849e8a0ca8d5d286510ab30b5f67b91aa6965ef6.tar.gz kernel-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" <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
