net/mlx5: Remove redundant lag function to get pf num