Lines Matching refs:sfl

69 #define for_each_sk_fl_rcu(np, sfl)				\  argument
70 for (sfl = rcu_dereference(np->ipv6_fl_list); \
71 sfl != NULL; \
72 sfl = rcu_dereference(sfl->next))
264 struct ipv6_fl_socklist *sfl; in __fl6_sock_lookup() local
270 for_each_sk_fl_rcu(np, sfl) { in __fl6_sock_lookup()
271 struct ip6_flowlabel *fl = sfl->fl; in __fl6_sock_lookup()
287 struct ipv6_fl_socklist *sfl; in fl6_free_socklist() local
293 while ((sfl = rcu_dereference_protected(np->ipv6_fl_list, in fl6_free_socklist()
295 np->ipv6_fl_list = sfl->next; in fl6_free_socklist()
298 fl_release(sfl->fl); in fl6_free_socklist()
299 kfree_rcu(sfl, rcu); in fl6_free_socklist()
474 struct ipv6_fl_socklist *sfl; in mem_check() local
482 for_each_sk_fl_rcu(np, sfl) in mem_check()
495 static inline void fl_link(struct ipv6_pinfo *np, struct ipv6_fl_socklist *sfl, in fl_link() argument
499 sfl->fl = fl; in fl_link()
500 sfl->next = np->ipv6_fl_list; in fl_link()
501 rcu_assign_pointer(np->ipv6_fl_list, sfl); in fl_link()
509 struct ipv6_fl_socklist *sfl; in ipv6_flowlabel_opt_get() local
523 for_each_sk_fl_rcu(np, sfl) { in ipv6_flowlabel_opt_get()
524 if (sfl->fl->label == (np->flow_label & IPV6_FLOWLABEL_MASK)) { in ipv6_flowlabel_opt_get()
526 freq->flr_label = sfl->fl->label; in ipv6_flowlabel_opt_get()
527 freq->flr_dst = sfl->fl->dst; in ipv6_flowlabel_opt_get()
528 freq->flr_share = sfl->fl->share; in ipv6_flowlabel_opt_get()
529 freq->flr_expires = (sfl->fl->expires - jiffies) / HZ; in ipv6_flowlabel_opt_get()
530 freq->flr_linger = sfl->fl->linger / HZ; in ipv6_flowlabel_opt_get()
549 struct ipv6_fl_socklist *sfl; in ipv6_flowlabel_put() local
563 (sfl = socklist_dereference(*sflp)) != NULL; in ipv6_flowlabel_put()
564 sflp = &sfl->next) { in ipv6_flowlabel_put()
565 if (sfl->fl->label == freq->flr_label) in ipv6_flowlabel_put()
573 *sflp = sfl->next; in ipv6_flowlabel_put()
575 fl_release(sfl->fl); in ipv6_flowlabel_put()
576 kfree_rcu(sfl, rcu); in ipv6_flowlabel_put()
584 struct ipv6_fl_socklist *sfl; in ipv6_flowlabel_renew() local
588 for_each_sk_fl_rcu(np, sfl) { in ipv6_flowlabel_renew()
589 if (sfl->fl->label == freq->flr_label) { in ipv6_flowlabel_renew()
590 err = fl6_renew(sfl->fl, freq->flr_linger, in ipv6_flowlabel_renew()
615 struct ipv6_fl_socklist *sfl, *sfl1 = NULL; in ipv6_flowlabel_get() local
648 for_each_sk_fl_rcu(np, sfl) { in ipv6_flowlabel_get()
649 if (sfl->fl->label == freq->flr_label) { in ipv6_flowlabel_get()
654 fl1 = sfl->fl; in ipv6_flowlabel_get()