/net/ipv6/ |
D | ip6_flowlabel.c | 60 #define for_each_fl_rcu(hash, fl) \ argument 61 for (fl = rcu_dereference_bh(fl_ht[(hash)]); \ 62 fl != NULL; \ 63 fl = rcu_dereference_bh(fl->next)) 64 #define for_each_fl_continue_rcu(fl) \ argument 65 for (fl = rcu_dereference_bh(fl->next); \ 66 fl != NULL; \ 67 fl = rcu_dereference_bh(fl->next)) 76 struct ip6_flowlabel *fl; in __fl_lookup() local 78 for_each_fl_rcu(FL_HASH(label), fl) { in __fl_lookup() [all …]
|
D | xfrm6_state.c | 25 __xfrm6_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_init_tempsel() argument 27 const struct flowi6 *fl6 = &fl->u.ip6; in __xfrm6_init_tempsel() 33 sel->dport = xfrm_flowi_dport(fl, &fl6->uli); in __xfrm6_init_tempsel() 35 sel->sport = xfrm_flowi_sport(fl, &fl6->uli); in __xfrm6_init_tempsel()
|
D | ip6_vti.c | 445 vti6_xmit(struct sk_buff *skb, struct net_device *dev, struct flowi *fl) in vti6_xmit() argument 461 fl->u.ip4.flowi4_oif = dev->ifindex; in vti6_xmit() 462 fl->u.ip4.flowi4_flags |= FLOWI_FLAG_ANYSRC; in vti6_xmit() 463 rt = __ip_route_output_key(dev_net(dev), &fl->u.ip4); in vti6_xmit() 471 fl->u.ip6.flowi6_oif = dev->ifindex; in vti6_xmit() 472 fl->u.ip6.flowi6_flags |= FLOWI_FLAG_ANYSRC; in vti6_xmit() 473 dst = ip6_route_output(dev_net(dev), NULL, &fl->u.ip6); in vti6_xmit() 487 dst = xfrm_lookup(t->net, dst, fl, NULL, 0); in vti6_xmit() 561 struct flowi fl; in vti6_tnl_xmit() local 564 memset(&fl, 0, sizeof(fl)); in vti6_tnl_xmit() [all …]
|
D | xfrm6_policy.c | 74 static int xfrm6_get_tos(const struct flowi *fl) in xfrm6_get_tos() argument 93 const struct flowi *fl) in xfrm6_fill_dst() argument 121 _decode_session6(struct sk_buff *skb, struct flowi *fl, int reverse) in _decode_session6() argument 123 struct flowi6 *fl6 = &fl->u.ip6; in _decode_session6()
|
D | mip6.c | 209 const struct flowi *fl) in mip6_destopt_reject() argument 213 const struct flowi6 *fl6 = &fl->u.ip6; in mip6_destopt_reject() 247 sel.dport = xfrm_flowi_dport(fl, &fl6->uli); in mip6_destopt_reject() 250 sel.sport = xfrm_flowi_sport(fl, &fl6->uli); in mip6_destopt_reject()
|
D | netfilter.c | 116 struct flowi *fl, bool strict) in nf_ip6_route() argument 128 result = ip6_route_output(net, sk, &fl->u.ip6); in nf_ip6_route()
|
/net/ceph/ |
D | ceph_fs.c | 31 void ceph_file_layout_from_legacy(struct ceph_file_layout *fl, in ceph_file_layout_from_legacy() argument 34 fl->stripe_unit = le32_to_cpu(legacy->fl_stripe_unit); in ceph_file_layout_from_legacy() 35 fl->stripe_count = le32_to_cpu(legacy->fl_stripe_count); in ceph_file_layout_from_legacy() 36 fl->object_size = le32_to_cpu(legacy->fl_object_size); in ceph_file_layout_from_legacy() 37 fl->pool_id = le32_to_cpu(legacy->fl_pg_pool); in ceph_file_layout_from_legacy() 38 if (fl->pool_id == 0 && fl->stripe_unit == 0 && in ceph_file_layout_from_legacy() 39 fl->stripe_count == 0 && fl->object_size == 0) in ceph_file_layout_from_legacy() 40 fl->pool_id = -1; in ceph_file_layout_from_legacy() 44 void ceph_file_layout_to_legacy(struct ceph_file_layout *fl, in ceph_file_layout_to_legacy() argument 47 legacy->fl_stripe_unit = cpu_to_le32(fl->stripe_unit); in ceph_file_layout_to_legacy() [all …]
|
/net/l3mdev/ |
D | l3mdev.c | 140 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match() argument 148 dev = dev_get_by_index_rcu(net, fl->flowi_oif); in l3mdev_fib_rule_match() 156 dev = dev_get_by_index_rcu(net, fl->flowi_iif); in l3mdev_fib_rule_match() 170 void l3mdev_update_flow(struct net *net, struct flowi *fl) in l3mdev_update_flow() argument 177 if (fl->flowi_oif) { in l3mdev_update_flow() 178 dev = dev_get_by_index_rcu(net, fl->flowi_oif); in l3mdev_update_flow() 182 fl->flowi_oif = ifindex; in l3mdev_update_flow() 183 fl->flowi_flags |= FLOWI_FLAG_SKIP_NH_OIF; in l3mdev_update_flow() 189 if (fl->flowi_iif) { in l3mdev_update_flow() 190 dev = dev_get_by_index_rcu(net, fl->flowi_iif); in l3mdev_update_flow() [all …]
|
/net/xfrm/ |
D | xfrm_policy.c | 72 __xfrm4_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_selector_match() argument 74 const struct flowi4 *fl4 = &fl->u.ip4; in __xfrm4_selector_match() 78 !((xfrm_flowi_dport(fl, &fl4->uli) ^ sel->dport) & sel->dport_mask) && in __xfrm4_selector_match() 79 !((xfrm_flowi_sport(fl, &fl4->uli) ^ sel->sport) & sel->sport_mask) && in __xfrm4_selector_match() 85 __xfrm6_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_selector_match() argument 87 const struct flowi6 *fl6 = &fl->u.ip6; in __xfrm6_selector_match() 91 !((xfrm_flowi_dport(fl, &fl6->uli) ^ sel->dport) & sel->dport_mask) && in __xfrm6_selector_match() 92 !((xfrm_flowi_sport(fl, &fl6->uli) ^ sel->sport) & sel->sport_mask) && in __xfrm6_selector_match() 97 bool xfrm_selector_match(const struct xfrm_selector *sel, const struct flowi *fl, in xfrm_selector_match() argument 102 return __xfrm4_selector_match(sel, fl); in xfrm_selector_match() [all …]
|
D | xfrm_interface.c | 302 xfrmi_xmit2(struct sk_buff *skb, struct net_device *dev, struct flowi *fl) in xfrmi_xmit2() argument 317 dst = xfrm_lookup_with_ifid(xi->net, dst, fl, NULL, 0, xi->p.if_id); in xfrmi_xmit2() 388 struct flowi fl; in xfrmi_xmit() local 391 memset(&fl, 0, sizeof(fl)); in xfrmi_xmit() 395 xfrm_decode_session(skb, &fl, AF_INET6); in xfrmi_xmit() 399 xfrm_decode_session(skb, &fl, AF_INET); in xfrmi_xmit() 406 fl.flowi_oif = xi->phydev->ifindex; in xfrmi_xmit() 408 ret = xfrmi_xmit2(skb, dev, &fl); in xfrmi_xmit()
|
/net/netfilter/ |
D | nft_rt.c | 31 struct flowi fl; in get_tcpmss() local 33 memset(&fl, 0, sizeof(fl)); in get_tcpmss() 37 fl.u.ip4.daddr = ip_hdr(skb)->saddr; in get_tcpmss() 41 fl.u.ip6.daddr = ipv6_hdr(skb)->saddr; in get_tcpmss() 50 ai->route(nft_net(pkt), &dst, &fl, false); in get_tcpmss()
|
D | xt_TCPMSS.c | 50 struct flowi fl; in tcpmss_reverse_mtu() local 56 struct flowi4 *fl4 = &fl.u.ip4; in tcpmss_reverse_mtu() 60 struct flowi6 *fl6 = &fl.u.ip6; in tcpmss_reverse_mtu() 67 ai->route(net, (struct dst_entry **)&rt, &fl, false); in tcpmss_reverse_mtu()
|
D | nf_nat_core.c | 59 static void __nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl) in __nf_nat_decode_session() argument 83 l3proto->decode_session(skb, ct, dir, statusbit, fl); in __nf_nat_decode_session() 88 struct flowi fl; in nf_xfrm_me_harder() local 93 err = xfrm_decode_session(skb, &fl, family); in nf_xfrm_me_harder() 103 dst = xfrm_lookup(net, dst, &fl, skb->sk, 0); in nf_xfrm_me_harder()
|
/net/ipv4/ |
D | ip_vti.c | 200 struct flowi *fl) in vti_xmit() argument 215 fl->u.ip4.flowi4_oif = dev->ifindex; in vti_xmit() 216 fl->u.ip4.flowi4_flags |= FLOWI_FLAG_ANYSRC; in vti_xmit() 217 rt = __ip_route_output_key(dev_net(dev), &fl->u.ip4); in vti_xmit() 228 fl->u.ip6.flowi6_oif = dev->ifindex; in vti_xmit() 229 fl->u.ip6.flowi6_flags |= FLOWI_FLAG_ANYSRC; in vti_xmit() 230 dst = ip6_route_output(dev_net(dev), NULL, &fl->u.ip6); in vti_xmit() 247 dst = xfrm_lookup(tunnel->net, dst, fl, NULL, 0); in vti_xmit() 317 struct flowi fl; in vti_tunnel_xmit() local 319 memset(&fl, 0, sizeof(fl)); in vti_tunnel_xmit() [all …]
|
D | xfrm4_state.c | 26 __xfrm4_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_init_tempsel() argument 28 const struct flowi4 *fl4 = &fl->u.ip4; in __xfrm4_init_tempsel() 32 sel->dport = xfrm_flowi_dport(fl, &fl4->uli); in __xfrm4_init_tempsel() 34 sel->sport = xfrm_flowi_sport(fl, &fl4->uli); in __xfrm4_init_tempsel()
|
D | ip_gre.c | 451 struct flowi4 *fl, in gre_get_rt() argument 456 memset(fl, 0, sizeof(*fl)); in gre_get_rt() 457 fl->daddr = key->u.ipv4.dst; in gre_get_rt() 458 fl->saddr = key->u.ipv4.src; in gre_get_rt() 459 fl->flowi4_tos = RT_TOS(key->tos); in gre_get_rt() 460 fl->flowi4_mark = skb->mark; in gre_get_rt() 461 fl->flowi4_proto = IPPROTO_GRE; in gre_get_rt() 463 return ip_route_output_key(net, fl); in gre_get_rt() 468 struct flowi4 *fl, in prepare_fb_xmit() argument 483 rt = dst_cache_get_ip4(&tun_info->dst_cache, &fl->saddr); in prepare_fb_xmit() [all …]
|
D | xfrm4_policy.c | 72 static int xfrm4_get_tos(const struct flowi *fl) in xfrm4_get_tos() argument 74 return IPTOS_RT_MASK & fl->u.ip4.flowi4_tos; /* Strip ECN bits */ in xfrm4_get_tos() 84 const struct flowi *fl) in xfrm4_fill_dst() argument 87 const struct flowi4 *fl4 = &fl->u.ip4; in xfrm4_fill_dst() 111 _decode_session4(struct sk_buff *skb, struct flowi *fl, int reverse) in _decode_session4() argument 116 struct flowi4 *fl4 = &fl->u.ip4; in _decode_session4()
|
D | netfilter.c | 180 struct flowi *fl, bool strict __always_unused) in nf_ip_route() argument 182 struct rtable *rt = ip_route_output_key(net, &fl->u.ip4); in nf_ip_route()
|
/net/core/ |
D | fib_rules.c | 224 struct flowi *fl, int flags, in fib_rule_match() argument 229 if (rule->iifindex && (rule->iifindex != fl->flowi_iif)) in fib_rule_match() 232 if (rule->oifindex && (rule->oifindex != fl->flowi_oif)) in fib_rule_match() 235 if ((rule->mark ^ fl->flowi_mark) & rule->mark_mask) in fib_rule_match() 238 if (rule->tun_id && (rule->tun_id != fl->flowi_tun_key.tun_id)) in fib_rule_match() 241 if (rule->l3mdev && !l3mdev_fib_rule_match(rule->fr_net, fl, arg)) in fib_rule_match() 244 if (uid_lt(fl->flowi_uid, rule->uid_range.start) || in fib_rule_match() 245 uid_gt(fl->flowi_uid, rule->uid_range.end)) in fib_rule_match() 248 ret = ops->match(rule, fl, flags); in fib_rule_match() 253 int fib_rules_lookup(struct fib_rules_ops *ops, struct flowi *fl, in fib_rules_lookup() argument [all …]
|
D | net-procfs.c | 153 struct sd_flow_limit *fl; in softnet_seq_show() local 156 fl = rcu_dereference(sd->flow_limit); in softnet_seq_show() 157 if (fl) in softnet_seq_show() 158 flow_limit_count = fl->count; in softnet_seq_show()
|
/net/rxrpc/ |
D | peer_object.c | 162 struct flowi fl; in rxrpc_assess_MTU_size() local 163 struct flowi4 *fl4 = &fl.u.ip4; in rxrpc_assess_MTU_size() 165 struct flowi6 *fl6 = &fl.u.ip6; in rxrpc_assess_MTU_size() 170 memset(&fl, 0, sizeof(fl)); in rxrpc_assess_MTU_size()
|
/net/sched/ |
D | sch_prio.c | 40 struct tcf_proto *fl; in prio_classify() local 45 fl = rcu_dereference_bh(q->filter_list); in prio_classify() 46 err = tcf_classify(skb, fl, &res, false); in prio_classify() 57 if (!fl || err < 0) { in prio_classify()
|
D | sch_sfb.c | 258 static bool sfb_classify(struct sk_buff *skb, struct tcf_proto *fl, in sfb_classify() argument 264 result = tcf_classify(skb, fl, &res, false); in sfb_classify() 288 struct tcf_proto *fl; in sfb_enqueue() local 314 fl = rcu_dereference_bh(q->filter_list); in sfb_enqueue() 315 if (fl) { in sfb_enqueue() 319 if (!sfb_classify(skb, fl, &ret, &salt)) in sfb_enqueue()
|
/net/sctp/ |
D | transport.c | 246 &transport->fl, sk); in sctp_transport_pmtu() 282 t->af_specific->get_dst(t, &t->saddr, &t->fl, sk); in sctp_transport_update_pmtu() 305 af->get_dst(transport, saddr, &transport->fl, sctp_opt2sk(opt)); in sctp_transport_route() 310 af->get_saddr(opt, transport, &transport->fl); in sctp_transport_route()
|
/net/decnet/ |
D | dn_rules.c | 108 static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) in dn_fib_rule_match() argument 111 struct flowidn *fld = &fl->u.dn; in dn_fib_rule_match()
|