diff --git a/xdp-bench/README.org b/xdp-bench/README.org index 1e24709c..a2f69290 100644 --- a/xdp-bench/README.org +++ b/xdp-bench/README.org @@ -78,13 +78,12 @@ flushing it back out if writing). The default for this option is =no-touch=. ** -l, --load-mode -Specify which mechanism xdp-bench should use to load the packet data when -parsing the IP header (used with =-p parse-ip=). The following modes are -available: +Specify which mechanism xdp-bench should use to load (and store) the packet data. +The following modes are available: #+begin_src sh dpa - Use traditional Direct Packet Access from the XDP program - load-bytes - Use the xdp_load_bytes() helper function to load the data + load-bytes - Use the xdp_load_bytes() and xdp_store_bytes() helper functions #+end_src This can be used to benchmark the various packet access modes supported by the @@ -154,13 +153,12 @@ following actions are available: The default for this option is =no-touch=. ** -l, --load-mode -Specify which mechanism xdp-bench should use to load the packet data when -parsing the IP header (used with =-p parse-ip=). The following modes are -available: +Specify which mechanism xdp-bench should use to load (and store) the packet data. +The following modes are available: #+begin_src sh dpa - Use traditional Direct Packet Access from the XDP program - load-bytes - Use the xdp_load_bytes() helper function to load the data + load-bytes - Use the xdp_load_bytes() and xdp_store_bytes() helper functions #+end_src This can be used to benchmark the various packet access modes supported by the @@ -234,13 +232,12 @@ allows this function to be turned off. The default for this option is =swap-macs=. ** -l, --load-mode -Specify which mechanism xdp-bench should use to load the packet data when -parsing the IP header (used with =-p parse-ip=). The following modes are -available: +Specify which mechanism xdp-bench should use to load (and store) the packet data. +The following modes are available: #+begin_src sh dpa - Use traditional Direct Packet Access from the XDP program - load-bytes - Use the xdp_load_bytes() helper function to load the data + load-bytes - Use the xdp_load_bytes() and xdp_store_bytes() helper functions #+end_src This can be used to benchmark the various packet access modes supported by the diff --git a/xdp-bench/xdp-bench.8 b/xdp-bench/xdp-bench.8 index 01263bab..20b6b5a9 100644 --- a/xdp-bench/xdp-bench.8 +++ b/xdp-bench/xdp-bench.8 @@ -92,14 +92,13 @@ The default for this option is \fIno\-touch\fP. .SS "-l, --load-mode " .PP -Specify which mechanism xdp-bench should use to load the packet data when -parsing the IP header (used with \fI\-p parse\-ip\fP). The following modes are -available: +Specify which mechanism xdp-bench should use to load (and store) the packet data. +The following modes are available: .RS .nf -\fCdpa - Use traditional Direct Packet Access from the XDP program -load-bytes - Use the xdp_load_bytes() helper function to load the data +\fCdpa - Use traditional Direct Packet Access from the XDP program +load-bytes - Use the xdp_load_bytes() and xdp_store_bytes() helper functions \fP .fi .RE @@ -191,14 +190,13 @@ The default for this option is \fIno\-touch\fP. .SS "-l, --load-mode " .PP -Specify which mechanism xdp-bench should use to load the packet data when -parsing the IP header (used with \fI\-p parse\-ip\fP). The following modes are -available: +Specify which mechanism xdp-bench should use to load (and store) the packet data. +The following modes are available: .RS .nf -\fCdpa - Use traditional Direct Packet Access from the XDP program -load-bytes - Use the xdp_load_bytes() helper function to load the data +\fCdpa - Use traditional Direct Packet Access from the XDP program +load-bytes - Use the xdp_load_bytes() and xdp_store_bytes() helper functions \fP .fi .RE @@ -295,14 +293,13 @@ The default for this option is \fIswap\-macs\fP. .SS "-l, --load-mode " .PP -Specify which mechanism xdp-bench should use to load the packet data when -parsing the IP header (used with \fI\-p parse\-ip\fP). The following modes are -available: +Specify which mechanism xdp-bench should use to load (and store) the packet data. +The following modes are available: .RS .nf -\fCdpa - Use traditional Direct Packet Access from the XDP program -load-bytes - Use the xdp_load_bytes() helper function to load the data +\fCdpa - Use traditional Direct Packet Access from the XDP program +load-bytes - Use the xdp_load_bytes() and xdp_store_bytes() helper functions \fP .fi .RE diff --git a/xdp-bench/xdp-bench.c b/xdp-bench/xdp-bench.c index ce3457c3..cab7cbf2 100644 --- a/xdp-bench/xdp-bench.c +++ b/xdp-bench/xdp-bench.c @@ -82,7 +82,7 @@ struct prog_option basic_options[] = { .short_opt = 'l', .metavar = "", .typearg = basic_load_modes, - .help = "How to load data when parsing IP header (with -p parse-ip; default dpa)"), + .help = "How to load (and store) data; default dpa"), DEFINE_OPTION("rxq-stats", OPT_BOOL, struct basic_opts, rxq_stats, .short_opt = 'r', .help = "Collect per-RXQ drop statistics"),