Home
last modified time | relevance | path

Searched refs:vxlan (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dvxlan.c84 mlx5_vxlan_lookup_port_locked(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_lookup_port_locked() argument
88 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) { in mlx5_vxlan_lookup_port_locked()
96 struct mlx5_vxlan_port *mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_lookup_port() argument
100 if (!mlx5_vxlan_allowed(vxlan)) in mlx5_vxlan_lookup_port()
103 spin_lock_bh(&vxlan->lock); in mlx5_vxlan_lookup_port()
104 vxlanp = mlx5_vxlan_lookup_port_locked(vxlan, port); in mlx5_vxlan_lookup_port()
105 spin_unlock_bh(&vxlan->lock); in mlx5_vxlan_lookup_port()
110 int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_add_port() argument
115 vxlanp = mlx5_vxlan_lookup_port(vxlan, port); in mlx5_vxlan_add_port()
121 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_add_port()
[all …]
Dvxlan.h40 static inline bool mlx5_vxlan_allowed(struct mlx5_vxlan *vxlan) in mlx5_vxlan_allowed() argument
45 return !IS_ERR_OR_NULL(vxlan); in mlx5_vxlan_allowed()
50 void mlx5_vxlan_destroy(struct mlx5_vxlan *vxlan);
51 int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port);
52 int mlx5_vxlan_del_port(struct mlx5_vxlan *vxlan, u16 port);
53 struct mlx5_vxlan_port *mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port);
57 static inline void mlx5_vxlan_destroy(struct mlx5_vxlan *vxlan) { return; } in mlx5_vxlan_destroy() argument
58 static inline int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port) { return -EOPNOTSUPP; } in mlx5_vxlan_add_port() argument
59 static inline int mlx5_vxlan_del_port(struct mlx5_vxlan *vxlan, u16 port) { return -EOPNOTSUPP; } in mlx5_vxlan_del_port() argument
61 mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) { return NULL; } in mlx5_vxlan_lookup_port() argument
/Linux-v5.4/drivers/net/
Dvxlan.c59 static int vxlan_sock_add(struct vxlan_dev *vxlan);
61 static void vxlan_vs_del_dev(struct vxlan_dev *vxlan);
215 if (node->vxlan->default_dst.remote_vni != vni) in vxlan_vs_find_vni()
219 const struct vxlan_config *cfg = &node->vxlan->cfg; in vxlan_vs_find_vni()
226 return node->vxlan; in vxlan_vs_find_vni()
247 static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan, in vxlan_fdb_info() argument
274 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
280 if (!net_eq(dev_net(vxlan->dev), vxlan->net) && in vxlan_fdb_info()
282 peernet2id(dev_net(vxlan->dev), vxlan->net))) in vxlan_fdb_info()
291 if (rdst->remote_port && rdst->remote_port != vxlan->cfg.dst_port && in vxlan_fdb_info()
[all …]
DMakefile29 obj-$(CONFIG_VXLAN) += vxlan.o
/Linux-v5.4/tools/testing/selftests/net/
Drtnetlink.sh429 vxlan="test-vxlan0"
433 ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \
441 ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan"
444 ip -netns "$testns" link set up dev "$vxlan"
447 ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1
451 ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 2>/dev/null
454 ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy" 2>/dev/null
457 ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit 2>/dev/null
460 ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64
463 ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning
[all …]
Dtest_vxlan_fdb_changelink.sh20 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
Dpmtu.sh451 setup_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1 "df set"
459 setup_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1
800 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 4
804 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 4
816 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 6
820 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 6
Dtest_vxlan_under_vrf.sh81 ip -netns hv-$hv link add vxlan0 type vxlan id 10 local 172.16.0.$hv dev veth0 dstport 4789
/Linux-v5.4/tools/testing/selftests/drivers/net/mlxsw/
Dvxlan.sh65 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \
82 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \
99 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \
117 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \
136 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \
153 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \
170 ip link add name vxlan0 up type vxlan id 10 learning noudpcsum \
188 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \
206 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \
224 ip link add name vxlan0 up type vxlan id 10 nolearning noudpcsum \
[all …]
Dextack.sh38 ip link add name vx1 up type vxlan id 1000 \
49 ip link add name vx2 up type vxlan id 2000 \
62 ip link set dev vx2 type vxlan ttl 200
86 ip link add name vx1 up type vxlan id 1000 \
116 ip link add name vx1 up type vxlan id 1000 \
Dvxlan_fdb_veto.sh29 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.4/Documentation/networking/
Dvxlan.txt19 The management of vxlan is done in a manner similar to its two closest
24 1. Create vxlan device
25 # ip link add vxlan0 type vxlan id 42 group 239.1.1.1 dev eth1 dstport 4789
35 2. Delete vxlan device
38 3. Show vxlan info
41 It is possible to create, destroy and display the vxlan
/Linux-v5.4/net/openvswitch/
Dvport-vxlan.c24 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()
DMakefile24 obj-$(CONFIG_OPENVSWITCH_VXLAN)+= vport-vxlan.o
/Linux-v5.4/tools/testing/selftests/net/forwarding/
Dvxlan_bridge_1q.sh164 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 …]
Dvxlan_bridge_1d.sh136 ip link add name vx1 type vxlan id 1000 \
210 ip link add name vx2 type vxlan id 1000 local $in_addr dstport "$VXPORT"
674 ip link set dev vx1 type vxlan ageing 10
675 ip link set dev vx1 type vxlan learning
768 ip link set dev vx1 type vxlan nolearning
769 ip link set dev vx1 type vxlan ageing 300
Dvxlan_symmetric.sh181 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 \
346 ip link add name vx10 type vxlan id 1010 \
354 ip link add name vx20 type vxlan id 1020 \
362 ip link add name vx4001 type vxlan id 104001 \
Dvxlan_asymmetric.sh171 ip link add name vx10 type vxlan id 1000 \
179 ip link add name vx20 type vxlan id 2000 \
315 ip link add name vx10 type vxlan id 1000 \
323 ip link add name vx20 type vxlan id 2000 \
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_sp_commands.c154 if (p_src->vxlan.b_update_mode || b_pf_start) in qed_set_pf_update_tunn_mode()
155 p_tun->vxlan.b_mode_enabled = p_src->vxlan.b_mode_enabled; in qed_set_pf_update_tunn_mode()
180 type = qed_tunn_clss_to_fw_clss(p_src->vxlan.tun_cls); in qed_set_tunn_cls_info()
181 p_tun->vxlan.tun_cls = type; in qed_set_tunn_cls_info()
238 &p_tun->vxlan, in qed_tunn_set_pf_update_params()
267 qed_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled); in qed_set_hw_tunn_mode()
303 &p_tun->vxlan, in qed_tunn_set_pf_start_params()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_nve_vxlan.c28 struct vxlan_dev *vxlan = netdev_priv(dev); in mlxsw_sp_nve_vxlan_can_offload() local
29 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_can_offload()
93 struct vxlan_dev *vxlan = netdev_priv(dev); in mlxsw_sp_nve_vxlan_config() local
94 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_config()
Dspectrum_switchdev.c1974 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_8021q_vxlan_join() local
1977 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021q_vxlan_join()
2178 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_8021d_vxlan_join() local
2181 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021d_vxlan_join()
2345 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_vxlan_leave() local
2349 fid = mlxsw_sp_fid_lookup_by_vni(mlxsw_sp, vxlan->cfg.vni); in mlxsw_sp_bridge_vxlan_leave()
2409 struct vxlan_dev *vxlan = netdev_priv(dev); in mlxsw_sp_fdb_vxlan_call_notifiers() local
2415 info.remote_port = vxlan->cfg.dst_port; in mlxsw_sp_fdb_vxlan_call_notifiers()
2606 struct vxlan_dev *vxlan = netdev_priv(dev); in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local
2608 if (!(vxlan->cfg.flags & VXLAN_F_LEARN)) in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_vxlan.c32 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.4/drivers/net/ethernet/cisco/enic/
Denic_main.c196 if (!(enic->vxlan.flags & ENIC_VXLAN_OUTER_IPV6)) { in enic_udp_tunnel_add()
207 if (enic->vxlan.vxlan_udp_port_number) { in enic_udp_tunnel_add()
208 if (ntohs(port) == enic->vxlan.vxlan_udp_port_number) in enic_udp_tunnel_add()
216 !(enic->vxlan.flags & ENIC_VXLAN_MULTI_WQ)) { in enic_udp_tunnel_add()
228 enic->vxlan.patch_level); in enic_udp_tunnel_add()
232 enic->vxlan.vxlan_udp_port_number = ntohs(port); in enic_udp_tunnel_add()
235 (int)enic->vxlan.patch_level, ntohs(port), ti->sa_family); in enic_udp_tunnel_add()
254 if ((ntohs(ti->port) != enic->vxlan.vxlan_udp_port_number) || in enic_udp_tunnel_del()
269 enic->vxlan.vxlan_udp_port_number = 0; in enic_udp_tunnel_del()
295 if (!(enic->vxlan.flags & ENIC_VXLAN_OUTER_IPV6)) in enic_features_check()
[all …]
/Linux-v5.4/net/netfilter/
Dnft_tunnel.c145 struct vxlan_metadata vxlan; member
242 opts->u.vxlan.gbp = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_VXLAN_GBP])); in nft_tunnel_obj_vxlan_init()
478 htonl(opts->u.vxlan.gbp))) in nft_tunnel_opts_dump()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
DMakefile47 mlx5_core-$(CONFIG_VXLAN) += lib/vxlan.o

12