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:
Jesper Dangaard Brouer
2021-11-12 10:59:37 +01:00
parent 8db4d3b33c
commit b950ab63f0
3 changed files with 7 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ struct config {
char dest_mac[18];
__u16 xsk_bind_flags;
int xsk_if_queue;
bool xsk_poll_mode;
bool xsk_wakeup_mode;
};
/* Defined in common_params.o */