ring: add reset function for flushing