Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/net/vxlan/
A Dvxlan_multicast.c107 &vxlan->default_dst.remote_ip, in vxlan_group_used_by_vnifilter()
108 vxlan->default_dst.remote_ifindex)) in vxlan_group_used_by_vnifilter()
117 vxlan->default_dst.remote_ifindex)) in vxlan_group_used_by_vnifilter()
130 struct vxlan_dev *vxlan; in vxlan_group_used() local
152 if (!netif_running(vxlan->dev) || vxlan == dev) in vxlan_group_used()
168 &vxlan->default_dst.remote_ip, in vxlan_group_used()
190 &vxlan->default_dst.remote_ip)) in vxlan_multicast_join_vnigrp()
205 &vxlan->default_dst.remote_ip)) in vxlan_multicast_join_vnigrp()
241 ret = vxlan_igmp_join(vxlan, &vxlan->default_dst.remote_ip, in vxlan_multicast_join()
249 if (vxlan->cfg.flags & VXLAN_F_VNIFILTER) in vxlan_multicast_join()
[all …]
A Dvxlan_core.c245 if (!net_eq(dev_net(vxlan->dev), vxlan->net) && in vxlan_fdb_info()
247 peernet2id(dev_net(vxlan->dev), vxlan->net))) in vxlan_fdb_info()
869 vxlan->addrcnt >= vxlan->cfg.addrmax) in vxlan_fdb_create()
1711 !net_eq(vxlan->net, dev_net(vxlan->dev)))) in vxlan_rcv()
2478 vxlan_encap_bypass(skb, vxlan, vxlan, in vxlan_xmit_one()
2605 vxlan_encap_bypass(skb, vxlan, vxlan, vni, false); in vxlan_xmit_one()
2904 node->vxlan = vxlan; in vxlan_vs_add_dev()
2960 vxlan_fdb_delete_default(vxlan, vxlan->cfg.vni); in vxlan_uninit()
3440 vxlan->net, vxlan->cfg.remote_ifindex); in __vxlan_sock_add()
3445 vxlan->cfg.dst_port, vxlan->cfg.flags, in __vxlan_sock_add()
[all …]
A Dvxlan_vnifilter.c94 node->vxlan = vxlan; in vxlan_vs_add_vnigrp()
491 vxlan->cfg.dst_port, in vxlan_update_default_fdb_entry()
505 vxlan->cfg.dst_port, in vxlan_update_default_fdb_entry()
629 vxlan->cfg.dst_port, in vxlan_vni_delete_group()
708 vninode->hlist4.vxlan = vxlan; in vxlan_vni_alloc()
710 vninode->hlist6.vxlan = vxlan; in vxlan_vni_alloc()
729 err = vxlan_vni_in_use(vxlan->net, vxlan, &vxlan->cfg, v); in vxlan_vni_add()
749 if (vxlan->dev->flags & IFF_UP) in vxlan_vni_add()
799 if (vxlan->dev->flags & IFF_UP) in vxlan_vni_del()
941 struct vxlan_dev *vxlan; in vxlan_vnifilter_process() local
[all …]
A Dvxlan_private.h103 vg = rcu_dereference_rtnl(vxlan->vnigrp); in vxlan_vnifilter_lookup()
112 int vxlan_fdb_create(struct vxlan_dev *vxlan,
118 int __vxlan_fdb_delete(struct vxlan_dev *vxlan,
124 int vxlan_fdb_update(struct vxlan_dev *vxlan,
134 int vxlan_vnigroup_init(struct vxlan_dev *vxlan);
135 void vxlan_vnigroup_uninit(struct vxlan_dev *vxlan);
143 void vxlan_vs_add_vnigrp(struct vxlan_dev *vxlan,
146 void vxlan_vs_del_vnigrp(struct vxlan_dev *vxlan);
147 int vxlan_vnilist_update_group(struct vxlan_dev *vxlan,
154 int vxlan_multicast_join(struct vxlan_dev *vxlan);
[all …]
A DMakefile5 obj-$(CONFIG_VXLAN) += vxlan.o
7 vxlan-objs := vxlan_core.o vxlan_multicast.o vxlan_vnifilter.o
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dvxlan.c77 if (!mlx5_vxlan_allowed(vxlan)) in mlx5_vxlan_lookup_port()
117 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_add_port()
129 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_del_port()
149 struct mlx5_vxlan *vxlan; in mlx5_vxlan_create() local
154 vxlan = kzalloc(sizeof(*vxlan), GFP_KERNEL); in mlx5_vxlan_create()
155 if (!vxlan) in mlx5_vxlan_create()
158 vxlan->mdev = mdev; in mlx5_vxlan_create()
159 mutex_init(&vxlan->sync_lock); in mlx5_vxlan_create()
160 hash_init(vxlan->htable); in mlx5_vxlan_create()
165 return vxlan; in mlx5_vxlan_create()
[all …]
A 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
66 static inline bool mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) { return false; } in mlx5_vxlan_lookup_port() argument
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/
A Drtnetlink.sh428 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 Dl2_tos_ttl_inherit.sh125 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
A 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
A Dudpgro_fwd.sh62 ip -n $netns link add dev $vxlan_dev type vxlan id $vxlan_id \
74 create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V4$((3 - $ns)) vxlan$ns 4
75 ip -n $BASE$ns addr add dev vxlan$ns $OL_NET_V4$ns/24
188 VXDEV=vxlan
A Dpmtu.sh1250 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 4
1254 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 4
1266 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 6
1270 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 6
1334 test_pmtu_ipvX_over_bridged_vxlanY_or_geneveY_exception vxlan 4 4
1338 test_pmtu_ipvX_over_bridged_vxlanY_or_geneveY_exception vxlan 6 4
1350 test_pmtu_ipvX_over_bridged_vxlanY_or_geneveY_exception vxlan 4 6
1421 test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception vxlan 4 4
1425 test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception vxlan 6 4
1437 test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception vxlan 4 6
[all …]
/linux-6.3-rc2/Documentation/networking/
A 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
/linux-6.3-rc2/tools/testing/selftests/drivers/net/mlxsw/
A Dvxlan_ipv6.sh27 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
A Dvxlan.sh91 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 \
179 ip link add name vxlan0 up type vxlan id 10 learning $UDPCSUM_FLAFS \
267 ip link add name vxlan0 up type vxlan id 10 nolearning udpcsum \
455 ip link add name vxlan0 up master br0 type vxlan id 10 nolearning \
457 ip link add name vxlan1 up master br1 type vxlan id 20 nolearning \
671 ip link add name vxlan0 up master br0 type vxlan id 10 nolearning \
896 ip link set dev vxlan10 type vxlan ttl 10
[all …]
A 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 \
A Dvxlan_fdb_veto.sh44 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.3-rc2/net/openvswitch/
A 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()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
A 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()
148 const struct vxlan_dev *vxlan = netdev_priv(mirred_dev); in mlx5e_tc_tun_get_remote_ifindex() local
149 const struct vxlan_rdst *dst = &vxlan->default_dst; in mlx5e_tc_tun_get_remote_ifindex()
/linux-6.3-rc2/tools/testing/selftests/net/forwarding/
A 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 \
801 ip link set dev vx10 type vxlan ageing 10
802 ip link set dev vx10 type vxlan learning
803 ip link set dev vx20 type vxlan ageing 10
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
822 ip link set dev vx10 type vxlan nolearning
[all …]
A 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"
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 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 \
A Dvxlan_symmetric_ipv6.sh183 ip link add name vx10 type vxlan id 1010 \
191 ip link add name vx20 type vxlan id 1020 \
205 ip link add name vx4001 type vxlan id 104001 \
353 ip link add name vx10 type vxlan id 1010 \
361 ip link add name vx20 type vxlan id 1020 \
369 ip link add name vx4001 type vxlan id 104001 \
/linux-6.3-rc2/drivers/net/ethernet/qlogic/qed/
A Dqed_sp_commands.c130 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.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_nve_vxlan.c60 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_can_offload() local
61 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_can_offload()
149 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_config() local
150 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_config()

Completed in 48 milliseconds

123