Skip to content

Commit

Permalink
cli: forgot one #ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
hack3ric committed Jan 16, 2025
1 parent 3ea4c22 commit 5c8cf13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- flags: CHECKSUM_HACK=kfunc
args: ''
desc: kfunc
- flags: CHECKSUM_HACK=kfunc USE_LIBXDP=0
args: ''
desc: kfunc-no-libxdp
- flags: CHECKSUM_HACK=kfunc USE_LIBXDP=1
args: ''
desc: kfunc-libxdp-use-libbpf
Expand Down
2 changes: 2 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,12 @@ int parse_config_file(FILE* file, struct run_args* args) {
} else if (strcmp(k, "xdp_mode") == 0) {
args->xdp_mode = try(parse_xdp_mode(v));

#ifdef MIMIC_USE_LIBXDP
} else if (strcmp(k, "use_libxdp") == 0) {
__s16 result = 0;
try(parse_bool(v, &result));
args->use_libxdp = result;
#endif

} else if (!try(parse_setting(k, v, &args->gsettings))) {
ret(-EINVAL, _("unknown key '%s'"), k);
Expand Down

0 comments on commit 5c8cf13

Please sign in to comment.