net/i40e: rework port check for driver-specific API