diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-01-25 20:56:01 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-01-26 03:10:07 +0300 |
commit | dbc859d96f1a90bafe9c3ba2e437aae5d5677318 (patch) | |
tree | 588428212ec6e8e8ff2f1ebeb21cb8a23d0aded7 /include/net/netfilter/nf_flow_table.h | |
parent | 012da53d1afb619556f1a63c9da76b15888b190f (diff) | |
download | linux-dbc859d96f1a90bafe9c3ba2e437aae5d5677318.tar.xz |
netfilter: flowtable: add hash offset field to tuple
Add a placeholder field to calculate hash tuple offset. Similar to
2c407aca6497 ("netfilter: conntrack: avoid gcc-10 zero-length-bounds
warning").
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_flow_table.h')
-rw-r--r-- | include/net/netfilter/nf_flow_table.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_flow_table.h b/include/net/netfilter/nf_flow_table.h index 16e8b2f8d006..54c4d5c908a5 100644 --- a/include/net/netfilter/nf_flow_table.h +++ b/include/net/netfilter/nf_flow_table.h @@ -107,6 +107,10 @@ struct flow_offload_tuple { u8 l3proto; u8 l4proto; + + /* All members above are keys for lookups, see flow_offload_hash(). */ + struct { } __hash; + u8 dir; u16 mtu; |