On Sun, Oct 20, 2019 at 7:25 PM Alexei Starovoitov
wrote:
>
> On Sun, Oct 20, 2019 at 10:13:49AM +0200, Magnus Karlsson wrote:
> > On Sat, Oct 19, 2019 at 11:48 AM Alexei Starovoitov
> > wrote:
> > >
> > > On Fri, Oct 18, 2019 at 11:33:40AM +0200, Magnus Karlsson wrote:
> > > > +
> > > > + #inc
On Sun, Oct 20, 2019 at 10:13:49AM +0200, Magnus Karlsson wrote:
> On Sat, Oct 19, 2019 at 11:48 AM Alexei Starovoitov
> wrote:
> >
> > On Fri, Oct 18, 2019 at 11:33:40AM +0200, Magnus Karlsson wrote:
> > > +
> > > + #include
> > > + #include "bpf_helpers.h"
> > > +
> > > + #define MAX_SOCK
On Sat, Oct 19, 2019 at 11:48 AM Alexei Starovoitov
wrote:
>
> On Fri, Oct 18, 2019 at 11:33:40AM +0200, Magnus Karlsson wrote:
> > +
> > + #include
> > + #include "bpf_helpers.h"
> > +
> > + #define MAX_SOCKS 16
> > +
> > + struct {
> > +__uint(type, BPF_MAP_TYPE_XSKMAP);
> > +
On Fri, Oct 18, 2019 at 11:33:40AM +0200, Magnus Karlsson wrote:
> +
> + #include
> + #include "bpf_helpers.h"
> +
> + #define MAX_SOCKS 16
> +
> + struct {
> +__uint(type, BPF_MAP_TYPE_XSKMAP);
> +__uint(max_entries, MAX_SOCKS);
> +__uint(key_size, sizeof(int));
>