/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | vxlan.c | 84 mlx5_vxlan_lookup_port_locked(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_lookup_port_locked() argument 88 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) { in mlx5_vxlan_lookup_port_locked() 96 struct mlx5_vxlan_port *mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_lookup_port() argument 100 if (!mlx5_vxlan_allowed(vxlan)) in mlx5_vxlan_lookup_port() 103 spin_lock_bh(&vxlan->lock); in mlx5_vxlan_lookup_port() 104 vxlanp = mlx5_vxlan_lookup_port_locked(vxlan, port); in mlx5_vxlan_lookup_port() 105 spin_unlock_bh(&vxlan->lock); in mlx5_vxlan_lookup_port() 110 int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port) in mlx5_vxlan_add_port() argument 115 vxlanp = mlx5_vxlan_lookup_port(vxlan, port); in mlx5_vxlan_add_port() 121 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_add_port() [all …]
|
D | vxlan.h | 40 static inline bool mlx5_vxlan_allowed(struct mlx5_vxlan *vxlan) in mlx5_vxlan_allowed() argument 45 return !IS_ERR_OR_NULL(vxlan); in mlx5_vxlan_allowed() 50 void mlx5_vxlan_destroy(struct mlx5_vxlan *vxlan); 51 int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port); 52 int mlx5_vxlan_del_port(struct mlx5_vxlan *vxlan, u16 port); 53 struct mlx5_vxlan_port *mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port); 57 static inline void mlx5_vxlan_destroy(struct mlx5_vxlan *vxlan) { return; } in mlx5_vxlan_destroy() argument 58 static inline int mlx5_vxlan_add_port(struct mlx5_vxlan *vxlan, u16 port) { return -EOPNOTSUPP; } in mlx5_vxlan_add_port() argument 59 static inline int mlx5_vxlan_del_port(struct mlx5_vxlan *vxlan, u16 port) { return -EOPNOTSUPP; } in mlx5_vxlan_del_port() argument 61 mlx5_vxlan_lookup_port(struct mlx5_vxlan *vxlan, u16 port) { return NULL; } in mlx5_vxlan_lookup_port() argument
|
/drivers/net/ |
D | vxlan.c | 59 static int vxlan_sock_add(struct vxlan_dev *vxlan); 61 static void vxlan_vs_del_dev(struct vxlan_dev *vxlan); 215 if (node->vxlan->default_dst.remote_vni != vni) in vxlan_vs_find_vni() 219 const struct vxlan_config *cfg = &node->vxlan->cfg; in vxlan_vs_find_vni() 226 return node->vxlan; in vxlan_vs_find_vni() 247 static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan, in vxlan_fdb_info() argument 274 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info() 280 if (!net_eq(dev_net(vxlan->dev), vxlan->net) && in vxlan_fdb_info() 282 peernet2id(dev_net(vxlan->dev), vxlan->net))) in vxlan_fdb_info() 291 if (rdst->remote_port && rdst->remote_port != vxlan->cfg.dst_port && in vxlan_fdb_info() [all …]
|
D | Makefile | 29 obj-$(CONFIG_VXLAN) += vxlan.o
|
D | Kconfig | 193 This allows one to create vxlan virtual interfaces that provide 197 http://tools.ietf.org/html/draft-mahalingam-dutt-dcops-vxlan-02 200 will be called vxlan.
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_sp_commands.c | 154 if (p_src->vxlan.b_update_mode || b_pf_start) in qed_set_pf_update_tunn_mode() 155 p_tun->vxlan.b_mode_enabled = p_src->vxlan.b_mode_enabled; in qed_set_pf_update_tunn_mode() 180 type = qed_tunn_clss_to_fw_clss(p_src->vxlan.tun_cls); in qed_set_tunn_cls_info() 181 p_tun->vxlan.tun_cls = type; in qed_set_tunn_cls_info() 238 &p_tun->vxlan, in qed_tunn_set_pf_update_params() 267 qed_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled); in qed_set_hw_tunn_mode() 303 &p_tun->vxlan, in qed_tunn_set_pf_start_params()
|
D | qed_vf.c | 613 if (p_tun->vxlan.b_mode_enabled) in qed_vf_set_vf_start_tunn_update_param() 614 p_tun->vxlan.b_update_mode = true; in qed_vf_set_vf_start_tunn_update_param() 648 __qed_vf_update_tunn_param(&p_tun->vxlan, feat_mask, in qed_vf_update_tunn_param() 670 p_tun->vxlan.b_mode_enabled, p_tun->l2_geneve.b_mode_enabled, in qed_vf_update_tunn_param() 690 qed_vf_prep_tunn_req_tlv(p_req, &p_src->vxlan, QED_MODE_VXLAN_TUNN, in qed_vf_pf_tunnel_param_update()
|
D | qed_main.c | 254 if (tun->vxlan.tun_cls == QED_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 255 tun->vxlan.b_mode_enabled) in qed_fill_dev_info() 1275 tunn_info.vxlan.b_mode_enabled = true; in qed_slowpath_start() 1280 tunn_info.vxlan.tun_cls = QED_TUNN_CLSS_MAC_VLAN; in qed_slowpath_start()
|
D | qed.h | 179 struct qed_tunn_update_type vxlan; member
|
D | qed_sriov.c | 2192 p_resp->vxlan_mode = p_tun->vxlan.b_mode_enabled; in qed_iov_pf_update_tun_response() 2197 p_resp->vxlan_clss = p_tun->vxlan.tun_cls; in qed_iov_pf_update_tun_response() 2270 qed_pf_validate_tunn_mode(&tun_src->vxlan, &rc); in qed_pf_validate_modify_tunn_config() 2277 (tun_src->vxlan.tun_cls != QED_TUNN_CLSS_MAC_VLAN || in qed_pf_validate_modify_tunn_config() 2345 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/ |
D | spectrum_nve_vxlan.c | 28 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()
|
D | spectrum_switchdev.c | 1974 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_8021q_vxlan_join() local 1977 .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() 2345 struct vxlan_dev *vxlan = netdev_priv(vxlan_dev); in mlxsw_sp_bridge_vxlan_leave() local 2349 fid = mlxsw_sp_fid_lookup_by_vni(mlxsw_sp, vxlan->cfg.vni); in mlxsw_sp_bridge_vxlan_leave() 2409 struct vxlan_dev *vxlan = netdev_priv(dev); in mlxsw_sp_fdb_vxlan_call_notifiers() local 2415 info.remote_port = vxlan->cfg.dst_port; in mlxsw_sp_fdb_vxlan_call_notifiers() 2606 struct vxlan_dev *vxlan = netdev_priv(dev); in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local 2608 if (!(vxlan->cfg.flags & VXLAN_F_LEARN)) in __mlxsw_sp_fdb_notify_mac_uc_tunnel_process() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_vxlan.c | 32 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/ |
D | enic_main.c | 196 if (!(enic->vxlan.flags & ENIC_VXLAN_OUTER_IPV6)) { in enic_udp_tunnel_add() 207 if (enic->vxlan.vxlan_udp_port_number) { in enic_udp_tunnel_add() 208 if (ntohs(port) == enic->vxlan.vxlan_udp_port_number) in enic_udp_tunnel_add() 216 !(enic->vxlan.flags & ENIC_VXLAN_MULTI_WQ)) { in enic_udp_tunnel_add() 228 enic->vxlan.patch_level); in enic_udp_tunnel_add() 232 enic->vxlan.vxlan_udp_port_number = ntohs(port); in enic_udp_tunnel_add() 235 (int)enic->vxlan.patch_level, ntohs(port), ti->sa_family); in enic_udp_tunnel_add() 254 if ((ntohs(ti->port) != enic->vxlan.vxlan_udp_port_number) || in enic_udp_tunnel_del() 269 enic->vxlan.vxlan_udp_port_number = 0; in enic_udp_tunnel_del() 295 if (!(enic->vxlan.flags & ENIC_VXLAN_OUTER_IPV6)) in enic_features_check() [all …]
|
D | enic.h | 186 struct vxlan_offload vxlan; member
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | Makefile | 47 mlx5_core-$(CONFIG_VXLAN) += lib/vxlan.o
|
D | main.c | 846 dev->vxlan = mlx5_vxlan_create(dev); in mlx5_init_once() 898 mlx5_vxlan_destroy(dev->vxlan); in mlx5_init_once() 924 mlx5_vxlan_destroy(dev->vxlan); in mlx5_cleanup_once()
|
D | en_main.c | 3037 if (mlx5_vxlan_allowed(priv->mdev->vxlan)) in mlx5e_open() 4157 mlx5_vxlan_add_port(priv->mdev->vxlan, port); in mlx5e_vxlan_add_work() 4171 mlx5_vxlan_del_port(priv->mdev->vxlan, port); in mlx5e_vxlan_del_work() 4201 if (!mlx5_vxlan_allowed(priv->mdev->vxlan)) in mlx5e_add_vxlan_port() 4214 if (!mlx5_vxlan_allowed(priv->mdev->vxlan)) in mlx5e_del_vxlan_port() 4253 if (mlx5_vxlan_lookup_port(priv->mdev->vxlan, port)) in mlx5e_tunnel_features_check() 4872 if (mlx5_vxlan_allowed(mdev->vxlan) || mlx5_geneve_tx_allowed(mdev) || in mlx5e_build_nic_netdev() 4880 if (mlx5_vxlan_allowed(mdev->vxlan) || mlx5_geneve_tx_allowed(mdev)) { in mlx5e_build_nic_netdev()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 887 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/amd/xgbe/ |
D | xgbe-dev.c | 1674 unsigned int csum, tso, vlan, vxlan; in xgbe_dev_xmit() local 1692 vxlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, in xgbe_dev_xmit() 1825 if (vxlan) { in xgbe_dev_xmit()
|