OSDN Git Service

netfilter: flowtable: allow unidirectional rules
authorVlad Buslov <vladbu@nvidia.com>
Wed, 1 Feb 2023 16:30:56 +0000 (17:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2023 09:31:24 +0000 (09:31 +0000)
commit8f84780b84d645d6e35467f4a6f3236b20d7f4b2
treefe428f37b0be8657bfaf3f894faf4c1e1ba26f9a
parent0eb5acb16418898c3d813e2c2d59a7ea7763a824
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>
include/net/netfilter/nf_flow_table.h
net/netfilter/nf_flow_table_offload.c