datapath: change the data type of error status to atomic_long_t