    }

    /// Retrieve a received frame from the specified queue.
    #[allow(dead_code)]
    fn get_received_frame_from_queue(&mut self, qid: usize) -> Result<ReceivedFrame, &'static str> {
        if qid >= self.rx_queues.len() { return Err("Invalid qid"); }