vswitchd: Properly calculate output port.