* enabled, otherwise return SPEED_NONE
*/
public PortSpeed getCurrentPortSpeed() {
if (!isEnabled())
return PortSpeed.SPEED_NONE;
PortSpeed maxSpeed = PortSpeed.SPEED_NONE;
for (OFPortFeatures f: currentFeatures)
PortSpeed.max(maxSpeed, f.getSpeed());
return maxSpeed;
}