Lines Matching refs:vxlanp
74 struct mlx5_vxlan_port *vxlanp; in mlx5_vxlan_lookup_port() local
81 hash_for_each_possible_rcu(vxlan->htable, vxlanp, hlist, port) in mlx5_vxlan_lookup_port()
82 if (vxlanp->udp_port == port) { in mlx5_vxlan_lookup_port()
93 struct mlx5_vxlan_port *vxlanp; in vxlan_lookup_port() local
95 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) in vxlan_lookup_port()
96 if (vxlanp->udp_port == port) in vxlan_lookup_port()
97 return vxlanp; in vxlan_lookup_port()
103 struct mlx5_vxlan_port *vxlanp; in mlx5_vxlan_add_port() local
106 vxlanp = kzalloc(sizeof(*vxlanp), GFP_KERNEL); in mlx5_vxlan_add_port()
107 if (!vxlanp) in mlx5_vxlan_add_port()
109 vxlanp->udp_port = port; in mlx5_vxlan_add_port()
113 kfree(vxlanp); in mlx5_vxlan_add_port()
118 hash_add_rcu(vxlan->htable, &vxlanp->hlist, port); in mlx5_vxlan_add_port()
126 struct mlx5_vxlan_port *vxlanp; in mlx5_vxlan_del_port() local
131 vxlanp = vxlan_lookup_port(vxlan, port); in mlx5_vxlan_del_port()
132 if (WARN_ON(!vxlanp)) { in mlx5_vxlan_del_port()
137 hash_del_rcu(&vxlanp->hlist); in mlx5_vxlan_del_port()
140 kfree(vxlanp); in mlx5_vxlan_del_port()
181 struct mlx5_vxlan_port *vxlanp; in mlx5_vxlan_reset_to_default() local
188 hash_for_each_safe(vxlan->htable, bkt, tmp, vxlanp, hlist) { in mlx5_vxlan_reset_to_default()
192 if (vxlanp->udp_port == IANA_VXLAN_UDP_PORT) in mlx5_vxlan_reset_to_default()
194 mlx5_vxlan_del_port(vxlan, vxlanp->udp_port); in mlx5_vxlan_reset_to_default()