Skip to content
Snippets Groups Projects
Commit f5262747 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

xdp: fix typo in the condition

parent d65c5c9c
No related branches found
No related tags found
No related merge requests found
......@@ -83,8 +83,8 @@ static int ensure_prog(struct kxsk_iface *iface, bool overwrite, bool generic_xd
return KNOT_EPROGRAM;
}
int flags = 0;
if (overwrite) {
uint32_t flags = 0;
if (!overwrite) {
flags |= XDP_FLAGS_UPDATE_IF_NOEXIST;
}
if (generic_xdp) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment