Switched port detection to function