/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
A D | vxlan.c | 78 if (!mlx5_vxlan_allowed(vxlan)) in mlx5_vxlan_lookup_port() 118 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_add_port() 130 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_del_port() 150 struct mlx5_vxlan *vxlan; in mlx5_vxlan_create() local 155 vxlan = kzalloc(sizeof(*vxlan), GFP_KERNEL); in mlx5_vxlan_create() 156 if (!vxlan) in mlx5_vxlan_create() 159 vxlan->mdev = mdev; in mlx5_vxlan_create() 160 mutex_init(&vxlan->sync_lock); in mlx5_vxlan_create() 161 hash_init(vxlan->htable); in mlx5_vxlan_create() 166 return vxlan; in mlx5_vxlan_create() [all …]
|
A 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 66 static inline bool mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) { return false; } in mlx5_vxlan_lookup_port() argument [all …]
|
/linux/drivers/net/ |
A D | vxlan.c | 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() 934 vxlan->addrcnt >= vxlan->cfg.addrmax) in vxlan_fdb_create() 1545 if (!netif_running(vxlan->dev) || vxlan == dev) in vxlan_group_used() 1876 !net_eq(vxlan->net, dev_net(vxlan->dev)))) in vxlan_rcv() 2620 vxlan_encap_bypass(skb, vxlan, vxlan, in vxlan_xmit_one() 3034 node->vxlan = vxlan; in vxlan_vs_add_dev() 3077 vxlan_fdb_delete_default(vxlan, vxlan->cfg.vni); in vxlan_uninit() 3563 vxlan->net, vxlan->cfg.remote_ifindex); in __vxlan_sock_add() 3568 vxlan->cfg.dst_port, vxlan->cfg.flags, in __vxlan_sock_add() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | rtnetlink.sh | 428 vxlan="test-vxlan0" 432 ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \ 450 ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 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 465 ip -netns "$testns" link set dev "$vxlan" type vxlan proxy 2>/dev/null 468 ip -netns "$testns" link set dev "$vxlan" type vxlan norsc 2>/dev/null 471 ip -netns "$testns" link set dev "$vxlan" type vxlan l2miss 2>/dev/null 474 ip -netns "$testns" link set dev "$vxlan" type vxlan l3miss 2>/dev/null 495 ip -netns "$testns" link set dev "$vxlan" type vxlan gbp 2>/dev/null [all …]
|
A 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
|
A 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
|
A D | pmtu.sh | 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 1190 test_pmtu_ipvX_over_bridged_vxlanY_or_geneveY_exception vxlan 4 4 1194 test_pmtu_ipvX_over_bridged_vxlanY_or_geneveY_exception vxlan 6 4 1206 test_pmtu_ipvX_over_bridged_vxlanY_or_geneveY_exception vxlan 4 6 1277 test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception vxlan 4 4 1281 test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception vxlan 6 4 1293 test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception vxlan 4 6 [all …]
|
/linux/Documentation/networking/ |
A 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/tools/testing/selftests/drivers/net/mlxsw/ |
A 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 \ 259 ip link add name vxlan0 up type vxlan id 10 nolearning udpcsum \ 889 ip link set dev vxlan10 type vxlan ttl 10 [all …]
|
A 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 \
|
A 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/net/openvswitch/ |
A 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()
|
A D | Makefile | 25 obj-$(CONFIG_OPENVSWITCH_VXLAN)+= vport-vxlan.o
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A 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() 146 const struct vxlan_dev *vxlan = netdev_priv(mirred_dev); in mlx5e_tc_tun_get_remote_ifindex() local 147 const struct vxlan_rdst *dst = &vxlan->default_dst; in mlx5e_tc_tun_get_remote_ifindex()
|
/linux/tools/testing/selftests/net/forwarding/ |
A 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 \ 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 842 ip link set dev vx10 type vxlan nolearning [all …]
|
A 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
|
A 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 \
|
A 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 \
|
A 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/drivers/net/ethernet/qlogic/qed/ |
A 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/drivers/net/ethernet/mellanox/mlxsw/ |
A 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()
|
A D | spectrum_switchdev.c | 2020 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_vlan_aware_vxlan_join() local 2023 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_vlan_aware_vxlan_join() 2198 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_8021d_vxlan_join() local 2201 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021d_vxlan_join() 2488 struct vxlan_dev *vxlan = netdev_priv(dev); in mlxsw_sp_fdb_vxlan_call_notifiers() local 2494 info.remote_port = vxlan->cfg.dst_port; in mlxsw_sp_fdb_vxlan_call_notifiers() 2689 struct vxlan_dev *vxlan = netdev_priv(dev); in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local 2691 if (!(vxlan->cfg.flags & VXLAN_F_LEARN)) in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() 3177 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_switchdev_vxlan_work_prepare() 3306 __be32 vni = vxlan->cfg.vni; in mlxsw_sp_switchdev_vxlan_vlan_add() [all …]
|
/linux/tools/testing/selftests/bpf/ |
A D | test_tc_tunnel.sh | 109 $0 ipv4 vxlan eth 2000 254 elif [[ "$tuntype" =~ (gre|vxlan) && "$mac" == "eth" ]]; then
|
/linux/drivers/net/ethernet/cisco/enic/ |
A D | enic_main.c | 195 enic->vxlan.patch_level); in enic_udp_tunnel_set_port() 199 enic->vxlan.vxlan_udp_port_number = ntohs(ti->port); in enic_udp_tunnel_set_port() 220 enic->vxlan.vxlan_udp_port_number = 0; in enic_udp_tunnel_unset_port() 260 if (!(enic->vxlan.flags & ENIC_VXLAN_OUTER_IPV6)) in enic_features_check() 273 if (!(enic->vxlan.flags & ENIC_VXLAN_INNER_IPV6)) in enic_features_check() 291 if (port != enic->vxlan.vxlan_udp_port_number) in enic_features_check() 1377 if (enic->vxlan.vxlan_udp_port_number) { in enic_rq_indicate_buf() 1378 switch (enic->vxlan.patch_level) { in enic_rq_indicate_buf() 2944 enic->vxlan.flags = (u8)a1; in enic_probe() 2950 enic->vxlan.patch_level = patch_level; in enic_probe() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
A D | q_in_vni_veto.sh | 39 ip link add name vx100 type vxlan id 1000 local 192.0.2.17 dstport \
|