From c61d832ae350a351290f9cf045c48f3dca4b91aa Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Tue, 11 Jun 2013 14:18:19 +0200 Subject: [PATCH] Fix nic_loopback, after recent NIC session changes Commit c464ee2e6673fe328a8717342dca30f3b0204cb8 removed the RX_BUF_SIZE from the NIC session interface. Mistakenly, the nic_loopback server was missed when doing this change. --- os/src/test/nic_loopback/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/src/test/nic_loopback/main.cc b/os/src/test/nic_loopback/main.cc index 46deb9ac1b..dc29782486 100644 --- a/os/src/test/nic_loopback/main.cc +++ b/os/src/test/nic_loopback/main.cc @@ -110,7 +110,7 @@ static bool batch_packets(Nic::Session *nic, unsigned num_packets) signal_receiver.wait_for_signal(); /* produce as many packets as possible as one batch */ - unsigned max_outstanding_requests = Nic::Session::RX_QUEUE_SIZE - 1; + unsigned max_outstanding_requests = Nic::Session::QUEUE_SIZE - 1; while (nic->tx()->ready_to_submit() && tx_cnt < num_packets && tx_cnt - rx_cnt < max_outstanding_requests) {