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()
1460 struct vxlan_rdst *rdst = first_remote_rcu(f); in vxlan_snoop() local
1462 if (likely(vxlan_addr_equal(&rdst->remote_ip, src_ip) && in vxlan_snoop()
1463 rdst->remote_ifindex == ifindex)) in vxlan_snoop()
1477 src_mac, &rdst->remote_ip.sa, &src_ip->sa); in vxlan_snoop()
1479 rdst->remote_ip = *src_ip; in vxlan_snoop()
1481 vxlan_fdb_notify(vxlan, f, rdst, RTM_NEWNEIGH, true, NULL); in vxlan_snoop()
2334 __be32 default_vni, struct vxlan_rdst *rdst, bool did_rsc) in vxlan_xmit_one() argument
2367 if (rdst) { in vxlan_xmit_one()
2371 if (vxlan_addr_any(&rdst->remote_ip)) { in vxlan_xmit_one()
2382 dst_port = rdst->remote_port ? rdst->remote_port : vxlan->cfg.dst_port; in vxlan_xmit_one()
2383 vni = (rdst->remote_vni) ? : default_vni; in vxlan_xmit_one()
2384 ifindex = rdst->remote_ifindex; in vxlan_xmit_one()
2388 key.u.ipv4.dst = rdst->remote_ip.sin.sin_addr.s_addr; in vxlan_xmit_one()
2391 key.u.ipv6.dst = rdst->remote_ip.sin6.sin6_addr; in vxlan_xmit_one()
2394 dst_cache = &rdst->dst_cache; in vxlan_xmit_one()
2400 if (!ttl && vxlan_addr_multicast(&rdst->remote_ip)) in vxlan_xmit_one()
2690 struct vxlan_rdst *rdst, *fdst = NULL; in vxlan_xmit() local
2783 list_for_each_entry_rcu(rdst, &f->remotes, list) { in vxlan_xmit()
2787 fdst = rdst; in vxlan_xmit()
2792 vxlan_xmit_one(skb1, dev, vni, rdst, did_rsc); in vxlan_xmit()
4678 struct vxlan_rdst *rdst; in vxlan_fdb_offloaded_set() local
4690 rdst = vxlan_fdb_find_rdst(f, &fdb_info->remote_ip, in vxlan_fdb_offloaded_set()
4694 if (!rdst) in vxlan_fdb_offloaded_set()
4697 rdst->offloaded = fdb_info->offloaded; in vxlan_fdb_offloaded_set()