H A D | vxlan_core.c | 31 #include <net/vxlan.h> 63 static int vxlan_sock_add(struct vxlan_dev *vxlan); 65 static void vxlan_vs_del_dev(struct vxlan_dev *vxlan); 114 if (!node->vxlan) in vxlan_vs_find_vni() 117 if (node->vxlan->cfg.flags & VXLAN_F_VNIFILTER) { in vxlan_vs_find_vni() 118 vnode = vxlan_vnifilter_lookup(node->vxlan, vni); in vxlan_vs_find_vni() 121 } else if (node->vxlan->default_dst.remote_vni != vni) { in vxlan_vs_find_vni() 126 const struct vxlan_config *cfg = &node->vxlan->cfg; in vxlan_vs_find_vni() 135 return node->vxlan; in vxlan_vs_find_vni() 156 static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan, in vxlan_fdb_info() argument 264 __vxlan_fdb_notify(struct vxlan_dev * vxlan,struct vxlan_fdb * fdb,struct vxlan_rdst * rd,int type) __vxlan_fdb_notify() argument 289 vxlan_fdb_switchdev_notifier_info(const struct vxlan_dev * vxlan,const struct vxlan_fdb * fdb,const struct vxlan_rdst * rd,struct netlink_ext_ack * extack,struct switchdev_notifier_vxlan_fdb_info * fdb_info) vxlan_fdb_switchdev_notifier_info() argument 307 vxlan_fdb_switchdev_call_notifiers(struct vxlan_dev * vxlan,struct vxlan_fdb * fdb,struct vxlan_rdst * rd,bool adding,struct netlink_ext_ack * extack) vxlan_fdb_switchdev_call_notifiers() argument 328 vxlan_fdb_notify(struct vxlan_dev * vxlan,struct vxlan_fdb * fdb,struct vxlan_rdst * rd,int type,bool swdev_notify,struct netlink_ext_ack * extack) vxlan_fdb_notify() argument 355 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_ip_miss() local 367 vxlan_fdb_miss(struct vxlan_dev * vxlan,const u8 eth_addr[ETH_ALEN]) vxlan_fdb_miss() argument 380 vxlan_find_mac_rcu(struct vxlan_dev * vxlan,const u8 * mac,__be32 vni) vxlan_find_mac_rcu() argument 396 vxlan_find_mac_tx(struct vxlan_dev * vxlan,const u8 * mac,__be32 vni) vxlan_find_mac_tx() argument 412 vxlan_find_mac(struct vxlan_dev * vxlan,const u8 * mac,__be32 vni) vxlan_find_mac() argument 447 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fdb_find_uc() local 477 vxlan_fdb_notify_one(struct notifier_block * nb,const struct vxlan_dev * vxlan,const struct vxlan_fdb * f,const struct vxlan_rdst * rdst,struct netlink_ext_ack * extack) vxlan_fdb_notify_one() argument 495 struct vxlan_dev *vxlan; vxlan_fdb_replay() local 526 struct vxlan_dev *vxlan; vxlan_fdb_clear_offload() local 770 vxlan_fdb_alloc(struct vxlan_dev * vxlan,const u8 * mac,__u16 state,__be32 src_vni,__u16 ndm_flags) vxlan_fdb_alloc() argument 793 vxlan_fdb_nh_update(struct vxlan_dev * vxlan,struct vxlan_fdb * fdb,u32 nhid,struct netlink_ext_ack * extack) vxlan_fdb_nh_update() argument 855 vxlan_fdb_create(struct vxlan_dev * vxlan,const u8 * mac,union vxlan_addr * ip,__u16 state,__be16 port,__be32 src_vni,__be32 vni,__u32 ifindex,__u16 ndm_flags,u32 nhid,struct vxlan_fdb ** fdb,struct netlink_ext_ack * extack) vxlan_fdb_create() argument 934 vxlan_fdb_destroy(struct vxlan_dev * vxlan,struct vxlan_fdb * f,bool do_notify,bool swdev_notify) vxlan_fdb_destroy() argument 967 vxlan_fdb_update_existing(struct vxlan_dev * vxlan,union vxlan_addr * ip,__u16 state,__u16 flags,__be16 port,__be32 vni,__u32 ifindex,__u16 ndm_flags,struct vxlan_fdb * f,u32 nhid,bool swdev_notify,struct netlink_ext_ack * extack) vxlan_fdb_update_existing() argument 1066 vxlan_fdb_update_create(struct vxlan_dev * vxlan,const u8 * mac,union vxlan_addr * ip,__u16 state,__u16 flags,__be16 port,__be32 src_vni,__be32 vni,__u32 ifindex,__u16 ndm_flags,u32 nhid,bool swdev_notify,struct netlink_ext_ack * extack) vxlan_fdb_update_create() argument 1102 vxlan_fdb_update(struct vxlan_dev * vxlan,const u8 * mac,union vxlan_addr * ip,__u16 state,__u16 flags,__be16 port,__be32 src_vni,__be32 vni,__u32 ifindex,__u16 ndm_flags,u32 nhid,bool swdev_notify,struct netlink_ext_ack * extack) vxlan_fdb_update() argument 1134 vxlan_fdb_dst_destroy(struct vxlan_dev * vxlan,struct vxlan_fdb * f,struct vxlan_rdst * rd,bool swdev_notify) vxlan_fdb_dst_destroy() argument 1142 vxlan_fdb_parse(struct nlattr * tb[],struct vxlan_dev * vxlan,union vxlan_addr * ip,__be16 * port,__be32 * src_vni,__be32 * vni,u32 * ifindex,u32 * nhid,struct netlink_ext_ack * extack) vxlan_fdb_parse() argument 1234 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fdb_add() local 1272 __vxlan_fdb_delete(struct vxlan_dev * vxlan,const unsigned char * addr,union vxlan_addr ip,__be16 port,__be32 src_vni,__be32 vni,u32 ifindex,bool swdev_notify) __vxlan_fdb_delete() argument 1311 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fdb_delete() local 1340 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fdb_dump() local 1392 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fdb_get() local 1426 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_snoop() local 1504 vxlan_sock_release(struct vxlan_dev * vxlan) vxlan_sock_release() argument 1586 vxlan_set_mac(struct vxlan_dev * vxlan,struct vxlan_sock * vs,struct sk_buff * skb,__be32 vni) vxlan_set_mac() argument 1647 struct vxlan_dev *vxlan; vxlan_rcv() local 1814 struct vxlan_dev *vxlan; vxlan_err_lookup() local 1841 struct vxlan_dev *vxlan = netdev_priv(dev); arp_reduce() local 2024 struct vxlan_dev *vxlan = netdev_priv(dev); neigh_reduce() local 2093 struct vxlan_dev *vxlan = netdev_priv(dev); route_shortcircuit() local 2290 encap_bypass_if_local(struct sk_buff * skb,struct net_device * dev,struct vxlan_dev * vxlan,int addr_family,__be16 dst_port,int dst_ifindex,__be32 vni,struct dst_entry * dst,u32 rt_flags) encap_bypass_if_local() argument 2335 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_xmit_one() local 2655 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_xmit_nhid() local 2699 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_xmit() local 2819 struct vxlan_dev *vxlan = timer_container_of(vxlan, t, age_timer); vxlan_cleanup() local 2855 vxlan_vs_del_dev(struct vxlan_dev * vxlan) vxlan_vs_del_dev() argument 2865 vxlan_vs_add_dev(struct vxlan_sock * vs,struct vxlan_dev * vxlan,struct vxlan_dev_node * node) vxlan_vs_add_dev() argument 2879 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_init() local 2915 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_uninit() local 2930 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_open() local 2963 vxlan_fdb_is_default_entry(const struct vxlan_fdb * f,const struct vxlan_dev * vxlan) vxlan_fdb_is_default_entry() argument 2977 vxlan_fdb_flush_matches(const struct vxlan_fdb * f,const struct vxlan_dev * vxlan,const struct vxlan_fdb_flush_desc * desc) vxlan_fdb_flush_matches() argument 3022 vxlan_fdb_flush_match_remotes(struct vxlan_fdb * f,struct vxlan_dev * vxlan,const struct vxlan_fdb_flush_desc * desc,bool * p_destroy_fdb) vxlan_fdb_flush_match_remotes() argument 3041 vxlan_flush(struct vxlan_dev * vxlan,const struct vxlan_fdb_flush_desc * desc) vxlan_flush() argument 3092 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fdb_delete_bulk() local 3156 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_stop() local 3181 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_change_mtu() local 3201 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fill_metadata_dst() local 3320 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_setup() local 3488 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_get_link_ksettings() local 3595 __vxlan_sock_add(struct vxlan_dev * vxlan,bool ipv6) __vxlan_sock_add() argument 3644 vxlan_sock_add(struct vxlan_dev * vxlan) vxlan_sock_add() argument 3667 vxlan_vni_in_use(struct net * src_net,struct vxlan_dev * vxlan,struct vxlan_config * conf,__be32 vni) vxlan_vni_in_use() argument 3856 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_config_apply() local 3911 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_dev_configure() local 3929 struct vxlan_dev *vxlan = netdev_priv(dev); __vxlan_dev_create() local 4028 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_nl2conf() local 4381 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_changelink() local 4474 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_dellink() local 4525 const struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fill_info() local 4635 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_get_link_net() local 4692 struct vxlan_dev *vxlan, *next; vxlan_handle_lowerdev_unregister() local 4735 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fdb_offloaded_set() local 4762 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fdb_external_learn_add() local 4787 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_fdb_external_learn_del() local 4853 struct vxlan_dev *vxlan; vxlan_fdb_nh_flush() local 4903 struct vxlan_dev *vxlan, *next; vxlan_destroy_tunnels() local [all...] |
H A D | vxlan_mdb.c | 14 #include <net/vxlan.h> 64 struct vxlan_dev *vxlan; member 97 static void vxlan_br_mdb_entry_fill(const struct vxlan_dev *vxlan, in vxlan_br_mdb_entry_fill() argument 105 e->ifindex = vxlan->dev->ifindex; in vxlan_br_mdb_entry_fill() 162 static int vxlan_mdb_entry_info_fill(const struct vxlan_dev *vxlan, in vxlan_mdb_entry_info_fill() argument 175 vxlan_br_mdb_entry_fill(vxlan, mdb_entry, remote, &e); in vxlan_mdb_entry_info_fill() 191 if (rd->remote_port && rd->remote_port != vxlan->cfg.dst_port && in vxlan_mdb_entry_info_fill() 196 if (rd->remote_vni != vxlan->default_dst.remote_vni && in vxlan_mdb_entry_info_fill() 204 if ((vxlan->cfg.flags & VXLAN_F_COLLECT_METADATA) && in vxlan_mdb_entry_info_fill() 218 static int vxlan_mdb_entry_fill(const struct vxlan_dev *vxlan, in vxlan_mdb_entry_fill() argument 248 vxlan_mdb_fill(const struct vxlan_dev * vxlan,struct sk_buff * skb,struct vxlan_mdb_dump_ctx * ctx) vxlan_mdb_fill() argument 280 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_mdb_dump() local 606 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_mdb_config_init() local 663 vxlan_mdb_entry_lookup(struct vxlan_dev * vxlan,const struct vxlan_mdb_entry_key * group) vxlan_mdb_entry_lookup() argument 743 vxlan_mdb_remote_fini(struct vxlan_dev * vxlan,struct vxlan_mdb_remote * remote) vxlan_mdb_remote_fini() argument 814 vxlan_mdb_remote_src_fwd_del(struct vxlan_dev * vxlan,const struct vxlan_mdb_entry_key * group,const struct vxlan_mdb_remote * remote,const union vxlan_addr * addr) vxlan_mdb_remote_src_fwd_del() argument 868 vxlan_mdb_remote_src_del(struct vxlan_dev * vxlan,const struct vxlan_mdb_entry_key * group,const struct vxlan_mdb_remote * remote,struct vxlan_mdb_src_entry * ent) vxlan_mdb_remote_src_del() argument 900 vxlan_mdb_remote_srcs_del(struct vxlan_dev * vxlan,const struct vxlan_mdb_entry_key * group,struct vxlan_mdb_remote * remote) vxlan_mdb_remote_srcs_del() argument 937 vxlan_mdb_nlmsg_remote_size(const struct vxlan_dev * vxlan,const struct vxlan_mdb_entry * mdb_entry,const struct vxlan_mdb_remote * remote) vxlan_mdb_nlmsg_remote_size() argument 977 vxlan_mdb_nlmsg_size(const struct vxlan_dev * vxlan,const struct vxlan_mdb_entry * mdb_entry,const struct vxlan_mdb_remote * remote) vxlan_mdb_nlmsg_size() argument 990 vxlan_mdb_nlmsg_fill(const struct vxlan_dev * vxlan,struct sk_buff * skb,const struct vxlan_mdb_entry * mdb_entry,const struct vxlan_mdb_remote * remote,int type) vxlan_mdb_nlmsg_fill() argument 1030 vxlan_mdb_remote_notify(const struct vxlan_dev * vxlan,const struct vxlan_mdb_entry * mdb_entry,const struct vxlan_mdb_remote * remote,int type) vxlan_mdb_remote_notify() argument 1062 struct vxlan_dev *vxlan = cfg->vxlan; vxlan_mdb_remote_srcs_replace() local 1094 struct vxlan_dev *vxlan = cfg->vxlan; vxlan_mdb_remote_replace() local 1168 vxlan_mdb_remote_del(struct vxlan_dev * vxlan,struct vxlan_mdb_entry * mdb_entry,struct vxlan_mdb_remote * remote) vxlan_mdb_remote_del() argument 1180 vxlan_mdb_entry_get(struct vxlan_dev * vxlan,const struct vxlan_mdb_entry_key * group) vxlan_mdb_entry_get() argument 1215 vxlan_mdb_entry_put(struct vxlan_dev * vxlan,struct vxlan_mdb_entry * mdb_entry) vxlan_mdb_entry_put() argument 1233 struct vxlan_dev *vxlan = cfg->vxlan; __vxlan_mdb_add() local 1257 struct vxlan_dev *vxlan = cfg->vxlan; __vxlan_mdb_del() local 1329 vxlan_mdb_flush_desc_init(struct vxlan_dev * vxlan,struct vxlan_mdb_flush_desc * desc,struct nlattr * tb[],struct netlink_ext_ack * extack) vxlan_mdb_flush_desc_init() argument 1387 vxlan_mdb_remotes_flush(struct vxlan_dev * vxlan,struct vxlan_mdb_entry * mdb_entry,const struct vxlan_mdb_flush_desc * desc) vxlan_mdb_remotes_flush() argument 1419 vxlan_mdb_flush(struct vxlan_dev * vxlan,const struct vxlan_mdb_flush_desc * desc) vxlan_mdb_flush() argument 1441 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_mdb_del_bulk() local 1469 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_mdb_get_parse() local 1501 vxlan_mdb_get_reply_alloc(const struct vxlan_dev * vxlan,const struct vxlan_mdb_entry * mdb_entry) vxlan_mdb_get_reply_alloc() argument 1521 vxlan_mdb_get_reply_fill(const struct vxlan_dev * vxlan,struct sk_buff * skb,const struct vxlan_mdb_entry * mdb_entry,u32 portid,u32 seq) vxlan_mdb_get_reply_fill() argument 1571 struct vxlan_dev *vxlan = netdev_priv(dev); vxlan_mdb_get() local 1606 vxlan_mdb_entry_skb_get(struct vxlan_dev * vxlan,struct sk_buff * skb,__be32 src_vni) vxlan_mdb_entry_skb_get() argument 1685 vxlan_mdb_xmit(struct vxlan_dev * vxlan,const struct vxlan_mdb_entry * mdb_entry,struct sk_buff * skb) vxlan_mdb_xmit() argument 1725 vxlan_mdb_init(struct vxlan_dev * vxlan) vxlan_mdb_init() argument 1738 vxlan_mdb_fini(struct vxlan_dev * vxlan) vxlan_mdb_fini() argument [all...] |