Lines Matching refs:label
74 static inline struct ip6_flowlabel *__fl_lookup(struct net *net, __be32 label)
78 for_each_fl_rcu(FL_HASH(label), fl) {
79 if (fl->label == label && net_eq(fl->fl_net, net))
85 static struct ip6_flowlabel *fl_lookup(struct net *net, __be32 label)
90 fl = __fl_lookup(net, label);
214 struct ip6_flowlabel *fl, __be32 label)
218 fl->label = label & IPV6_FLOWLABEL_MASK;
222 if (label == 0) {
224 fl->label = htonl(get_random_u32())&IPV6_FLOWLABEL_MASK;
225 if (fl->label) {
226 lfl = __fl_lookup(net, fl->label);
238 * with the same label can only appear on another sock
240 lfl = __fl_lookup(net, fl->label);
250 fl->next = fl_ht[FL_HASH(fl->label)];
251 rcu_assign_pointer(fl_ht[FL_HASH(fl->label)], fl);
262 struct ip6_flowlabel *__fl6_sock_lookup(struct sock *sk, __be32 label)
267 label &= IPV6_FLOWLABEL_MASK;
273 if (fl->label == label && atomic_inc_not_zero(&fl->users)) {
524 if (sfl->fl->label == (np->flow_label & IPV6_FLOWLABEL_MASK)) {
526 freq->flr_label = sfl->fl->label;
565 if (sfl->fl->label == freq->flr_label)
589 if (sfl->fl->label == freq->flr_label) {
649 if (sfl->fl->label == freq->flr_label) {
713 if (copy_to_sockptr_offset(optval, offset, &fl->label,
714 sizeof(fl->label))) {
846 (unsigned int)ntohl(fl->label),