Lines Matching refs:flow
243 struct flow_offload *flow, in tcf_ct_flow_table_fill_actions() argument
249 struct nf_conn *ct = flow->ct; in tcf_ct_flow_table_fill_actions()
260 set_bit(NF_FLOW_HW_ESTABLISHED, &flow->flags); in tcf_ct_flow_table_fill_actions()
286 static bool tcf_ct_flow_is_outdated(const struct flow_offload *flow) in tcf_ct_flow_is_outdated() argument
288 return test_bit(IPS_SEEN_REPLY_BIT, &flow->ct->status) && in tcf_ct_flow_is_outdated()
289 test_bit(IPS_HW_OFFLOAD_BIT, &flow->ct->status) && in tcf_ct_flow_is_outdated()
290 !test_bit(NF_FLOW_HW_PENDING, &flow->flags) && in tcf_ct_flow_is_outdated()
291 !test_bit(NF_FLOW_HW_ESTABLISHED, &flow->flags); in tcf_ct_flow_is_outdated()
662 struct flow_offload *flow; in tcf_ct_flow_table_lookup() local
684 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in tcf_ct_flow_table_lookup()
685 ct = flow->ct; in tcf_ct_flow_table_lookup()
688 !test_bit(NF_FLOW_HW_BIDIRECTIONAL, &flow->flags)) { in tcf_ct_flow_table_lookup()
693 set_bit(NF_FLOW_HW_BIDIRECTIONAL, &flow->flags); in tcf_ct_flow_table_lookup()
694 else if (test_bit(NF_FLOW_HW_ESTABLISHED, &flow->flags)) in tcf_ct_flow_table_lookup()
703 flow_offload_teardown(flow); in tcf_ct_flow_table_lookup()
714 tcf_ct_flow_ct_ext_ifidx_update(flow); in tcf_ct_flow_table_lookup()
715 flow_offload_refresh(nf_ft, flow, force_refresh); in tcf_ct_flow_table_lookup()