/openbmc/linux/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 | 198 if (!net_eq(dev_net(vxlan->dev), vxlan->net) && in vxlan_fdb_info() 200 peernet2id(dev_net(vxlan->dev), vxlan->net))) in vxlan_fdb_info() 897 vxlan->addrcnt >= vxlan->cfg.addrmax) in vxlan_fdb_create() 1716 !net_eq(vxlan->net, dev_net(vxlan->dev)))) in vxlan_rcv() 2471 vxlan_encap_bypass(skb, vxlan, vxlan, in vxlan_xmit_one() 2598 vxlan_encap_bypass(skb, vxlan, vxlan, vni, false); in vxlan_xmit_one() 2957 node->vxlan = vxlan; in vxlan_vs_add_dev() 3022 vxlan_fdb_delete_default(vxlan, vxlan->cfg.vni); in vxlan_uninit() 3510 vxlan->net, vxlan->cfg.remote_ifindex); in __vxlan_sock_add() 3515 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() 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() 735 err = vxlan_vni_in_use(vxlan->net, vxlan, &vxlan->cfg, v); in vxlan_vni_add() 755 if (vxlan->dev->flags & IFF_UP) in vxlan_vni_add() 804 if (vxlan->dev->flags & IFF_UP) in vxlan_vni_del() 946 struct vxlan_dev *vxlan; in vxlan_vnifilter_process() local [all …]
|
H A D | vxlan_mdb.c | 64 struct vxlan_dev *vxlan; member 296 cb->seq = vxlan->mdb_seq; in vxlan_mdb_dump() 603 cfg->vxlan = vxlan; in vxlan_mdb_config_init() 789 sg_cfg.vxlan = cfg->vxlan; in vxlan_mdb_remote_src_fwd_add() 817 sg_cfg.vxlan = vxlan; in vxlan_mdb_remote_src_fwd_del() 1046 struct vxlan_dev *vxlan = cfg->vxlan; in vxlan_mdb_remote_srcs_replace() local 1078 struct vxlan_dev *vxlan = cfg->vxlan; in vxlan_mdb_remote_replace() local 1217 struct vxlan_dev *vxlan = cfg->vxlan; in __vxlan_mdb_add() local 1229 vxlan->mdb_seq++; in __vxlan_mdb_add() 1241 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); 244 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
|
/openbmc/linux/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 …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | rtnetlink.sh | 454 vxlan="test-vxlan0" 458 ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \ 476 ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 2>/dev/null 485 ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64 488 ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning 491 ip -netns "$testns" link set dev "$vxlan" type vxlan proxy 2>/dev/null 494 ip -netns "$testns" link set dev "$vxlan" type vxlan norsc 2>/dev/null 497 ip -netns "$testns" link set dev "$vxlan" type vxlan l2miss 2>/dev/null 500 ip -netns "$testns" link set dev "$vxlan" type vxlan l3miss 2>/dev/null 521 ip -netns "$testns" link set dev "$vxlan" type vxlan gbp 2>/dev/null [all …]
|
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_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
|
H A D | test_vxlan_nolocalbypass.sh | 107 ip -n ns1 link add name vx0 up type vxlan id 100 local 198.51.100.1 \ 109 ip -n ns1 link add name vx1 up type vxlan id 100 dstport 4790 222 ip link help vxlan 2>&1 | grep -q "localbypass"
|
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
|
H A D | pmtu.sh | 1244 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 4 1248 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 4 1260 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 4 6 1264 test_pmtu_ipvX_over_vxlanY_or_geneveY_exception vxlan 6 6 1363 test_pmtu_ipvX_over_bridged_vxlanY_or_geneveY_exception vxlan 4 4 1367 test_pmtu_ipvX_over_bridged_vxlanY_or_geneveY_exception vxlan 6 4 1379 test_pmtu_ipvX_over_bridged_vxlanY_or_geneveY_exception vxlan 4 6 1450 test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception vxlan 4 4 1454 test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception vxlan 6 4 1466 test_pmtu_ipvX_over_ovs_vxlanY_or_geneveY_exception vxlan 4 6 [all …]
|
/openbmc/linux/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
|
/openbmc/linux/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 \
|
/openbmc/linux/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()
|
/openbmc/linux/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 \ 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 …]
|
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" 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
|
/openbmc/linux/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() 216 const struct vxlan_dev *vxlan = netdev_priv(mirred_dev); in mlx5e_tc_tun_get_remote_ifindex() local 217 const struct vxlan_rdst *dst = &vxlan->default_dst; in mlx5e_tc_tun_get_remote_ifindex()
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|