/net/netfilter/ |
D | nf_conntrack_timeout.c | 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() [all …]
|
D | nfnetlink_cttimeout.c | 44 struct nf_ct_timeout timeout; member 70 ctnl_timeout_parse_policy(void *timeout, in ctnl_timeout_parse_policy() argument 91 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy() 106 struct ctnl_timeout *timeout, *matching = NULL; in cttimeout_new_timeout() local 120 list_for_each_entry(timeout, &pernet->nfct_timeout_list, head) { in cttimeout_new_timeout() 121 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout() 127 matching = timeout; in cttimeout_new_timeout() 136 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout() 137 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout() 140 return ctnl_timeout_parse_policy(&matching->timeout.data, in cttimeout_new_timeout() [all …]
|
D | nf_conntrack_proto_generic.c | 24 unsigned int *timeout = data; in generic_timeout_nlattr_to_obj() local 26 if (!timeout) in generic_timeout_nlattr_to_obj() 27 timeout = &gn->timeout; in generic_timeout_nlattr_to_obj() 30 *timeout = in generic_timeout_nlattr_to_obj() 34 *timeout = gn->timeout; in generic_timeout_nlattr_to_obj() 43 const unsigned int *timeout = data; in generic_timeout_obj_to_nlattr() local 45 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) in generic_timeout_obj_to_nlattr() 64 gn->timeout = nf_ct_generic_timeout; in nf_conntrack_generic_init_net()
|
D | nf_conntrack_proto_icmp.c | 78 unsigned int *timeout = nf_ct_timeout_lookup(ct); in nf_conntrack_icmp_packet() local 98 if (!timeout) in nf_conntrack_icmp_packet() 99 timeout = &nf_icmp_pernet(nf_ct_net(ct))->timeout; in nf_conntrack_icmp_packet() 101 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in nf_conntrack_icmp_packet() 324 unsigned int *timeout = data; in icmp_timeout_nlattr_to_obj() local 328 if (!timeout) in icmp_timeout_nlattr_to_obj() 329 timeout = &in->timeout; in icmp_timeout_nlattr_to_obj() 330 *timeout = in icmp_timeout_nlattr_to_obj() 332 } else if (timeout) { in icmp_timeout_nlattr_to_obj() 334 *timeout = in->timeout; in icmp_timeout_nlattr_to_obj() [all …]
|
D | nft_dynset.c | 24 u64 timeout; member 52 u64 timeout; in nft_dynset_new() local 58 timeout = priv->timeout ? : set->timeout; in nft_dynset_new() 62 timeout, 0, GFP_ATOMIC); in nft_dynset_new() 86 u64 timeout; in nft_dynset_eval() local 97 timeout = priv->timeout ? : set->timeout; in nft_dynset_eval() 98 *nft_set_ext_expiration(ext) = get_jiffies_64() + timeout; in nft_dynset_eval() 168 u64 timeout; in nft_dynset_init() local 207 timeout = 0; in nft_dynset_init() 212 err = nf_msecs_to_jiffies64(tb[NFTA_DYNSET_TIMEOUT], &timeout); in nft_dynset_init() [all …]
|
D | nf_conntrack_proto_icmpv6.c | 83 return &nf_icmpv6_pernet(net)->timeout; in icmpv6_get_timeouts() 92 unsigned int *timeout = nf_ct_timeout_lookup(ct); in nf_conntrack_icmpv6_packet() local 113 if (!timeout) in nf_conntrack_icmpv6_packet() 114 timeout = icmpv6_get_timeouts(nf_ct_net(ct)); in nf_conntrack_icmpv6_packet() 119 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in nf_conntrack_icmpv6_packet() 300 unsigned int *timeout = data; in icmpv6_timeout_nlattr_to_obj() local 303 if (!timeout) in icmpv6_timeout_nlattr_to_obj() 304 timeout = icmpv6_get_timeouts(net); in icmpv6_timeout_nlattr_to_obj() 306 *timeout = in icmpv6_timeout_nlattr_to_obj() 310 *timeout = in->timeout; in icmpv6_timeout_nlattr_to_obj() [all …]
|
D | nf_flow_table_core.c | 178 s32 timeout; in flow_offload_fixup_ct() local 185 timeout = tn->timeouts[ct->proto.tcp.state]; in flow_offload_fixup_ct() 186 timeout -= tn->offload_timeout; in flow_offload_fixup_ct() 193 timeout = tn->timeouts[state]; in flow_offload_fixup_ct() 194 timeout -= tn->offload_timeout; in flow_offload_fixup_ct() 199 if (timeout < 0) in flow_offload_fixup_ct() 200 timeout = 0; in flow_offload_fixup_ct() 202 if (nf_flow_timeout_delta(READ_ONCE(ct->timeout)) > (__s32)timeout) in flow_offload_fixup_ct() 203 WRITE_ONCE(ct->timeout, nfct_time_stamp + timeout); in flow_offload_fixup_ct() 262 unsigned long timeout = NF_FLOW_TIMEOUT; in flow_offload_get_timeout() local [all …]
|
D | nf_conntrack_netbios_ns.c | 32 static unsigned int timeout __read_mostly = 3; 33 module_param(timeout, uint, 0400); 34 MODULE_PARM_DESC(timeout, "timeout for master connection/replies in seconds"); 44 return nf_conntrack_broadcast_help(skb, ct, ctinfo, timeout); in netbios_ns_help() 61 exp_policy.timeout = timeout; in nf_conntrack_netbios_ns_init()
|
D | nft_ct.c | 897 struct nf_ct_timeout *timeout; member 907 struct nf_conn_timeout *timeout; in nft_ct_timeout_obj_eval() local 916 timeout = nf_ct_timeout_find(ct); in nft_ct_timeout_obj_eval() 917 if (!timeout) { in nft_ct_timeout_obj_eval() 918 timeout = nf_ct_timeout_ext_add(ct, priv->timeout, GFP_ATOMIC); in nft_ct_timeout_obj_eval() 919 if (!timeout) { in nft_ct_timeout_obj_eval() 925 rcu_assign_pointer(timeout->timeout, priv->timeout); in nft_ct_timeout_obj_eval() 930 values = nf_ct_timeout_data(timeout); in nft_ct_timeout_obj_eval() 941 struct nf_ct_timeout *timeout; in nft_ct_timeout_obj_init() local 963 timeout = kzalloc(sizeof(struct nf_ct_timeout) + in nft_ct_timeout_obj_init() [all …]
|
D | nf_conntrack_snmp.c | 24 static unsigned int timeout __read_mostly = 30; 25 module_param(timeout, uint, 0400); 26 MODULE_PARM_DESC(timeout, "timeout for master connection/replies in seconds"); 40 nf_conntrack_broadcast_help(skb, ct, ctinfo, timeout); in snmp_conntrack_help() 65 exp_policy.timeout = timeout; in nf_conntrack_snmp_init()
|
D | xt_IDLETIMER.c | 51 int timeout; member 75 if ((ts->tv_sec - timer->last_modified_timer.tv_sec) > timer->timeout || in check_for_delayed_trigger() 78 temp.tv_sec = timer->timeout; in check_for_delayed_trigger() 336 info->timer->timeout = info->timeout; in idletimer_tg_create() 355 msecs_to_jiffies(info->timeout * 1000) + jiffies); in idletimer_tg_create() 405 info->timer->timeout = info->timeout; in idletimer_tg_create_v1() 427 tout = ktime_set(info->timeout, 0); in idletimer_tg_create_v1() 432 msecs_to_jiffies(info->timeout * 1000) + jiffies); in idletimer_tg_create_v1() 490 info->label, info->timeout); in idletimer_tg_target() 501 reset_timer(info->timer, info->timeout, skb); in idletimer_tg_target() [all …]
|
D | nf_conntrack_expect.c | 55 WARN_ON(timer_pending(&exp->timeout)); in nf_ct_unlink_expect_report() 74 struct nf_conntrack_expect *exp = from_timer(exp, t, timeout); in nf_ct_expectation_timed_out() 121 if (del_timer(&exp->timeout)) { in nf_ct_remove_expect() 217 } else if (del_timer(&exp->timeout)) { in nf_ct_find_expectation() 396 timer_setup(&exp->timeout, nf_ct_expectation_timed_out, 0); in nf_ct_expect_insert() 400 exp->timeout.expires = jiffies + in nf_ct_expect_insert() 401 helper->expect_policy[exp->class].timeout * HZ; in nf_ct_expect_insert() 403 add_timer(&exp->timeout); in nf_ct_expect_insert() 523 if (iter(exp, data) && del_timer(&exp->timeout)) { in nf_ct_expect_iterate_destroy() 553 if (iter(exp, data) && del_timer(&exp->timeout)) { in nf_ct_expect_iterate_net() [all …]
|
D | nf_conntrack_proto_tcp.c | 730 unsigned int timeout; in nf_tcp_handle_invalid() local 765 timeout = READ_ONCE(timeouts[TCP_CONNTRACK_UNACK]); in nf_tcp_handle_invalid() 766 if (expires > timeout) { in nf_tcp_handle_invalid() 769 index, dir, ct->proto.tcp.last_index, timeout); in nf_tcp_handle_invalid() 771 WRITE_ONCE(ct->timeout, timeout + nfct_time_stamp); in nf_tcp_handle_invalid() 920 u32 timeout; in nf_conntrack_tcp_set_closing() local 943 timeout = timeouts[TCP_CONNTRACK_CLOSE]; in nf_conntrack_tcp_set_closing() 944 WRITE_ONCE(ct->timeout, timeout + nfct_time_stamp); in nf_conntrack_tcp_set_closing() 976 unsigned long timeout; in nf_conntrack_tcp_packet() local 1281 timeout = timeouts[TCP_CONNTRACK_RETRANS]; in nf_conntrack_tcp_packet() [all …]
|
D | nf_conntrack_bpf.c | 104 u32 timeout) in __bpf_nf_ct_alloc_entry() argument 139 __nf_ct_set_timeout(ct, timeout * HZ); in __bpf_nf_ct_alloc_entry() 385 nfct->timeout += nfct_time_stamp; in bpf_ct_insert_entry() 420 __bpf_kfunc void bpf_ct_set_timeout(struct nf_conn___init *nfct, u32 timeout) in bpf_ct_set_timeout() argument 422 __nf_ct_set_timeout((struct nf_conn *)nfct, msecs_to_jiffies(timeout)); in bpf_ct_set_timeout() 435 __bpf_kfunc int bpf_ct_change_timeout(struct nf_conn *nfct, u32 timeout) in bpf_ct_change_timeout() argument 437 return __nf_ct_change_timeout(nfct, msecs_to_jiffies(timeout)); in bpf_ct_change_timeout()
|
/net/mac80211/ |
D | agg-rx.c | 68 .timeout = 0, in ___ieee80211_stop_rx_ba_session() 157 unsigned long timeout; in sta_rx_agg_session_timer_expired() local 159 timeout = tid_rx->last_rx + TU_TO_JIFFIES(tid_rx->timeout); in sta_rx_agg_session_timer_expired() 160 if (time_is_after_jiffies(timeout)) { in sta_rx_agg_session_timer_expired() 161 mod_timer(&tid_rx->session_timer, timeout); in sta_rx_agg_session_timer_expired() 201 u16 buf_size, u16 timeout, in ieee80211_send_addba_resp() argument 244 mgmt->u.action.u.addba_resp.timeout = cpu_to_le16(timeout); in ieee80211_send_addba_resp() 254 u8 dialog_token, u16 timeout, in ___ieee80211_start_rx_ba_session() argument 266 .timeout = timeout, in ___ieee80211_start_rx_ba_session() 345 if (tid_rx && tid_rx->timeout == timeout) in ___ieee80211_start_rx_ba_session() [all …]
|
D | agg-tx.c | 64 u16 agg_size, u16 timeout) in ieee80211_send_addba_request() argument 105 mgmt->u.action.u.addba_req.timeout = cpu_to_le16(timeout); in ieee80211_send_addba_request() 309 .timeout = 0, in ___ieee80211_stop_tx_ba_session() 491 buf_size, tid_tx->timeout); in ieee80211_send_addba_with_timeout() 507 .timeout = 0, in ieee80211_tx_ba_session_handle_start() 585 unsigned long timeout; in sta_tx_agg_session_timer_expired() local 591 timeout = tid_tx->last_tx + TU_TO_JIFFIES(tid_tx->timeout); in sta_tx_agg_session_timer_expired() 592 if (time_is_after_jiffies(timeout)) { in sta_tx_agg_session_timer_expired() 593 mod_timer(&tid_tx->session_timer, timeout); in sta_tx_agg_session_timer_expired() 604 u16 timeout) in ieee80211_start_tx_ba_session() argument [all …]
|
/net/ipv4/ |
D | tcp_recovery.c | 98 u32 timeout; in tcp_rack_mark_lost() local 105 tcp_rack_detect_loss(sk, &timeout); in tcp_rack_mark_lost() 106 if (timeout) { in tcp_rack_mark_lost() 107 timeout = usecs_to_jiffies(timeout + TCP_TIMEOUT_MIN_US); in tcp_rack_mark_lost() 109 timeout, inet_csk(sk)->icsk_rto); in tcp_rack_mark_lost() 111 return !!timeout; in tcp_rack_mark_lost() 152 u32 timeout, prior_inflight; in tcp_rack_reo_timeout() local 156 tcp_rack_detect_loss(sk, &timeout); in tcp_rack_reo_timeout()
|
D | tcp_timer.c | 185 unsigned int linear_backoff_thresh, timeout; in tcp_model_timeout() local 189 timeout = ((2 << boundary) - 1) * rto_base; in tcp_model_timeout() 191 timeout = ((2 << linear_backoff_thresh) - 1) * rto_base + in tcp_model_timeout() 193 return jiffies_to_msecs(timeout); in tcp_model_timeout() 210 unsigned int timeout) in retransmits_timed_out() argument 218 if (likely(timeout == 0)) { in retransmits_timed_out() 223 timeout = tcp_model_timeout(sk, boundary, rto_base); in retransmits_timed_out() 226 return (s32)(tcp_time_stamp(tcp_sk(sk)) - start_ts - timeout) >= 0; in retransmits_timed_out() 319 if (time_after(icsk->icsk_ack.timeout, jiffies)) { in tcp_delack_timer_handler() 320 sk_reset_timer(sk, &icsk->icsk_delack_timer, icsk->icsk_ack.timeout); in tcp_delack_timer_handler() [all …]
|
D | inetpeer.c | 270 bool inet_peer_xrlim_allow(struct inet_peer *peer, int timeout) in inet_peer_xrlim_allow() argument 282 if (token > XRLIM_BURST_FACTOR * timeout) in inet_peer_xrlim_allow() 283 token = XRLIM_BURST_FACTOR * timeout; in inet_peer_xrlim_allow() 284 if (token >= timeout) { in inet_peer_xrlim_allow() 285 token -= timeout; in inet_peer_xrlim_allow()
|
/net/tipc/ |
D | subscr.c | 139 u32 timeout; in tipc_sub_subscribe() local 161 sub->s.timeout = tipc_sub_read(s, timeout); in tipc_sub_subscribe() 170 timeout = tipc_sub_read(&sub->evt.s, timeout); in tipc_sub_subscribe() 171 if (timeout != TIPC_WAIT_FOREVER) in tipc_sub_subscribe() 172 mod_timer(&sub->timer, jiffies + msecs_to_jiffies(timeout)); in tipc_sub_subscribe() 179 if (sub->evt.s.timeout != TIPC_WAIT_FOREVER) in tipc_sub_unsubscribe()
|
/net/nfc/ |
D | digital.h | 50 u16 timeout, nfc_digital_cmd_complete_t cmd_cb, 55 struct sk_buff *skb, u16 timeout, in digital_in_send_cmd() argument 59 return digital_send_cmd(ddev, DIGITAL_CMD_IN_SEND, skb, NULL, timeout, in digital_in_send_cmd() 89 struct sk_buff *skb, u16 timeout, in digital_tg_send_cmd() argument 92 return digital_send_cmd(ddev, DIGITAL_CMD_TG_SEND, skb, NULL, timeout, in digital_tg_send_cmd() 102 static inline int digital_tg_listen(struct nfc_digital_dev *ddev, u16 timeout, in digital_tg_listen() argument 106 timeout, cb, arg); in digital_tg_listen()
|
/net/smc/ |
D | smc_close.c | 49 static void smc_close_stream_wait(struct smc_sock *smc, long timeout) in smc_close_stream_wait() argument 54 if (!timeout) in smc_close_stream_wait() 65 while (!signal_pending(current) && timeout) { in smc_close_stream_wait() 68 rc = sk_wait_event(sk, &timeout, in smc_close_stream_wait() 200 long timeout; in smc_close_active() local 204 timeout = current->flags & PF_EXITING ? in smc_close_active() 231 smc_close_stream_wait(smc, timeout); in smc_close_active() 265 smc_close_stream_wait(smc, timeout); in smc_close_active() 452 long timeout; in smc_close_shutdown_write() local 455 timeout = current->flags & PF_EXITING ? in smc_close_shutdown_write() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_bitmap_ipmac.c | 116 bitmap_ipmac_add_timeout(unsigned long *timeout, in bitmap_ipmac_add_timeout() argument 121 u32 t = ext->timeout; in bitmap_ipmac_add_timeout() 124 if (t == set->timeout) in bitmap_ipmac_add_timeout() 126 t = *timeout; in bitmap_ipmac_add_timeout() 127 ip_set_timeout_set(timeout, t); in bitmap_ipmac_add_timeout() 135 ip_set_timeout_set(timeout, t); in bitmap_ipmac_add_timeout() 137 *timeout = t; in bitmap_ipmac_add_timeout() 288 a->timeout == b->timeout && in bitmap_ipmac_same_set() 308 set->timeout = IPSET_NO_TIMEOUT; in init_map_ipmac() 370 set->timeout = ip_set_timeout_uget(tb[IPSET_ATTR_TIMEOUT]); in bitmap_ipmac_create()
|
/net/vmw_vsock/ |
D | af_vsock.c | 1357 long timeout; in vsock_connect() local 1433 timeout = vsk->connect_timeout; in vsock_connect() 1451 timeout)) in vsock_connect() 1459 timeout = schedule_timeout(timeout); in vsock_connect() 1463 err = sock_intr_errno(timeout); in vsock_connect() 1469 } else if ((sk->sk_state != TCP_ESTABLISHED) && (timeout == 0)) { in vsock_connect() 1502 long timeout; in vsock_accept() local 1523 timeout = sock_rcvtimeo(listener, flags & O_NONBLOCK); in vsock_accept() 1529 timeout = schedule_timeout(timeout); in vsock_accept() 1534 err = sock_intr_errno(timeout); in vsock_accept() [all …]
|
/net/9p/ |
D | trans_rdma.c | 80 long timeout; member 127 long timeout; member 160 if (rdma->timeout != P9_RDMA_TIMEOUT) in p9_rdma_show_options() 161 seq_printf(m, ",timeout=%lu", rdma->timeout); in p9_rdma_show_options() 184 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts() 223 opts->timeout = option; in parse_opts() 583 rdma->timeout = opts->timeout; in alloc_rdma() 681 rdma->timeout); in rdma_create_trans() 689 err = rdma_resolve_route(rdma->cm_id, rdma->timeout); in rdma_create_trans()
|