/linux-6.12.1/drivers/net/vxlan/ |
D | vxlan_multicast.c | 17 int vxlan_igmp_join(struct vxlan_dev *vxlan, union vxlan_addr *rip, in vxlan_igmp_join() argument 20 union vxlan_addr *ip = (rip ? : &vxlan->default_dst.remote_ip); in vxlan_igmp_join() 21 int ifindex = (rifindex ? : vxlan->default_dst.remote_ifindex); in vxlan_igmp_join() 26 struct vxlan_sock *sock4 = rtnl_dereference(vxlan->vn4_sock); in vxlan_igmp_join() 38 struct vxlan_sock *sock6 = rtnl_dereference(vxlan->vn6_sock); in vxlan_igmp_join() 51 int vxlan_igmp_leave(struct vxlan_dev *vxlan, union vxlan_addr *rip, in vxlan_igmp_leave() argument 54 union vxlan_addr *ip = (rip ? : &vxlan->default_dst.remote_ip); in vxlan_igmp_leave() 55 int ifindex = (rifindex ? : vxlan->default_dst.remote_ifindex); in vxlan_igmp_leave() 60 struct vxlan_sock *sock4 = rtnl_dereference(vxlan->vn4_sock); in vxlan_igmp_leave() 72 struct vxlan_sock *sock6 = rtnl_dereference(vxlan->vn6_sock); in vxlan_igmp_leave() [all …]
|
D | vxlan_core.c | 61 static int vxlan_sock_add(struct vxlan_dev *vxlan); 63 static void vxlan_vs_del_dev(struct vxlan_dev *vxlan); 108 if (!node->vxlan) in vxlan_vs_find_vni() 111 if (node->vxlan->cfg.flags & VXLAN_F_VNIFILTER) { in vxlan_vs_find_vni() 112 vnode = vxlan_vnifilter_lookup(node->vxlan, vni); in vxlan_vs_find_vni() 115 } else if (node->vxlan->default_dst.remote_vni != vni) { in vxlan_vs_find_vni() 120 const struct vxlan_config *cfg = &node->vxlan->cfg; in vxlan_vs_find_vni() 129 return node->vxlan; in vxlan_vs_find_vni() 150 static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan, in vxlan_fdb_info() argument 192 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info() [all …]
|
D | vxlan_vnifilter.c | 39 static void vxlan_vs_add_del_vninode(struct vxlan_dev *vxlan, in vxlan_vs_add_del_vninode() argument 43 struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id); in vxlan_vs_add_del_vninode() 59 vs = rtnl_dereference(vxlan->vn6_sock); in vxlan_vs_add_del_vninode() 65 vs = rtnl_dereference(vxlan->vn4_sock); in vxlan_vs_add_del_vninode() 74 void vxlan_vs_add_vnigrp(struct vxlan_dev *vxlan, in vxlan_vs_add_vnigrp() argument 78 struct vxlan_net *vn = net_generic(vxlan->net, vxlan_net_id); in vxlan_vs_add_vnigrp() 79 struct vxlan_vni_group *vg = rtnl_dereference(vxlan->vnigrp); in vxlan_vs_add_vnigrp() 94 node->vxlan = vxlan; in vxlan_vs_add_vnigrp() 100 void vxlan_vs_del_vnigrp(struct vxlan_dev *vxlan) in vxlan_vs_del_vnigrp() argument 102 struct vxlan_vni_group *vg = rtnl_dereference(vxlan->vnigrp); in vxlan_vs_del_vnigrp() [all …]
|
D | vxlan_mdb.c | 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 236 err = vxlan_mdb_entry_info_fill(vxlan, skb, mdb_entry, remote); in vxlan_mdb_entry_fill() [all …]
|
D | vxlan_private.h | 165 vxlan_vnifilter_lookup(struct vxlan_dev *vxlan, __be32 vni) in vxlan_vnifilter_lookup() argument 169 vg = rcu_dereference_rtnl(vxlan->vnigrp); in vxlan_vnifilter_lookup() 178 int vxlan_fdb_create(struct vxlan_dev *vxlan, 184 int __vxlan_fdb_delete(struct vxlan_dev *vxlan, 189 u32 fdb_head_index(struct vxlan_dev *vxlan, const u8 *mac, __be32 vni); 190 int vxlan_fdb_update(struct vxlan_dev *vxlan, 198 int vxlan_vni_in_use(struct net *src_net, struct vxlan_dev *vxlan, 202 int vxlan_vnigroup_init(struct vxlan_dev *vxlan); 203 void vxlan_vnigroup_uninit(struct vxlan_dev *vxlan); 207 void vxlan_vnifilter_count(struct vxlan_dev *vxlan, __be32 vni, [all …]
|
D | Makefile | 5 obj-$(CONFIG_VXLAN) += vxlan.o 7 vxlan-objs := vxlan_core.o vxlan_multicast.o vxlan_vnifilter.o vxlan_mdb.o
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | vxlan.c | 72 bool mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_lookup_port() argument 77 if (!mlx5_vxlan_allowed(vxlan)) in mlx5_vxlan_lookup_port() 81 hash_for_each_possible_rcu(vxlan->htable, vxlanp, hlist, port) in mlx5_vxlan_lookup_port() 91 static struct mlx5_vxlan_port *vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) in vxlan_lookup_port() argument 95 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) in vxlan_lookup_port() 101 int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_add_port() argument 111 ret = mlx5_vxlan_core_add_port_cmd(vxlan->mdev, port); in mlx5_vxlan_add_port() 117 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_add_port() 118 hash_add_rcu(vxlan->htable, &vxlanp->hlist, port); in mlx5_vxlan_add_port() 119 mutex_unlock(&vxlan->sync_lock); in mlx5_vxlan_add_port() [all …]
|
D | vxlan.h | 45 static inline bool mlx5_vxlan_allowed(struct mlx5_vxlan *vxlan) in mlx5_vxlan_allowed() argument 50 return !IS_ERR_OR_NULL(vxlan); in mlx5_vxlan_allowed() 55 void mlx5_vxlan_destroy(struct mlx5_vxlan *vxlan); 56 int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port); 57 int mlx5_vxlan_del_port(struct mlx5_vxlan *vxlan, u16 port); 58 bool mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port); 59 void mlx5_vxlan_reset_to_default(struct mlx5_vxlan *vxlan); 63 static inline void mlx5_vxlan_destroy(struct mlx5_vxlan *vxlan) { return; } in mlx5_vxlan_destroy() argument 64 static inline int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port) { return -EOPNOTSUPP; } in mlx5_vxlan_add_port() argument 65 static inline int mlx5_vxlan_del_port(struct mlx5_vxlan *vxlan, u16 port) { return -EOPNOTSUPP; } in mlx5_vxlan_del_port() argument [all …]
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | rtnetlink.sh | 441 vxlan="test-vxlan0" 443 run_cmd ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \ 450 run_cmd ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan" 451 run_cmd ip -netns "$testns" link set up dev "$vxlan" 452 run_cmd ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1 455 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 456 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy" 457 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit 459 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64 460 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning [all …]
|
D | l2_tos_ttl_inherit.sh | 125 local vxlan="" 127 vxlan="vni 100 dstport 4789" 142 $vxlan $geneve 145 $vxlan $geneve 156 ttl $test_ttl $vxlan $geneve 159 ttl $test_ttl $vxlan $geneve 413 for type in gre vxlan geneve; do
|
D | test_vxlan_fdb_changelink.sh | 20 ip link add name vx up type vxlan id 2000 dstport 4789 25 ip link set dev vx type vxlan remote 192.0.2.30
|
D | test_vxlan_nolocalbypass.sh | 105 ip -n $ns1 link add name vx0 up type vxlan id 100 local 198.51.100.1 \ 107 ip -n $ns1 link add name vx1 up type vxlan id 100 dstport 4790 220 ip link help vxlan 2>&1 | grep -q "localbypass"
|
D | udpgro_fwd.sh | 68 ip -n $netns link add dev $vxlan_dev type vxlan id $vxlan_id \ 80 create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V4$((3 - $ns)) vxlan$ns 4 81 ip -n $BASE$ns addr add dev vxlan$ns $OL_NET_V4$ns/24 200 VXDEV=vxlan
|
D | pmtu.sh | 639 setup_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1 "df set" 647 setup_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1 "" 655 setup_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1 "df set" "br0" 663 setup_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1 "" "br0" 938 setup_ovs_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1 946 setup_ovs_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1 1338 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 4 1342 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 4 1354 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 6 1358 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 6 [all …]
|
/linux-6.12.1/Documentation/networking/ |
D | vxlan.rst | 22 The management of vxlan is done in a manner similar to its two closest 27 1. Create vxlan device:: 29 # ip link add vxlan0 type vxlan id 42 group 239.1.1.1 dev eth1 dstport 4789 39 2. Delete vxlan device:: 43 3. Show vxlan info:: 47 It is possible to create, destroy and display the vxlan 82 Types: vxlan 86 Types: geneve, vxlan-gpe 88 port 1230, vxlan-gpe
|
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/ |
D | vxlan_ipv6.sh | 27 ip link add name vxlan0 up type vxlan id 10 learning $UDPCSUM_FLAFS \ 44 ip link add name vxlan0 up type vxlan id 10 nolearning \ 53 ip link add name vxlan0 up type vxlan id 10 nolearning \ 65 source vxlan.sh
|
D | vxlan.sh | 91 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ 108 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ 125 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ 143 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ 162 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ 179 ip link add name vxlan0 up type vxlan id 10 learning $UDPCSUM_FLAFS \ 197 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ 215 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ 233 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ 250 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ [all …]
|
D | extack.sh | 41 ip link add name vx1 up type vxlan id 1000 \ 54 ip link add name vx2 up type vxlan id 2000 \ 67 ip link set dev vx2 type vxlan ttl 200 93 ip link add name vx1 up type vxlan id 1000 \ 121 ip link add name vx1 up type vxlan id 1000 \
|
D | vxlan_fdb_veto.sh | 44 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \ 122 ip link set dev vxlan0 type vxlan \ 126 ip link set dev vxlan0 type vxlan \
|
/linux-6.12.1/net/openvswitch/ |
D | vport-vxlan.c | 24 struct vxlan_dev *vxlan = netdev_priv(vport->dev); in vxlan_get_options() local 25 __be16 dst_port = vxlan->cfg.dst_port; in vxlan_get_options() 30 if (vxlan->cfg.flags & VXLAN_F_GBP) { in vxlan_get_options() 37 if (vxlan->cfg.flags & VXLAN_F_GBP && in vxlan_get_options()
|
/linux-6.12.1/tools/testing/selftests/net/forwarding/ |
D | vxlan_bridge_1q.sh | 164 ip link add name vx10 type vxlan id 1000 \ 172 ip link add name vx20 type vxlan id 2000 \ 274 ip link add name vx10 type vxlan id 1000 local $in_addr \ 285 ip link add name vx20 type vxlan id 2000 local $in_addr \ 801 ip link set dev vx10 type vxlan ageing 30 802 ip link set dev vx10 type vxlan learning 803 ip link set dev vx20 type vxlan ageing 30 804 ip link set dev vx20 type vxlan learning 820 ip link set dev vx20 type vxlan nolearning 821 ip link set dev vx20 type vxlan ageing 300 [all …]
|
D | vxlan_bridge_1d.sh | 136 ip link add name vx1 type vxlan id 1000 \ 210 ip link add name vx2 type vxlan id 1000 local $in_addr dstport "$VXPORT" 685 ip link set dev vx1 type vxlan ageing 30 686 ip link set dev vx1 type vxlan learning 779 ip link set dev vx1 type vxlan nolearning 780 ip link set dev vx1 type vxlan ageing 300
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_vxlan.c | 33 if (!mlx5_vxlan_lookup_port(priv->mdev->vxlan, in mlx5e_tc_tun_check_udp_dport_vxlan() 70 if (!mlx5_vxlan_lookup_port(priv->mdev->vxlan, dst_port)) { in mlx5e_tc_tun_init_encap_attr_vxlan() 217 const struct vxlan_dev *vxlan = netdev_priv(mirred_dev); in mlx5e_tc_tun_get_remote_ifindex() local 218 const struct vxlan_rdst *dst = &vxlan->default_dst; in mlx5e_tc_tun_get_remote_ifindex()
|
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/ |
D | qed_sp_commands.c | 130 if (p_src->vxlan.b_update_mode || b_pf_start) in qed_set_pf_update_tunn_mode() 131 p_tun->vxlan.b_mode_enabled = p_src->vxlan.b_mode_enabled; in qed_set_pf_update_tunn_mode() 156 type = qed_tunn_clss_to_fw_clss(p_src->vxlan.tun_cls); in qed_set_tunn_cls_info() 157 p_tun->vxlan.tun_cls = type; in qed_set_tunn_cls_info() 214 &p_tun->vxlan, in qed_tunn_set_pf_update_params() 243 qed_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled); in qed_set_hw_tunn_mode() 279 &p_tun->vxlan, in qed_tunn_set_pf_start_params()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_nve_vxlan.c | 62 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_can_offload() local 63 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_can_offload() 151 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_config() local 152 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_config()
|