Merge branch 'x86/platform' into x86/headers, to apply dependent patches
[cascardo/linux.git] / drivers / net / ethernet / mellanox / mlx5 / core / vxlan.c
index f2fd1ef..05de772 100644 (file)
@@ -105,6 +105,9 @@ static void mlx5e_vxlan_add_port(struct work_struct *work)
        struct mlx5e_vxlan *vxlan;
        int err;
 
+       if (mlx5e_vxlan_lookup_port(priv, port))
+               goto free_work;
+
        if (mlx5e_vxlan_core_add_port_cmd(priv->mdev, port))
                goto free_work;