AltraMayor / AltraMayor/gatekeeper
struct flow_entry does not need field in_use
未关闭
enhancement
good first issue
- 主要语言
- C
- 星标
- 1.6k
- 派生
- 252
- PR 合并指标
- 30 天内没有已合并 PR
描述
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`.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。