diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-02-26 10:15:11 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-21 19:20:40 +0200 |
commit | 4f3780c004ef608477a534558eb16f46c5a1c534 (patch) | |
tree | dba23737d2ad144c08f2a84853800b5d9199d005 /include | |
parent | 07cb9623ee7d15cc9968969ac247edae6972fb8f (diff) | |
download | linux-stable-4f3780c004ef608477a534558eb16f46c5a1c534.tar.gz linux-stable-4f3780c004ef608477a534558eb16f46c5a1c534.tar.bz2 linux-stable-4f3780c004ef608477a534558eb16f46c5a1c534.zip |
netfilter: nf_flow_table: cache mtu in struct flow_offload_tuple
Reduces the number of cache lines touched in the offload forwarding
path. This is safe because PMTU limits are bypassed for the forwarding
path (see commit f87c10a8aa1e for more details).
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_flow_table.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_flow_table.h b/include/net/netfilter/nf_flow_table.h index 09ba67598991..76ee5c81b752 100644 --- a/include/net/netfilter/nf_flow_table.h +++ b/include/net/netfilter/nf_flow_table.h @@ -55,6 +55,8 @@ struct flow_offload_tuple { int oifidx; + u16 mtu; + struct dst_entry *dst_cache; }; |