aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netfilter
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-02-26 10:15:11 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-04-21 19:20:40 +0200
commit4f3780c004ef608477a534558eb16f46c5a1c534 (patch)
treedba23737d2ad144c08f2a84853800b5d9199d005 /include/net/netfilter
parentipv6: make ip6_dst_mtu_forward inline (diff)
downloadlinux-dev-4f3780c004ef608477a534558eb16f46c5a1c534.tar.xz
linux-dev-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/net/netfilter')
-rw-r--r--include/net/netfilter/nf_flow_table.h2
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;
};