Re: [PATCH bpf-next v2 0/2] sample: xdp1 improvements

2018-12-03 Thread Jakub Kicinski
On Sun, 2 Dec 2018 02:23:41 +, Matteo Croce wrote: > On Sat, Dec 1, 2018 at 6:11 AM Alexei Starovoitov wrote: > > > > On Sat, Dec 01, 2018 at 01:23:04AM +0100, Matteo Croce wrote: > > > Small improvements to improve the readability and easiness > > > to use of the xdp1 sample. > > > > Appli

Re: [PATCH bpf-next v2 0/2] sample: xdp1 improvements

2018-12-01 Thread Matteo Croce
On Sat, Dec 1, 2018 at 6:11 AM Alexei Starovoitov wrote: > > On Sat, Dec 01, 2018 at 01:23:04AM +0100, Matteo Croce wrote: > > Small improvements to improve the readability and easiness > > to use of the xdp1 sample. > > Applied to bpf-next. > > I think that sample code could be more useful if it'

Re: [PATCH bpf-next v2 0/2] sample: xdp1 improvements

2018-11-30 Thread Alexei Starovoitov
On Sat, Dec 01, 2018 at 01:23:04AM +0100, Matteo Croce wrote: > Small improvements to improve the readability and easiness > to use of the xdp1 sample. Applied to bpf-next. I think that sample code could be more useful if it's wrapped with bash script like selftests/test_xdp* tests do. At that po

[PATCH bpf-next v2 0/2] sample: xdp1 improvements

2018-11-30 Thread Matteo Croce
Small improvements to improve the readability and easiness to use of the xdp1 sample. Matteo Croce (2): samples: bpf: improve xdp1 example samples: bpf: get ifindex from ifname samples/bpf/xdp1_user.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) -- 2.