datapath.c will generate packet queue