Re: [RFC bpf-next 00/11] Add socket lookup support

2018-05-16 Thread Alexei Starovoitov
On Wed, May 16, 2018 at 12:05:06PM -0700, Joe Stringer wrote: > > > > A few open points: > > * Currently, the lookup interface only returns either a valid socket or a > > NULL > > pointer. This means that if there is any kind of issue with the tuple, > > such > > as it provides an unsupported

Re: [RFC bpf-next 00/11] Add socket lookup support

2018-05-16 Thread Joe Stringer
On 9 May 2018 at 14:06, Joe Stringer wrote: > This series proposes a new helper for the BPF API which allows BPF programs to > perform lookups for sockets in a network namespace. This would allow programs > to determine early on in processing whether the stack is expecting to receive > the packet,

[RFC bpf-next 00/11] Add socket lookup support

2018-05-09 Thread Joe Stringer
This series proposes a new helper for the BPF API which allows BPF programs to perform lookups for sockets in a network namespace. This would allow programs to determine early on in processing whether the stack is expecting to receive the packet, and perform some action (eg drop, forward somewhere)