net: fix problem in dequeuing from input_pkt_queue