Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dvxlan.c73 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 …]
Dvxlan.h45 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 …]
/kernel/linux/linux-5.10/drivers/net/
Dvxlan.c60 static int vxlan_sock_add(struct vxlan_dev *vxlan);
62 static void vxlan_vs_del_dev(struct vxlan_dev *vxlan);
224 if (node->vxlan->default_dst.remote_vni != vni) in vxlan_vs_find_vni()
228 const struct vxlan_config *cfg = &node->vxlan->cfg; in vxlan_vs_find_vni()
235 return node->vxlan; in vxlan_vs_find_vni()
256 static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan, in vxlan_fdb_info() argument
298 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
304 if (!net_eq(dev_net(vxlan->dev), vxlan->net) && in vxlan_fdb_info()
306 peernet2id(dev_net(vxlan->dev), vxlan->net))) in vxlan_fdb_info()
320 rdst->remote_port != vxlan->cfg.dst_port && in vxlan_fdb_info()
[all …]
DMakefile32 obj-$(CONFIG_VXLAN) += vxlan.o
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Drtnetlink.sh428 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 …]
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.sh591 setup_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1 "df set"
599 setup_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1 ""
607 setup_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1 "df set" "br0"
615 setup_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1 "" "br0"
766 setup_ovs_vxlan_or_geneve vxlan ${prefix4}.${a_r1}.1 ${prefix4}.${b_r1}.1
774 setup_ovs_vxlan_or_geneve vxlan ${prefix6}:${a_r1}::1 ${prefix6}:${b_r1}::1
1034 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 4
1038 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 4
1050 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 6
1054 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 6
[all …]
/kernel/linux/linux-5.10/Documentation/networking/
Dvxlan.rst22 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
Dindex.rst108 vxlan
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dvxlan.sh66 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 …]
Dextack.sh39 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 \
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 \
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/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 \
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 \
Dvxlan_asymmetric.sh171 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 \
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_sp_commands.c128 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()
/kernel/linux/linux-5.10/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.c2010 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_8021q_vxlan_join() local
2013 .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()
2315 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_vxlan_leave() local
2319 fid = mlxsw_sp_fid_lookup_by_vni(mlxsw_sp, vxlan->cfg.vni); in mlxsw_sp_bridge_vxlan_leave()
2369 struct vxlan_dev *vxlan = netdev_priv(dev); in mlxsw_sp_fdb_vxlan_call_notifiers() local
2375 info.remote_port = vxlan->cfg.dst_port; in mlxsw_sp_fdb_vxlan_call_notifiers()
2570 struct vxlan_dev *vxlan = netdev_priv(dev); in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local
2572 if (!(vxlan->cfg.flags & VXLAN_F_LEARN)) in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/
Denic_main.c195 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()
1376 if (enic->vxlan.vxlan_udp_port_number) { in enic_rq_indicate_buf()
1377 switch (enic->vxlan.patch_level) { in enic_rq_indicate_buf()
2947 enic->vxlan.flags = (u8)a1; in enic_probe()
2953 enic->vxlan.patch_level = patch_level; in enic_probe()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnft_tunnel.c145 struct vxlan_metadata vxlan; member
243 opts->u.vxlan.gbp = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_VXLAN_GBP])); in nft_tunnel_obj_vxlan_init()
562 htonl(opts->u.vxlan.gbp))) in nft_tunnel_opts_dump()
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/netdevsim/
Dudp_tunnel_nic.sh62 ip $ipfl link add $dev type vxlan \
328 modprobe -r vxlan
359 modprobe -r vxlan

12