diff options
author | Vlad Buslov <vladbu@nvidia.com> | 2023-02-01 17:30:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-02-03 10:31:24 +0100 |
commit | 8f84780b84d645d6e35467f4a6f3236b20d7f4b2 (patch) | |
tree | fe428f37b0be8657bfaf3f894faf4c1e1ba26f9a /include/net | |
parent | netfilter: flowtable: fixup UDP timeout depending on ct state (diff) | |
download | linux-8f84780b84d645d6e35467f4a6f3236b20d7f4b2.tar.xz linux-8f84780b84d645d6e35467f4a6f3236b20d7f4b2.zip |
netfilter: flowtable: allow unidirectional rules
Modify flow table offload to support unidirectional connections by
extending enum nf_flow_flags with new "NF_FLOW_HW_BIDIRECTIONAL" flag. Only
offload reply direction when the flag is set. This infrastructure change is
necessary to support offloading UDP NEW connections in original direction
in following patches in series.
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/nf_flow_table.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_flow_table.h b/include/net/netfilter/nf_flow_table.h index cd982f4a0f50..88ab98ab41d9 100644 --- a/include/net/netfilter/nf_flow_table.h +++ b/include/net/netfilter/nf_flow_table.h @@ -164,6 +164,7 @@ enum nf_flow_flags { NF_FLOW_HW_DYING, NF_FLOW_HW_DEAD, NF_FLOW_HW_PENDING, + NF_FLOW_HW_BIDIRECTIONAL, }; enum flow_offload_type { |