Lines Matching refs:timeout
28 static int untimeout(struct nf_conn *ct, void *timeout) in untimeout() argument
35 t = rcu_access_pointer(timeout_ext->timeout); in untimeout()
37 if (!timeout || t == timeout) in untimeout()
38 RCU_INIT_POINTER(timeout_ext->timeout, NULL); in untimeout()
45 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout) in nf_ct_untimeout() argument
49 .data = timeout, in nf_ct_untimeout()
56 static void __nf_ct_timeout_put(struct nf_ct_timeout *timeout) in __nf_ct_timeout_put() argument
61 h->timeout_put(timeout); in __nf_ct_timeout_put()
68 struct nf_ct_timeout *timeout; in nf_ct_set_timeout() local
81 timeout = h->timeout_find_get(net, timeout_name); in nf_ct_set_timeout()
82 if (!timeout) { in nf_ct_set_timeout()
89 if (timeout->l3num != l3num) { in nf_ct_set_timeout()
93 timeout_name, 3, timeout->l3num); in nf_ct_set_timeout()
99 if (timeout->l4proto->l4proto != l4num) { in nf_ct_set_timeout()
103 timeout_name, 4, timeout->l4proto->l4proto); in nf_ct_set_timeout()
106 timeout_ext = nf_ct_timeout_ext_add(ct, timeout, GFP_ATOMIC); in nf_ct_set_timeout()
116 __nf_ct_timeout_put(timeout); in nf_ct_set_timeout()
138 t = rcu_dereference(timeout_ext->timeout); in nf_ct_destroy_timeout()
141 RCU_INIT_POINTER(timeout_ext->timeout, NULL); in nf_ct_destroy_timeout()