/net/ipv4/ |
D | tcp_metrics.c | 54 static inline struct net *tm_net(const struct tcp_metrics_block *tm) in tm_net() argument 57 return READ_ONCE(tm->tcpm_net); in tm_net() 60 static bool tcp_metric_locked(struct tcp_metrics_block *tm, in tcp_metric_locked() argument 64 return READ_ONCE(tm->tcpm_lock) & (1 << idx); in tcp_metric_locked() 67 static u32 tcp_metric_get(const struct tcp_metrics_block *tm, in tcp_metric_get() argument 71 return READ_ONCE(tm->tcpm_vals[idx]); in tcp_metric_get() 74 static void tcp_metric_set(struct tcp_metrics_block *tm, in tcp_metric_set() argument 79 WRITE_ONCE(tm->tcpm_vals[idx], val); in tcp_metric_set() 98 static void tcpm_suck_dst(struct tcp_metrics_block *tm, in tcpm_suck_dst() argument 105 WRITE_ONCE(tm->tcpm_stamp, jiffies); in tcpm_suck_dst() [all …]
|
/net/sched/ |
D | em_text.c | 31 struct text_match *tm = EM_TEXT_PRIV(m); in em_text_match() local 34 from = tcf_get_base_ptr(skb, tm->from_layer) - skb->data; in em_text_match() 35 from += tm->from_offset; in em_text_match() 37 to = tcf_get_base_ptr(skb, tm->to_layer) - skb->data; in em_text_match() 38 to += tm->to_offset; in em_text_match() 40 return skb_find_text(skb, from, to, tm->config) != UINT_MAX; in em_text_match() 46 struct text_match *tm; in em_text_change() local 80 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in em_text_change() 81 if (tm == NULL) { in em_text_change() 86 tm->from_offset = conf->from_offset; in em_text_change() [all …]
|
D | act_bpf.c | 144 struct tcf_t tm; in tcf_bpf_dump() local 159 tcf_tm_dump(&tm, &prog->tcf_tm); in tcf_bpf_dump() 160 if (nla_put_64bit(skb, TCA_ACT_BPF_TM, sizeof(tm), &tm, in tcf_bpf_dump()
|
D | act_gact.c | 176 struct tcf_t *tm = &gact->tcf_tm; in tcf_gact_stats_update() local 187 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_gact_stats_update()
|
D | act_ipt.c | 279 struct tcf_t tm; in tcf_ipt_dump() local 303 tcf_tm_dump(&tm, &ipt->tcf_tm); in tcf_ipt_dump() 304 if (nla_put_64bit(skb, TCA_IPT_TM, sizeof(tm), &tm, TCA_IPT_PAD)) in tcf_ipt_dump()
|
D | act_vlan.c | 309 struct tcf_t *tm = &v->tcf_tm; in tcf_vlan_stats_update() local 315 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_vlan_stats_update()
|
D | act_tunnel_key.c | 520 struct tcf_t tm; in tunnel_key_dump() local 556 tcf_tm_dump(&tm, &t->tcf_tm); in tunnel_key_dump() 557 if (nla_put_64bit(skb, TCA_TUNNEL_KEY_TM, sizeof(tm), in tunnel_key_dump() 558 &tm, TCA_TUNNEL_KEY_PAD)) in tunnel_key_dump()
|
D | act_mirred.c | 325 struct tcf_t *tm = &m->tcf_tm; in tcf_stats_update() local 331 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_stats_update()
|
D | act_police.c | 307 struct tcf_t *tm = &police->tcf_tm; in tcf_police_stats_update() local 313 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_police_stats_update()
|
D | cls_bpf.c | 582 struct sk_buff *skb, struct tcmsg *tm, bool rtnl_held) in cls_bpf_dump() argument 592 tm->tcm_handle = prog->handle; in cls_bpf_dump()
|
/net/netfilter/ |
D | nft_meta.c | 50 struct tm tm; in nft_meta_hour() local 52 time64_to_tm(secs, 0, &tm); in nft_meta_hour() 54 return tm.tm_hour * NFT_META_SECS_PER_HOUR in nft_meta_hour() 55 + tm.tm_min * NFT_META_SECS_PER_MINUTE in nft_meta_hour() 56 + tm.tm_sec; in nft_meta_hour()
|
/net/core/ |
D | sock.c | 1234 struct __kernel_old_timeval tm; in sock_getsockopt() member
|