added a rb_tree in pktqueue for efficient removal.