Lines Matching refs:dst

101 	struct meta_obj *dst, int *err)
109 get_random_bytes(&dst->value, sizeof(dst->value)); in META_COLLECTOR()
122 dst->value = fixed_loadavg(avenrun[0]); in META_COLLECTOR()
127 dst->value = fixed_loadavg(avenrun[1]); in META_COLLECTOR()
132 dst->value = fixed_loadavg(avenrun[2]); in META_COLLECTOR()
139 static inline int int_dev(struct net_device *dev, struct meta_obj *dst) in int_dev() argument
144 dst->value = dev->ifindex; in int_dev()
148 static inline int var_dev(struct net_device *dev, struct meta_obj *dst) in var_dev() argument
153 dst->value = (unsigned long) dev->name; in var_dev()
154 dst->len = strlen(dev->name); in var_dev()
160 *err = int_dev(skb->dev, dst); in META_COLLECTOR()
165 *err = var_dev(skb->dev, dst); in META_COLLECTOR()
177 dst->value = skb_vlan_tag_get(skb); in META_COLLECTOR()
179 dst->value = tag; in META_COLLECTOR()
192 dst->value = skb->priority; in META_COLLECTOR()
198 dst->value = skb_protocol(skb, false); in META_COLLECTOR()
203 dst->value = skb->pkt_type; in META_COLLECTOR()
208 dst->value = skb->len; in META_COLLECTOR()
213 dst->value = skb->data_len; in META_COLLECTOR()
218 dst->value = skb->mac_len; in META_COLLECTOR()
223 dst->value = skb_get_hash(skb); in META_COLLECTOR()
232 dst->value = skb->mark; in META_COLLECTOR()
241 dst->value = skb->tc_index; in META_COLLECTOR()
254 dst->value = skb_dst(skb)->tclassid; in META_COLLECTOR()
256 dst->value = 0; in META_COLLECTOR()
265 dst->value = inet_iif(skb); in META_COLLECTOR()
281 dst->value = skb->sk->sk_family; in META_COLLECTOR()
290 dst->value = skb->sk->sk_state; in META_COLLECTOR()
299 dst->value = skb->sk->sk_reuse; in META_COLLECTOR()
309 dst->value = skb->sk->sk_bound_dev_if; in META_COLLECTOR()
323 dst->value = (unsigned long) "any"; in META_COLLECTOR()
324 dst->len = 3; in META_COLLECTOR()
331 *err = var_dev(dev, dst); in META_COLLECTOR()
342 dst->value = refcount_read(&skb->sk->sk_refcnt); in META_COLLECTOR()
353 dst->value = sk->sk_rcvbuf; in META_COLLECTOR()
364 dst->value = sk->sk_shutdown; in META_COLLECTOR()
375 dst->value = sk->sk_protocol; in META_COLLECTOR()
386 dst->value = sk->sk_type; in META_COLLECTOR()
397 dst->value = sk_rmem_alloc_get(sk); in META_COLLECTOR()
408 dst->value = sk_wmem_alloc_get(sk); in META_COLLECTOR()
419 dst->value = atomic_read(&sk->sk_omem_alloc); in META_COLLECTOR()
430 dst->value = sk->sk_receive_queue.qlen; in META_COLLECTOR()
441 dst->value = sk->sk_write_queue.qlen; in META_COLLECTOR()
452 dst->value = READ_ONCE(sk->sk_wmem_queued); in META_COLLECTOR()
463 dst->value = sk_forward_alloc_get(sk); in META_COLLECTOR()
474 dst->value = sk->sk_sndbuf; in META_COLLECTOR()
485 dst->value = (__force int) sk->sk_allocation; in META_COLLECTOR()
494 dst->value = skb->sk->sk_hash; in META_COLLECTOR()
505 dst->value = READ_ONCE(sk->sk_lingertime) / HZ; in META_COLLECTOR()
516 dst->value = sk->sk_error_queue.qlen; in META_COLLECTOR()
527 dst->value = READ_ONCE(sk->sk_ack_backlog); in META_COLLECTOR()
538 dst->value = READ_ONCE(sk->sk_max_ack_backlog); in META_COLLECTOR()
549 dst->value = READ_ONCE(sk->sk_priority); in META_COLLECTOR()
560 dst->value = READ_ONCE(sk->sk_rcvlowat); in META_COLLECTOR()
571 dst->value = READ_ONCE(sk->sk_rcvtimeo) / HZ; in META_COLLECTOR()
582 dst->value = READ_ONCE(sk->sk_sndtimeo) / HZ; in META_COLLECTOR()
593 dst->value = sk->sk_frag.offset; in META_COLLECTOR()
604 dst->value = sk->sk_write_pending; in META_COLLECTOR()
695 static int meta_var_change(struct meta_value *dst, struct nlattr *nla) in meta_var_change() argument
699 dst->val = (unsigned long)kmemdup(nla_data(nla), len, GFP_KERNEL); in meta_var_change()
700 if (dst->val == 0UL) in meta_var_change()
702 dst->len = len; in meta_var_change()
712 struct meta_obj *dst) in meta_var_apply_extras() argument
716 if (shift && shift < dst->len) in meta_var_apply_extras()
717 dst->len -= shift; in meta_var_apply_extras()
748 static int meta_int_change(struct meta_value *dst, struct nlattr *nla) in meta_int_change() argument
751 dst->val = *(unsigned long *) nla_data(nla); in meta_int_change()
752 dst->len = sizeof(unsigned long); in meta_int_change()
754 dst->val = nla_get_u32(nla); in meta_int_change()
755 dst->len = sizeof(u32); in meta_int_change()
763 struct meta_obj *dst) in meta_int_apply_extras() argument
766 dst->value >>= v->hdr.shift; in meta_int_apply_extras()
769 dst->value &= v->val; in meta_int_apply_extras()
826 struct meta_value *v, struct meta_obj *dst) in meta_get() argument
831 dst->value = v->val; in meta_get()
832 dst->len = v->len; in meta_get()
836 meta_ops(v)->get(skb, info, v, dst, &err); in meta_get()
841 meta_type_ops(v)->apply_extras(v, dst); in meta_get()
885 static inline int meta_change_data(struct meta_value *dst, struct nlattr *nla) in meta_change_data() argument
891 return meta_type_ops(dst)->change(dst, nla); in meta_change_data()