Re: New xdpsock sample

2019-03-30 Thread William Tu
mon ; netdev@vger.kernel.org; Daniel Borkmann > > ; Eran Ben Elisha ; Tariq Toukan > > ; Saeed Mahameed > > Subject: Re: New xdpsock sample > > > > On Thu, 28 Mar 2019 at 10:48, Maxim Mikityanskiy > > wrote: > > > > > [...] > > > > >

RE: New xdpsock sample

2019-03-29 Thread Maxim Mikityanskiy
> -Original Message- > From: Björn Töpel > Sent: 28 March, 2019 14:35 > To: Maxim Mikityanskiy > Cc: Magnus Karlsson ; Magnus Karlsson > ; Björn Töpel ; Jonathan > Lemon ; netdev@vger.kernel.org; Daniel Borkmann > ; Eran Ben Elisha ; Tariq Toukan > ; Saeed M

Re: New xdpsock sample

2019-03-28 Thread Jonathan Lemon
> On Mar 28, 2019, at 5:35 AM, Björn Töpel wrote: > > Magnus and I took the route to simplify the sample, to make it easier > for new users. I still think that was the right path. Should there be > a sample showcasing all the knobs/pulleys? One problem I ran into yesterday is that the bpf prog

Re: New xdpsock sample

2019-03-28 Thread Björn Töpel
On Thu, 28 Mar 2019 at 10:48, Maxim Mikityanskiy wrote: > [...] > > > Thanks for the good input, Max! The rationale for making the sample > > > simpler, was that most people was just C&Ping from it and used it in > > > their own code, so we aimed for a simple "fits-most-people" sample. > > I don't

RE: New xdpsock sample

2019-03-28 Thread Maxim Mikityanskiy
on > > > > Sent: 26 March, 2019 18:24 > > > > To: Jonathan Lemon > > > > Cc: Maxim Mikityanskiy ; Magnus Karlsson > > > > ; netdev@vger.kernel.org; Björn Töpel > > > > ; Daniel Borkmann ; Eran > Ben > > > > Elisha ; Tariq Toukan ; &

Re: New xdpsock sample

2019-03-27 Thread Magnus Karlsson
> > > Cc: Maxim Mikityanskiy ; Magnus Karlsson > > > ; netdev@vger.kernel.org; Björn Töpel > > > ; Daniel Borkmann ; Eran Ben > > > Elisha ; Tariq Toukan ; Saeed > > > Mahameed > > > Subject: Re: New xdpsock sample > > > > > > On Tue,

Re: New xdpsock sample

2019-03-27 Thread Björn Töpel
Töpel > > ; Daniel Borkmann ; Eran Ben > > Elisha ; Tariq Toukan ; Saeed > > Mahameed > > Subject: Re: New xdpsock sample > > > > On Tue, Mar 26, 2019 at 5:13 PM Jonathan Lemon wrote: > > > > > > The rationale (IIRC) was that it would be easier for

RE: New xdpsock sample

2019-03-27 Thread Maxim Mikityanskiy
> -Original Message- > From: Magnus Karlsson > Sent: 26 March, 2019 18:24 > To: Jonathan Lemon > Cc: Maxim Mikityanskiy ; Magnus Karlsson > ; netdev@vger.kernel.org; Björn Töpel > ; Daniel Borkmann ; Eran Ben > Elisha ; Tariq Toukan ; Saeed > Mahameed > S

Re: New xdpsock sample

2019-03-26 Thread Magnus Karlsson
On Tue, Mar 26, 2019 at 5:13 PM Jonathan Lemon wrote: > > The rationale (IIRC) was that it would be easier for new users to > get started using AF_XDP by providing everything that was needed > by default. > > Passing in XSK_LIBBPF_FLAGS__INHIBIT_PROG to the library will > bypass loading the sample

Re: New xdpsock sample

2019-03-26 Thread Jonathan Lemon
The rationale (IIRC) was that it would be easier for new users to get started using AF_XDP by providing everything that was needed by default. Passing in XSK_LIBBPF_FLAGS__INHIBIT_PROG to the library will bypass loading the sample program, so a user application may still use the library with their