ebruijn.ker...@gmail.com; dan...@iogearbox.net;
> netdev@vger.kernel.org; michael.lundkv...@ericsson.com; Brandeburg,
> Jesse ; Singhai, Anjali
> ; Zhang, Qi Z ;
> ravineet.si...@ericsson.com; Topel, Bjorn ;
> bro...@redhat.com
> Subject: Re: [RFC PATCH v2 14/14] samples/bpf: sampl
On Tue, 27 Mar 2018 18:59:19 +0200
Björn Töpel wrote:
> +static void dump_stats(void)
> +{
> + unsigned long stop_time = get_nsecs();
> + long dt = stop_time - start_time;
> + int i;
> +
> + for (i = 0; i < num_socks; i++) {
> + double rx_pps = xsks[i]->rx_npkts * 1000
From: Magnus Karlsson
This is a sample application for AF_XDP sockets. The application
supports three different modes of operation: rxdrop, txonly and l2fwd.
To show-case a simple round-robin load-balancing between a set of
sockets in an xskmap, set the RR_LB compile time define option to 1 in
"