AltraMayor / AltraMayor/gatekeeper

struct flow_entry does not need field in_use

Offen
#603 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement good first issue
Vorherrschende Sprache
C
Sterne
1.6k
Forks
252
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The field `in_use` of `struct flow_entry` can be replaced with the following inline function:
```c
static inline bool
flow_entry_in_use(const struct flow_entry *fe)
{
return fe->grantor_fib != NULL;
}
```
The field `grantor_fib` must be set for GK blocks to know how to forward packets to Grantor servers or the actual destination, so it is always set for entries in use.

Dropping field `in_use` is just one more step to streamline `struct flow_entry`.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.