Re: [PATCH v7 01/11] bpf: add XDP prog type for early driver filter

2016-07-12 Thread Brenden Blanco
On Mon, Jul 11, 2016 at 11:02:54PM -0700, David Miller wrote: > From: Brenden Blanco > Date: Mon, 11 Jul 2016 14:29:48 -0700 > > > + WARN_ONCE(1, "\n" > > +"*\n" > > +"** NOTICE NOTICE

Re: [PATCH v7 01/11] bpf: add XDP prog type for early driver filter

2016-07-12 Thread David Miller
From: Brenden Blanco Date: Mon, 11 Jul 2016 14:29:48 -0700 > + WARN_ONCE(1, "\n" > + "*\n" > + "** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **\n" > + "**

[PATCH v7 01/11] bpf: add XDP prog type for early driver filter

2016-07-11 Thread Brenden Blanco
Add a new bpf prog type that is intended to run in early stages of the packet rx path. Only minimal packet metadata will be available, hence a new context type, struct xdp_md, is exposed to userspace. So far only expose the packet start and end pointers, and only in read mode. An XDP program must