AltraMayor / AltraMayor/gatekeeper

struct flow_entry does not need field in_use

Abierto
#603 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement good first issue
Lenguaje dominante
C
Estrellas
1.6k
Forks
252
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.