net/mlx4_en: Run loopback test only when port is up