| /linux-6.15/drivers/net/vxlan/ |
| H A D | vxlan_multicast.c | 107 &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 …]
|
| H A D | vxlan_core.c | 199 if (!net_eq(dev_net(vxlan->dev), vxlan->net) && in vxlan_fdb_info() 201 peernet2id(dev_net(vxlan->dev), vxlan->net))) in vxlan_fdb_info() 901 vxlan->addrcnt >= vxlan->cfg.addrmax) in vxlan_fdb_create() 1741 !net_eq(vxlan->net, dev_net(vxlan->dev)))) { in vxlan_rcv() 2400 vxlan_encap_bypass(skb, vxlan, vxlan, in vxlan_xmit_one() 2534 vxlan_encap_bypass(skb, vxlan, vxlan, vni, false); in vxlan_xmit_one() 2894 node->vxlan = vxlan; in vxlan_vs_add_dev() 2954 vxlan_fdb_delete_default(vxlan, vxlan->cfg.vni); in vxlan_uninit() 3638 vxlan->net, vxlan->cfg.remote_ifindex); in __vxlan_sock_add() 3643 vxlan->cfg.dst_port, vxlan->cfg.flags, in __vxlan_sock_add() [all …]
|
| H A D | vxlan_vnifilter.c | 94 node->vxlan = vxlan; in vxlan_vs_add_vnigrp() 496 vxlan->cfg.dst_port, in vxlan_update_default_fdb_entry() 510 vxlan->cfg.dst_port, in vxlan_update_default_fdb_entry() 638 vxlan->cfg.dst_port, in vxlan_vni_delete_group() 719 vninode->hlist4.vxlan = vxlan; in vxlan_vni_alloc() 721 vninode->hlist6.vxlan = vxlan; in vxlan_vni_alloc() 746 err = vxlan_vni_in_use(vxlan->net, vxlan, &vxlan->cfg, v); in vxlan_vni_add() 766 if (vxlan->dev->flags & IFF_UP) in vxlan_vni_add() 815 if (vxlan->dev->flags & IFF_UP) in vxlan_vni_del() 957 struct vxlan_dev *vxlan; in vxlan_vnifilter_process() local [all …]
|
| H A D | vxlan_mdb.c | 64 struct vxlan_dev *vxlan; member 304 cb->seq = vxlan->mdb_seq; in vxlan_mdb_dump() 609 cfg->vxlan = vxlan; in vxlan_mdb_config_init() 795 sg_cfg.vxlan = cfg->vxlan; in vxlan_mdb_remote_src_fwd_add() 823 sg_cfg.vxlan = vxlan; in vxlan_mdb_remote_src_fwd_del() 1062 struct vxlan_dev *vxlan = cfg->vxlan; in vxlan_mdb_remote_srcs_replace() local 1094 struct vxlan_dev *vxlan = cfg->vxlan; in vxlan_mdb_remote_replace() local 1233 struct vxlan_dev *vxlan = cfg->vxlan; in __vxlan_mdb_add() local 1245 vxlan->mdb_seq++; in __vxlan_mdb_add() 1257 struct vxlan_dev *vxlan = cfg->vxlan; in __vxlan_mdb_del() local [all …]
|
| H A D | vxlan_private.h | 169 vg = rcu_dereference_rtnl(vxlan->vnigrp); in vxlan_vnifilter_lookup() 178 int vxlan_fdb_create(struct vxlan_dev *vxlan, 184 int __vxlan_fdb_delete(struct vxlan_dev *vxlan, 190 int vxlan_fdb_update(struct vxlan_dev *vxlan, 202 int vxlan_vnigroup_init(struct vxlan_dev *vxlan); 211 void vxlan_vs_add_vnigrp(struct vxlan_dev *vxlan, 214 void vxlan_vs_del_vnigrp(struct vxlan_dev *vxlan); 222 int vxlan_multicast_join(struct vxlan_dev *vxlan); 223 int vxlan_multicast_leave(struct vxlan_dev *vxlan); 248 int vxlan_mdb_init(struct vxlan_dev *vxlan); [all …]
|
| H A D | Makefile | 5 obj-$(CONFIG_VXLAN) += vxlan.o 7 vxlan-objs := vxlan_core.o vxlan_multicast.o vxlan_vnifilter.o vxlan_mdb.o
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | vxlan.c | 77 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 …]
|
| H 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-6.15/Documentation/networking/ |
| H 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-6.15/tools/testing/selftests/net/ |
| H A D | rtnetlink.sh | 443 vxlan="test-vxlan0" 457 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 461 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64 462 run_cmd ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning 464 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan proxy 465 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan norsc 466 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l2miss 467 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan l3miss 469 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan udpcsum 474 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gbp [all …]
|
| H A D | test_vxlan_fdb_changelink.sh | 24 ip_link_add vx up type vxlan id 2000 dstport 4789 29 ip link set dev vx type vxlan remote 192.0.2.30 50 ip link set dev vx type vxlan $(fmt_remote $remote) dev v1 82 ip_link_add vx up type vxlan dstport 4789 \
|
| H A D | l2_tos_ttl_inherit.sh | 125 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
|
| H A D | test_vxlan_nolocalbypass.sh | 105 ip -n $ns1 link add name vx0 up type vxlan id 100 local 198.51.100.1 \ 107 ip -n $ns1 link add name vx1 up type vxlan id 100 dstport 4790 220 ip link help vxlan 2>&1 | grep -q "localbypass"
|
| H A D | fdb_notify.sh | 51 ip_link_add vx up type vxlan id 2000 dstport 4789 61 ip_link_add vx up type vxlan id 2000 dstport 4789
|
| H A D | udpgro_fwd.sh | 68 ip -n $netns link add dev $vxlan_dev type vxlan id $vxlan_id \ 80 create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V4$((3 - $ns)) vxlan$ns 4 81 ip -n $BASE$ns addr add dev vxlan$ns $OL_NET_V4$ns/24 200 VXDEV=vxlan
|
| /linux-6.15/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | vxlan_ipv6.sh | 27 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
|
| H A D | vxlan.sh | 91 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 \ 459 ip link add name vxlan0 up master br0 type vxlan id 10 nolearning \ 461 ip link add name vxlan1 up master br1 type vxlan id 20 nolearning \ 679 ip link add name vxlan0 up master br0 type vxlan id 10 nolearning \ 909 ip link set dev vxlan10 type vxlan ttl 10 [all …]
|
| H A D | extack.sh | 41 ip link add name vx1 up type vxlan id 1000 \ 54 ip link add name vx2 up type vxlan id 2000 \ 67 ip link set dev vx2 type vxlan ttl 200 93 ip link add name vx1 up type vxlan id 1000 \ 121 ip link add name vx1 up type vxlan id 1000 \
|
| H A D | vxlan_fdb_veto.sh | 44 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.15/net/openvswitch/ |
| H 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()
|
| /linux-6.15/tools/testing/selftests/net/forwarding/ |
| H 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 \ 816 ip link set dev vx10 type vxlan ageing 30 817 ip link set dev vx10 type vxlan learning 818 ip link set dev vx20 type vxlan ageing 30 819 ip link set dev vx20 type vxlan learning 835 ip link set dev vx20 type vxlan nolearning 836 ip link set dev vx20 type vxlan ageing 300 837 ip link set dev vx10 type vxlan nolearning [all …]
|
| H 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" 693 ip link set dev vx1 type vxlan ageing 30 694 ip link set dev vx1 type vxlan learning 789 ip link set dev vx1 type vxlan nolearning 790 ip link set dev vx1 type vxlan ageing 300
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_tun_vxlan.c | 33 if (!mlx5_vxlan_lookup_port(priv->mdev->vxlan, in mlx5e_tc_tun_check_udp_dport_vxlan() 70 if (!mlx5_vxlan_lookup_port(priv->mdev->vxlan, dst_port)) { in mlx5e_tc_tun_init_encap_attr_vxlan() 243 const struct vxlan_dev *vxlan = netdev_priv(mirred_dev); in mlx5e_tc_tun_get_remote_ifindex() local 244 const struct vxlan_rdst *dst = &vxlan->default_dst; in mlx5e_tc_tun_get_remote_ifindex()
|
| /linux-6.15/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_sp_commands.c | 130 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.15/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_nve_vxlan.c | 62 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_can_offload() local 63 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_can_offload() 151 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_config() local 152 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_config()
|