mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
AF_XDP-interaction: rename --poll-mode to --wakeup-mode
It is confusing to name the option what will wait for packets on the file descriptor, for --poll, just because the function call have this name. It confusing as AF_XDP users often want to busy-poll for packets (for max performance reasons). Name the new option --wakeup instead of --wait as the effect of waiting for the FD is that the kernel needs to wakeup the userspace process. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
@@ -154,8 +154,8 @@ void parse_cmdline_args(int argc, char **argv,
|
||||
case 'U':
|
||||
cfg->do_unload = true;
|
||||
break;
|
||||
case 'p':
|
||||
cfg->xsk_poll_mode = true;
|
||||
case 'w':
|
||||
cfg->xsk_wakeup_mode = true;
|
||||
break;
|
||||
case 'q':
|
||||
verbose = false;
|
||||
|
Reference in New Issue
Block a user