net/mlx5: fix check of eCPRI previous layer