diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-01-25 18:56:01 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-01-26 01:10:07 +0100 |
commit | dbc859d96f1a90bafe9c3ba2e437aae5d5677318 (patch) | |
tree | 588428212ec6e8e8ff2f1ebeb21cb8a23d0aded7 /include | |
parent | ipvs: add weighted random twos choice algorithm (diff) | |
download | linux-dev-dbc859d96f1a90bafe9c3ba2e437aae5d5677318.tar.xz linux-dev-dbc859d96f1a90bafe9c3ba2e437aae5d5677318.zip |
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')
-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; |