Network switch with QoS