Home
last modified time | relevance | path

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

/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 …]
/drivers/net/vxlan/
Dvxlan_core.c60 static int vxlan_sock_add(struct vxlan_dev *vxlan);
62 static void vxlan_vs_del_dev(struct vxlan_dev *vxlan);
225 if (node->vxlan->default_dst.remote_vni != vni) in vxlan_vs_find_vni()
229 const struct vxlan_config *cfg = &node->vxlan->cfg; in vxlan_vs_find_vni()
236 return node->vxlan; in vxlan_vs_find_vni()
257 static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan, in vxlan_fdb_info() argument
299 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
305 if (!net_eq(dev_net(vxlan->dev), vxlan->net) && in vxlan_fdb_info()
307 peernet2id(dev_net(vxlan->dev), vxlan->net))) in vxlan_fdb_info()
321 rdst->remote_port != vxlan->cfg.dst_port && in vxlan_fdb_info()
[all …]
DMakefile5 obj-$(CONFIG_VXLAN) += vxlan.o
7 vxlan-objs := vxlan_core.o
/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()
Dqed_vf.c607 if (p_tun->vxlan.b_mode_enabled) in qed_vf_set_vf_start_tunn_update_param()
608 p_tun->vxlan.b_update_mode = true; in qed_vf_set_vf_start_tunn_update_param()
642 __qed_vf_update_tunn_param(&p_tun->vxlan, feat_mask, in qed_vf_update_tunn_param()
664 p_tun->vxlan.b_mode_enabled, p_tun->l2_geneve.b_mode_enabled, in qed_vf_update_tunn_param()
684 qed_vf_prep_tunn_req_tlv(p_req, &p_src->vxlan, QED_MODE_VXLAN_TUNN, in qed_vf_pf_tunnel_param_update()
Dqed_main.c418 if (tun->vxlan.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info()
419 tun->vxlan.b_mode_enabled) in qed_fill_dev_info()
1335 tunn_info.vxlan.b_mode_enabled = true; in qed_slowpath_start()
1340 tunn_info.vxlan.tun_cls = QED_TUNN_CLSS_MAC_VLAN; in qed_slowpath_start()
Dqed.h146 struct qed_tunn_update_type vxlan; member
Dqed_sriov.c2172 p_resp->vxlan_mode = p_tun->vxlan.b_mode_enabled; in qed_iov_pf_update_tun_response()
2177 p_resp->vxlan_clss = p_tun->vxlan.tun_cls; in qed_iov_pf_update_tun_response()
2250 qed_pf_validate_tunn_mode(&tun_src->vxlan, &rc); in qed_pf_validate_modify_tunn_config()
2257 (tun_src->vxlan.tun_cls != QED_TUNN_CLSS_MAC_VLAN || in qed_pf_validate_modify_tunn_config()
2325 qed_iov_pf_update_tun_param(p_req, &tunn.vxlan, &tunn.vxlan_port, in qed_iov_vf_mbx_update_tunn_param()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_nve_vxlan.c20 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_can_offload() local
21 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_can_offload()
97 struct vxlan_dev *vxlan = netdev_priv(params->dev); in mlxsw_sp_nve_vxlan_config() local
98 struct vxlan_config *cfg = &vxlan->cfg; in mlxsw_sp_nve_vxlan_config()
Dspectrum_switchdev.c2020 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_vlan_aware_vxlan_join() local
2023 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_vlan_aware_vxlan_join()
2198 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_8021d_vxlan_join() local
2201 .vni = vxlan->cfg.vni, in mlxsw_sp_bridge_8021d_vxlan_join()
2434 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_vxlan_leave() local
2438 fid = mlxsw_sp_fid_lookup_by_vni(mlxsw_sp, vxlan->cfg.vni); in mlxsw_sp_bridge_vxlan_leave()
2488 struct vxlan_dev *vxlan = netdev_priv(dev); in mlxsw_sp_fdb_vxlan_call_notifiers() local
2494 info.remote_port = vxlan->cfg.dst_port; in mlxsw_sp_fdb_vxlan_call_notifiers()
2689 struct vxlan_dev *vxlan = netdev_priv(dev); in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local
2691 if (!(vxlan->cfg.flags & VXLAN_F_LEARN)) in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
[all …]
/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()
/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()
2943 enic->vxlan.flags = (u8)a1; in enic_probe()
2949 enic->vxlan.patch_level = patch_level; in enic_probe()
[all …]
Denic.h185 struct vxlan_offload vxlan; member
/drivers/net/
DMakefile33 obj-$(CONFIG_VXLAN) += vxlan/
DKconfig238 This allows one to create vxlan virtual interfaces that provide
242 http://tools.ietf.org/html/draft-mahalingam-dutt-dcops-vxlan-02
245 will be called vxlan.
/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c887 rule_hw->vxlan.vni = in parse_trans_rule()
888 cpu_to_be32(be32_to_cpu(spec->vxlan.vni) << 8); in parse_trans_rule()
889 rule_hw->vxlan.vni_mask = in parse_trans_rule()
890 cpu_to_be32(be32_to_cpu(spec->vxlan.vni_mask) << 8); in parse_trans_rule()
961 "VNID = %d ", be32_to_cpu(cur->vxlan.vni)); in mlx4_err_rule()
/drivers/net/ethernet/mellanox/mlx5/core/
DMakefile66 mlx5_core-$(CONFIG_VXLAN) += lib/vxlan.o
Dmain.c852 dev->vxlan = mlx5_vxlan_create(dev); in mlx5_init_once()
929 mlx5_vxlan_destroy(dev->vxlan); in mlx5_init_once()
961 mlx5_vxlan_destroy(dev->vxlan); in mlx5_cleanup_once()
Den_main.c3991 if (mlx5_vxlan_lookup_port(priv->mdev->vxlan, port)) in mlx5e_tunnel_features_check()
4372 return mlx5_vxlan_add_port(priv->mdev->vxlan, ntohs(ti->port)); in mlx5e_vxlan_set_port()
4380 return mlx5_vxlan_del_port(priv->mdev->vxlan, ntohs(ti->port)); in mlx5e_vxlan_unset_port()
4385 if (!mlx5_vxlan_allowed(priv->mdev->vxlan)) in mlx5e_vxlan_set_netdev_info()
4408 return (mlx5_vxlan_allowed(mdev->vxlan) || mlx5_geneve_tx_allowed(mdev)); in mlx5e_tunnel_any_tx_proto_supported()
4468 if (mlx5_vxlan_allowed(mdev->vxlan) || mlx5_geneve_tx_allowed(mdev)) { in mlx5e_build_nic_netdev()
4770 mlx5_vxlan_reset_to_default(mdev->vxlan); in mlx5e_nic_disable()
Den_rep.c1048 mlx5_vxlan_reset_to_default(mdev->vxlan); in mlx5e_uplink_rep_disable()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c1681 unsigned int csum, tso, vlan, vxlan; in xgbe_dev_xmit() local
1699 vxlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, in xgbe_dev_xmit()
1832 if (vxlan) { in xgbe_dev_xmit()