This patchset adds support for specifying the offload policy of act ct offloaded flows to the nf flow table (and then hardware).
policy_pkts - specifies after how many software packets to offload a flow to the flow table policy_timeout - specifies the aging timeout, in seconds, from last seen packet Usage is: $ tc filter add dev ens1f0_0 ingress chain 0 flower ct_state -trk \ action ct policy_timeout 120 policy_pkts 10 pipe \ action goto chain 1 $ tc filter add dev ens1f0_0 ingress chain 1 flower ct_state +trk+new \ action ct commit policy_timeout 120 policy_pkts 10 pipe \ action mirred egress redirect dev ens1f0_1 $ tc filter add dev ens1f0_0 ingress chain 1 flower ct_state +trk+est \ action mirred egress redirect dev ens1f0_1 To avoid conflicting policies, the policy is applied per zone on the first act ct instance for that zone, and must be repeated in all further act ct instances of the same zone. Paul Blakey (3): netfilter: flowtable: Control flow offload timeout interval net/sched: act_ct: Add policy_pkts tuple offload control policy net/sched: act_ct: Add policy_timeout tuple offload control policy include/net/netfilter/nf_flow_table.h | 7 ++- include/net/tc_act/tc_ct.h | 5 ++ include/uapi/linux/tc_act/tc_ct.h | 2 + net/netfilter/nf_flow_table_core.c | 12 ++++- net/netfilter/nf_flow_table_offload.c | 5 +- net/sched/act_ct.c | 93 ++++++++++++++++++++++++++++++++++- 6 files changed, 117 insertions(+), 7 deletions(-) -- 1.8.3.1