Lines Matching refs:rdst
153 const struct vxlan_rdst *rdst) in vxlan_fdb_info() argument
182 if (rdst) { in vxlan_fdb_info()
183 send_ip = !vxlan_addr_any(&rdst->remote_ip); in vxlan_fdb_info()
184 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
194 if (rdst && rdst->offloaded) in vxlan_fdb_info()
208 } else if (rdst) { in vxlan_fdb_info()
210 &rdst->remote_ip)) in vxlan_fdb_info()
213 if (rdst->remote_port && in vxlan_fdb_info()
214 rdst->remote_port != vxlan->cfg.dst_port && in vxlan_fdb_info()
215 nla_put_be16(skb, NDA_PORT, rdst->remote_port)) in vxlan_fdb_info()
217 if (rdst->remote_vni != vxlan->default_dst.remote_vni && in vxlan_fdb_info()
218 nla_put_u32(skb, NDA_VNI, be32_to_cpu(rdst->remote_vni))) in vxlan_fdb_info()
220 if (rdst->remote_ifindex && in vxlan_fdb_info()
221 nla_put_u32(skb, NDA_IFINDEX, rdst->remote_ifindex)) in vxlan_fdb_info()
466 struct vxlan_rdst *rdst; in vxlan_fdb_find_uc() local
484 rdst = first_remote_rcu(f); in vxlan_fdb_find_uc()
485 vxlan_fdb_switchdev_notifier_info(vxlan, f, rdst, NULL, fdb_info); in vxlan_fdb_find_uc()
496 const struct vxlan_rdst *rdst, in vxlan_fdb_notify_one() argument
502 vxlan_fdb_switchdev_notifier_info(vxlan, f, rdst, extack, &fdb_info); in vxlan_fdb_notify_one()
513 struct vxlan_rdst *rdst; in vxlan_fdb_replay() local
526 list_for_each_entry(rdst, &f->remotes, list) { in vxlan_fdb_replay()
528 f, rdst, in vxlan_fdb_replay()
548 struct vxlan_rdst *rdst; in vxlan_fdb_clear_offload() local
560 list_for_each_entry(rdst, &f->remotes, list) in vxlan_fdb_clear_offload()
561 rdst->offloaded = false; in vxlan_fdb_clear_offload()
1463 struct vxlan_rdst *rdst = first_remote_rcu(f); in vxlan_snoop() local
1465 if (likely(vxlan_addr_equal(&rdst->remote_ip, src_ip) && in vxlan_snoop()
1466 rdst->remote_ifindex == ifindex)) in vxlan_snoop()
1480 src_mac, &rdst->remote_ip.sa, &src_ip->sa); in vxlan_snoop()
1482 rdst->remote_ip = *src_ip; in vxlan_snoop()
1484 vxlan_fdb_notify(vxlan, f, rdst, RTM_NEWNEIGH, true, NULL); in vxlan_snoop()
2358 __be32 default_vni, struct vxlan_rdst *rdst, bool did_rsc) in vxlan_xmit_one() argument
2394 if (rdst) { in vxlan_xmit_one()
2398 if (vxlan_addr_any(&rdst->remote_ip)) { in vxlan_xmit_one()
2409 dst_port = rdst->remote_port ? rdst->remote_port : vxlan->cfg.dst_port; in vxlan_xmit_one()
2410 vni = (rdst->remote_vni) ? : default_vni; in vxlan_xmit_one()
2411 ifindex = rdst->remote_ifindex; in vxlan_xmit_one()
2415 key.u.ipv4.dst = rdst->remote_ip.sin.sin_addr.s_addr; in vxlan_xmit_one()
2418 key.u.ipv6.dst = rdst->remote_ip.sin6.sin6_addr; in vxlan_xmit_one()
2421 dst_cache = &rdst->dst_cache; in vxlan_xmit_one()
2427 if (!ttl && vxlan_addr_multicast(&rdst->remote_ip)) in vxlan_xmit_one()
2723 struct vxlan_rdst *rdst, *fdst = NULL; in vxlan_xmit() local
2816 list_for_each_entry_rcu(rdst, &f->remotes, list) { in vxlan_xmit()
2820 fdst = rdst; in vxlan_xmit()
2825 vxlan_xmit_one(skb1, dev, vni, rdst, did_rsc); in vxlan_xmit()
4711 struct vxlan_rdst *rdst; in vxlan_fdb_offloaded_set() local
4723 rdst = vxlan_fdb_find_rdst(f, &fdb_info->remote_ip, in vxlan_fdb_offloaded_set()
4727 if (!rdst) in vxlan_fdb_offloaded_set()
4730 rdst->offloaded = fdb_info->offloaded; in vxlan_fdb_offloaded_set()