Commit Graph

11 Commits

Author SHA1 Message Date
Jesper Dangaard Brouer
6367e82069 AF_XDP-interaction: Add param to adjust TX-cyclic interval
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2022-01-14 11:12:24 +01:00
Jesper Dangaard Brouer
2d86845b02 AF_XDP-interaction: Add option for debugging time
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2022-01-07 17:38:19 +01:00
Jesper Dangaard Brouer
f3d5d3ca93 AF_XDP-interaction: cmdline options for MAC-addresses
Change Ethernet MAC in transmitted frames
 via cmdline options (-G|--tx-dmac) or (-H|--tx-smac)

Based on suggestion from: Ong Boon Leong <boon.leong.ong@intel.com>
 https://lore.kernel.org/all/20211124091821.3916046-3-boon.leong.ong@intel.com/

Suggested-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-12-14 13:52:27 +01:00
Jesper Dangaard Brouer
b71f7f8cac AF_XDP-interaction: Add cmdline option for enable/disabling busy-poll mode
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-12-14 12:26:12 +01:00
Jesper Dangaard Brouer
446653f4b4 AF_XDP-interaction: Add option for real-time priority
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-11-16 20:12:04 +01:00
Jesper Dangaard Brouer
f5833725cc AF_XDP-interaction: Fix xsk_bind_flags options
This allows enabling another AF_XDP mode e.g. --zero-copy.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-11-16 17:12:29 +01:00
Jesper Dangaard Brouer
396854e2e1 AF_XDP-interaction: Add --spin-mode that disables --wakeup-mode
And default that AF_XDP userspace prog to use wakeup-mode

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-11-12 11:47:48 +01:00
Jesper Dangaard Brouer
b950ab63f0 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>
2021-11-12 10:59:37 +01:00
Jesper Dangaard Brouer
858778aa83 AF_XDP-interaction: crude extraction of metadata area
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-10-29 16:06:42 +02:00
Jesper Dangaard Brouer
1bc02a7470 AF_XDP-interaction: Add --pktinfo option that print info on pkt
To verify the contents of the incomming packets add a
function print_pkt_info() that decode part of the packet
headers and print IP-header src+dst (both IPv4 and IPv6).

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-10-29 14:53:33 +02:00
Jesper Dangaard Brouer
118bb615b3 AF_XDP-interaction: Add common_params.c+h from XDP-tutorial
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-10-26 15:17:39 +02:00