Lines Matching refs:fl4
775 struct flowi4 *fl4, in geneve_get_v4_rt() argument
788 memset(fl4, 0, sizeof(*fl4)); in geneve_get_v4_rt()
789 fl4->flowi4_mark = skb->mark; in geneve_get_v4_rt()
790 fl4->flowi4_proto = IPPROTO_UDP; in geneve_get_v4_rt()
791 fl4->daddr = info->key.u.ipv4.dst; in geneve_get_v4_rt()
792 fl4->saddr = info->key.u.ipv4.src; in geneve_get_v4_rt()
793 fl4->fl4_dport = dport; in geneve_get_v4_rt()
794 fl4->fl4_sport = sport; in geneve_get_v4_rt()
801 fl4->flowi4_tos = RT_TOS(tos); in geneve_get_v4_rt()
805 rt = dst_cache_get_ip4(dst_cache, &fl4->saddr); in geneve_get_v4_rt()
809 rt = ip_route_output_key(geneve->net, fl4); in geneve_get_v4_rt()
811 netdev_dbg(dev, "no route to %pI4\n", &fl4->daddr); in geneve_get_v4_rt()
815 netdev_dbg(dev, "circular route to %pI4\n", &fl4->daddr); in geneve_get_v4_rt()
820 dst_cache_set_ip4(dst_cache, &rt->dst, fl4->saddr); in geneve_get_v4_rt()
889 struct flowi4 fl4; in geneve_xmit_skb() local
899 rt = geneve_get_v4_rt(skb, dev, gs4, &fl4, info, in geneve_xmit_skb()
923 unclone->key.u.ipv4.dst = fl4.saddr; in geneve_xmit_skb()
924 unclone->key.u.ipv4.src = fl4.daddr; in geneve_xmit_skb()
944 tos = ip_tunnel_ecn_encap(fl4.flowi4_tos, ip_hdr(skb), skb); in geneve_xmit_skb()
971 udp_tunnel_xmit_skb(rt, gs4->sock->sk, skb, fl4.saddr, fl4.daddr, in geneve_xmit_skb()
1119 struct flowi4 fl4; in geneve_fill_metadata_dst() local
1125 rt = geneve_get_v4_rt(skb, dev, gs4, &fl4, info, in geneve_fill_metadata_dst()
1131 info->key.u.ipv4.src = fl4.saddr; in geneve_fill_metadata_dst()
1589 struct flowi4 fl4 = { .daddr = info->key.u.ipv4.dst }; in geneve_link_config() local
1590 struct rtable *rt = ip_route_output_key(geneve->net, &fl4); in geneve_link_config()