Lines Matching refs:rdst

200 			  const struct vxlan_rdst *rdst)  in vxlan_fdb_info()  argument
229 if (rdst) { in vxlan_fdb_info()
230 send_ip = !vxlan_addr_any(&rdst->remote_ip); in vxlan_fdb_info()
231 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
241 if (rdst && rdst->offloaded) in vxlan_fdb_info()
255 } else if (rdst) { in vxlan_fdb_info()
257 &rdst->remote_ip)) in vxlan_fdb_info()
260 if (rdst->remote_port && in vxlan_fdb_info()
261 rdst->remote_port != vxlan->cfg.dst_port && in vxlan_fdb_info()
262 nla_put_be16(skb, NDA_PORT, rdst->remote_port)) in vxlan_fdb_info()
264 if (rdst->remote_vni != vxlan->default_dst.remote_vni && in vxlan_fdb_info()
265 nla_put_u32(skb, NDA_VNI, be32_to_cpu(rdst->remote_vni))) in vxlan_fdb_info()
267 if (rdst->remote_ifindex && in vxlan_fdb_info()
268 nla_put_u32(skb, NDA_IFINDEX, rdst->remote_ifindex)) in vxlan_fdb_info()
514 struct vxlan_rdst *rdst; in vxlan_fdb_find_uc() local
532 rdst = first_remote_rcu(f); in vxlan_fdb_find_uc()
533 vxlan_fdb_switchdev_notifier_info(vxlan, f, rdst, NULL, fdb_info); in vxlan_fdb_find_uc()
544 const struct vxlan_rdst *rdst, in vxlan_fdb_notify_one() argument
550 vxlan_fdb_switchdev_notifier_info(vxlan, f, rdst, extack, &fdb_info); in vxlan_fdb_notify_one()
561 struct vxlan_rdst *rdst; in vxlan_fdb_replay() local
574 list_for_each_entry(rdst, &f->remotes, list) { in vxlan_fdb_replay()
576 f, rdst, in vxlan_fdb_replay()
596 struct vxlan_rdst *rdst; in vxlan_fdb_clear_offload() local
608 list_for_each_entry(rdst, &f->remotes, list) in vxlan_fdb_clear_offload()
609 rdst->offloaded = false; in vxlan_fdb_clear_offload()
1432 struct vxlan_rdst *rdst = first_remote_rcu(f); in vxlan_snoop() local
1434 if (likely(vxlan_addr_equal(&rdst->remote_ip, src_ip) && in vxlan_snoop()
1435 rdst->remote_ifindex == ifindex)) in vxlan_snoop()
1449 src_mac, &rdst->remote_ip.sa, &src_ip->sa); in vxlan_snoop()
1451 rdst->remote_ip = *src_ip; in vxlan_snoop()
1453 vxlan_fdb_notify(vxlan, f, rdst, RTM_NEWNEIGH, true, NULL); in vxlan_snoop()
2449 __be32 default_vni, struct vxlan_rdst *rdst, in vxlan_xmit_one() argument
2476 if (rdst) { in vxlan_xmit_one()
2477 dst = &rdst->remote_ip; in vxlan_xmit_one()
2488 dst_port = rdst->remote_port ? rdst->remote_port : vxlan->cfg.dst_port; in vxlan_xmit_one()
2489 vni = (rdst->remote_vni) ? : default_vni; in vxlan_xmit_one()
2490 ifindex = rdst->remote_ifindex; in vxlan_xmit_one()
2492 dst_cache = &rdst->dst_cache; in vxlan_xmit_one()
2755 struct vxlan_rdst *rdst, *fdst = NULL; in vxlan_xmit() local
2828 list_for_each_entry_rcu(rdst, &f->remotes, list) { in vxlan_xmit()
2832 fdst = rdst; in vxlan_xmit()
2837 vxlan_xmit_one(skb1, dev, vni, rdst, did_rsc); in vxlan_xmit()
4482 struct vxlan_rdst *rdst; in vxlan_fdb_offloaded_set() local
4494 rdst = vxlan_fdb_find_rdst(f, &fdb_info->remote_ip, in vxlan_fdb_offloaded_set()
4498 if (!rdst) in vxlan_fdb_offloaded_set()
4501 rdst->offloaded = fdb_info->offloaded; in vxlan_fdb_offloaded_set()