mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
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:
committed by
Christian Helmuth
parent
3ea910bf83
commit
735abca1b6
@@ -123,6 +123,8 @@ class Genode::Timeout : private Noncopyable,
|
||||
void discard();
|
||||
|
||||
bool scheduled();
|
||||
|
||||
Microseconds deadline() const { return _deadline; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -117,6 +117,8 @@ class Timer::One_shot_timeout : private Genode::Noncopyable,
|
||||
void discard() { _timeout.discard(); }
|
||||
|
||||
bool scheduled() { return _timeout.scheduled(); }
|
||||
|
||||
Microseconds deadline() const { return _timeout.deadline(); }
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user