[PATCH 4.17 14/42] net/mlx5e: Properly check if hairpin is possible between two functions