Re: [PATCH] samples/bpf: Add xdp_sample_pkts example

2018-06-04 Thread Daniel Borkmann
On 06/04/2018 03:02 PM, Toke Høiland-Jørgensen wrote: > Daniel Borkmann writes: >> On 06/02/2018 06:22 AM, Daniel Borkmann wrote: >>> On 05/31/2018 11:44 AM, Toke Høiland-Jørgensen wrote: Song Liu writes: > On Wed, May 30, 2018 at 9:45 AM, Toke Høiland-Jørgensen > wrote: >> Thi

Re: [PATCH] samples/bpf: Add xdp_sample_pkts example

2018-06-04 Thread Toke Høiland-Jørgensen
Daniel Borkmann writes: > On 06/02/2018 06:22 AM, Daniel Borkmann wrote: >> On 05/31/2018 11:44 AM, Toke Høiland-Jørgensen wrote: >>> Song Liu writes: >>> On Wed, May 30, 2018 at 9:45 AM, Toke Høiland-Jørgensen wrote: > This adds an example program showing how to sample packets f

Re: [PATCH] samples/bpf: Add xdp_sample_pkts example

2018-06-04 Thread Daniel Borkmann
On 06/02/2018 06:22 AM, Daniel Borkmann wrote: > On 05/31/2018 11:44 AM, Toke Høiland-Jørgensen wrote: >> Song Liu writes: >> >>> On Wed, May 30, 2018 at 9:45 AM, Toke Høiland-Jørgensen >>> wrote: This adds an example program showing how to sample packets from XDP using the perf event

Re: [PATCH] samples/bpf: Add xdp_sample_pkts example

2018-06-01 Thread Daniel Borkmann
On 05/31/2018 11:44 AM, Toke Høiland-Jørgensen wrote: > Song Liu writes: > >> On Wed, May 30, 2018 at 9:45 AM, Toke Høiland-Jørgensen wrote: >>> This adds an example program showing how to sample packets from XDP using >>> the perf event buffer. The example userspace program just prints the >>>

Re: [PATCH] samples/bpf: Add xdp_sample_pkts example

2018-05-31 Thread Toke Høiland-Jørgensen
Song Liu writes: > On Wed, May 30, 2018 at 9:45 AM, Toke Høiland-Jørgensen wrote: >> This adds an example program showing how to sample packets from XDP using >> the perf event buffer. The example userspace program just prints the >> ethernet header for every packet sampled. >> >> Most of the us

Re: [PATCH] samples/bpf: Add xdp_sample_pkts example

2018-05-30 Thread Song Liu
On Wed, May 30, 2018 at 9:45 AM, Toke Høiland-Jørgensen wrote: > This adds an example program showing how to sample packets from XDP using > the perf event buffer. The example userspace program just prints the > ethernet header for every packet sampled. > > Most of the userspace code is borrowed f

[PATCH] samples/bpf: Add xdp_sample_pkts example

2018-05-30 Thread Toke Høiland-Jørgensen
This adds an example program showing how to sample packets from XDP using the perf event buffer. The example userspace program just prints the ethernet header for every packet sampled. Most of the userspace code is borrowed from other examples, most notably trace_output. Note that the example onl