14 uint64_t *entry = this->
find_(address);
19 uint64_t *entry = this->
find_(address);
20 if (entry !=
nullptr && *entry != 0) {
24 if (entry ==
nullptr) {
33 uint64_t *entry = this->
find_(address);
34 if (entry !=
nullptr && *entry != 0 && (*entry &
RELAXED_FLAG) == 0)
39 uint64_t *entry = this->
find_(address);
40 if (entry ==
nullptr || *entry == 0)
49 for (uint64_t &entry : this->
entries_) {
57 for (uint64_t *last = &this->
entries_.back(); entry != last; entry++)
65 std::array<uint64_t, MAX_ADDRESSES>
entries_{};
Addresses that failed at FAST twice in a row and now open with MEDIUM; the oldest is replaced when fu...
void fast_connected(uint64_t address)
A FAST link came up: forgets a single earlier failure. Relaxed entries stay.
bool fast_failed(uint64_t address)
A FAST attempt failed; returns true when it was the second in a row.
std::array< uint64_t, MAX_ADDRESSES > entries_
bool forget(uint64_t address)
Returns true when an entry was removed.
bool use_relaxed(uint64_t address)
void erase_(uint64_t *entry)
static constexpr uint64_t RELAXED_FLAG
uint64_t * find_(uint64_t address)
static constexpr uint8_t MAX_ADDRESSES