nic_router: avoid marginal timeout updates

The link dissolve timeout is updated for every packet, which leads to
trigger_once() RPCs that only marginally change the scheduled timeout but
significantly slow down the packet throughput.

genodelabs/genode#4555
This commit is contained in:
Johannes Schlatow
2022-07-01 16:32:25 +02:00
committed by Christian Helmuth
parent 3ea910bf83
commit 735abca1b6
5 changed files with 162 additions and 2 deletions

View File

@ -123,6 +123,8 @@ class Genode::Timeout : private Noncopyable,
void discard();
bool scheduled();
Microseconds deadline() const { return _deadline; }
};