mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
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:
parent
e06a154294
commit
c61d832ae3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user