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.
This commit is contained in:
Stefan Kalkowski 2013-06-11 14:18:19 +02:00 committed by Norman Feske
parent e06a154294
commit c61d832ae3
1 changed files with 1 additions and 1 deletions

View File

@ -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) {