ethtool: exit the loop when invalid index occurs