AltraMayor / AltraMayor/gatekeeper
struct flow_entry does not need field in_use
Đang mở
enhancement
good first issue
- Ngôn ngữ chính
- C
- Star
- 1.6k
- Fork
- 252
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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`.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.