AltraMayor / AltraMayor/gatekeeper

struct flow_entry does not need field in_use

Ouverte
#603 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement good first issue
Langage dominant
C
Étoiles
1.6k
Forks
252
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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`.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.