Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

struct flow_entry does not need field in_use #603

Open
AltraMayor opened this issue Sep 14, 2022 · 0 comments
Open

struct flow_entry does not need field in_use #603

AltraMayor opened this issue Sep 14, 2022 · 0 comments

Comments

@AltraMayor
Copy link
Owner

The field in_use of struct flow_entry can be replaced with the following inline function:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant