[bpf-next PATCH 1/7] bpf: refactor sockmap sample program update for arg parsing

2018-01-08 Thread John Fastabend
sockmap sample program takes arguments from cmd line but it reads them in using offsets into the array. Because we want to add more arguments in the future lets do proper argument handling. Also refactor code to pull apart sock init and ping/pong test. This allows us to add new tests in the future

Re: [bpf-next PATCH 1/7] bpf: refactor sockmap sample program update for arg parsing

2018-01-09 Thread Jesper Dangaard Brouer
On Mon, 08 Jan 2018 10:05:07 -0800 John Fastabend wrote: > sockmap sample program takes arguments from cmd line but it reads them > in using offsets into the array. Because we want to add more arguments > in the future lets do proper argument handling. > > Also refactor code to pull apart sock i

Re: [bpf-next PATCH 1/7] bpf: refactor sockmap sample program update for arg parsing

2018-01-09 Thread John Fastabend
On 01/09/2018 05:30 AM, Jesper Dangaard Brouer wrote: > On Mon, 08 Jan 2018 10:05:07 -0800 > John Fastabend wrote: > >> sockmap sample program takes arguments from cmd line but it reads them >> in using offsets into the array. Because we want to add more arguments >> in the future lets do proper