/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | vxlan.c | 73 bool mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_lookup_port() argument 78 if (!mlx5_vxlan_allowed(vxlan)) in mlx5_vxlan_lookup_port() 82 hash_for_each_possible_rcu(vxlan->htable, vxlanp, hlist, port) in mlx5_vxlan_lookup_port() 92 static struct mlx5_vxlan_port *vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) in vxlan_lookup_port() argument 96 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) in vxlan_lookup_port() 102 int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_add_port() argument 112 ret = mlx5_vxlan_core_add_port_cmd(vxlan->mdev, port); in mlx5_vxlan_add_port() 118 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_add_port() 119 hash_add_rcu(vxlan->htable, &vxlanp->hlist, port); in mlx5_vxlan_add_port() 120 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-v5.15/drivers/net/ |
D | vxlan.c | 60 static int vxlan_sock_add(struct vxlan_dev *vxlan); 62 static void vxlan_vs_del_dev(struct vxlan_dev *vxlan); 225 if (node->vxlan->default_dst.remote_vni != vni) in vxlan_vs_find_vni() 229 const struct vxlan_config *cfg = &node->vxlan->cfg; in vxlan_vs_find_vni() 236 return node->vxlan; in vxlan_vs_find_vni() 257 static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan, in vxlan_fdb_info() argument 299 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info() 305 if (!net_eq(dev_net(vxlan->dev), vxlan->net) && in vxlan_fdb_info() 307 peernet2id(dev_net(vxlan->dev), vxlan->net))) in vxlan_fdb_info() 321 rdst->remote_port != vxlan->cfg.dst_port && in vxlan_fdb_info() [all …]
|
/Linux-v5.15/tools/testing/selftests/net/ |
D | rtnetlink.sh | 428 vxlan="test-vxlan0" 432 ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \ 440 ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan" 443 ip -netns "$testns" link set up dev "$vxlan" 446 ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1 450 ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 2>/dev/null 453 ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy" 2>/dev/null 456 ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit 2>/dev/null 459 ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64 462 ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning [all …]
|
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 | udpgro_fwd.sh | 61 ip -n $netns link add dev $vxlan_dev type vxlan id $vxlan_id \ 73 create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V4$((3 - $ns)) vxlan$ns 4 74 ip -n $BASE$ns addr add dev vxlan$ns $OL_NET_V4$ns/24 187 VXDEV=vxlan
|
D | pmtu.sh | 619 setup_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1 "df set" 627 setup_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1 "" 635 setup_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1 "df set" "br0" 643 setup_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1 "" "br0" 832 setup_ovs_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1 840 setup_ovs_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1 1106 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 4 1110 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 4 1122 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 6 1126 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 6 [all …]
|
/Linux-v5.15/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
|
D | index.rst | 112 vxlan
|
/Linux-v5.15/tools/testing/selftests/drivers/net/mlxsw/ |
D | vxlan.sh | 66 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ 83 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ 100 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ 118 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ 137 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ 154 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ 171 ip link add name vxlan0 up type vxlan id 10 learning noudpcsum \ 189 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ 207 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ 225 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ [all …]
|
D | extack.sh | 39 ip link add name vx1 up type vxlan id 1000 \ 50 ip link add name vx2 up type vxlan id 2000 \ 63 ip link set dev vx2 type vxlan ttl 200 87 ip link add name vx1 up type vxlan id 1000 \ 115 ip link add name vx1 up type vxlan id 1000 \
|
D | vxlan_fdb_veto.sh | 29 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \ 107 ip link set dev vxlan0 type vxlan \ 111 ip link set dev vxlan0 type vxlan \
|
/Linux-v5.15/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()
|
D | Makefile | 25 obj-$(CONFIG_OPENVSWITCH_VXLAN)+= vport-vxlan.o
|
/Linux-v5.15/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 \ 821 ip link set dev vx10 type vxlan ageing 10 822 ip link set dev vx10 type vxlan learning 823 ip link set dev vx20 type vxlan ageing 10 824 ip link set dev vx20 type vxlan learning 840 ip link set dev vx20 type vxlan nolearning 841 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 10 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
|
D | vxlan_symmetric.sh | 181 ip link add name vx10 type vxlan id 1010 \ 189 ip link add name vx20 type vxlan id 1020 \ 205 ip link add name vx4001 type vxlan id 104001 \ 352 ip link add name vx10 type vxlan id 1010 \ 360 ip link add name vx20 type vxlan id 1020 \ 368 ip link add name vx4001 type vxlan id 104001 \
|
D | dual_vxlan_bridge.sh | 151 ip link add name vx100 type vxlan id 1000 local 192.0.2.17 \ 163 ip link add name vx200 type vxlan id 2000 local 192.0.2.17 \ 248 ip link add name $vxlan_name type vxlan id $vxlan_id local $in_addr \
|
D | vxlan_asymmetric.sh | 171 ip link add name vx10 type vxlan id 1000 \ 179 ip link add name vx20 type vxlan id 2000 \ 321 ip link add name vx10 type vxlan id 1000 \ 329 ip link add name vx20 type vxlan id 2000 \
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/ |
D | qed_sp_commands.c | 128 if (p_src->vxlan.b_update_mode || b_pf_start) in qed_set_pf_update_tunn_mode() 129 p_tun->vxlan.b_mode_enabled = p_src->vxlan.b_mode_enabled; in qed_set_pf_update_tunn_mode() 154 type = qed_tunn_clss_to_fw_clss(p_src->vxlan.tun_cls); in qed_set_tunn_cls_info() 155 p_tun->vxlan.tun_cls = type; in qed_set_tunn_cls_info() 212 &p_tun->vxlan, in qed_tunn_set_pf_update_params() 241 qed_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled); in qed_set_hw_tunn_mode() 277 &p_tun->vxlan, in qed_tunn_set_pf_start_params()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_nve_vxlan.c | 20 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_can_offload() local 21 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_can_offload() 97 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_config() local 98 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_config()
|
D | spectrum_switchdev.c | 2023 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_vlan_aware_vxlan_join() local 2026 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_vlan_aware_vxlan_join() 2201 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_8021d_vxlan_join() local 2204 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021d_vxlan_join() 2437 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_vxlan_leave() local 2441 fid = mlxsw_sp_fid_lookup_by_vni(mlxsw_sp, vxlan->cfg.vni); in mlxsw_sp_bridge_vxlan_leave() 2491 struct vxlan_dev *vxlan = netdev_priv(dev); in mlxsw_sp_fdb_vxlan_call_notifiers() local 2497 info.remote_port = vxlan->cfg.dst_port; in mlxsw_sp_fdb_vxlan_call_notifiers() 2692 struct vxlan_dev *vxlan = netdev_priv(dev); in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local 2694 if (!(vxlan->cfg.flags & VXLAN_F_LEARN)) in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_vxlan.c | 32 if (!mlx5_vxlan_lookup_port(priv->mdev->vxlan, in mlx5e_tc_tun_check_udp_dport_vxlan() 69 if (!mlx5_vxlan_lookup_port(priv->mdev->vxlan, dst_port)) { in mlx5e_tc_tun_init_encap_attr_vxlan()
|
/Linux-v5.15/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
D | q_in_vni_veto.sh | 39 ip link add name vx100 type vxlan id 1000 local 192.0.2.17 dstport \
|
/Linux-v5.15/tools/testing/selftests/bpf/ |
D | test_tc_tunnel.sh | 109 $0 ipv4 vxlan eth 2000 254 elif [[ "$tuntype" =~ (gre|vxlan) && "$mac" == "eth" ]]; then
|