Re: [RFC PATCH net-next 01/15] net: BPF support for socket ops

2017-06-13 Thread David Miller
From: Lawrence Brakmo Date: Tue, 13 Jun 2017 10:59:50 -0700 > diff --git a/include/linux/filter.h b/include/linux/filter.h > index a20ba40..8f69b8b 100644 > --- a/include/linux/filter.h > +++ b/include/linux/filter.h > @@ -899,4 +899,14 @@ static inline int bpf_tell_extensions(void) > retur

[RFC PATCH net-next 01/15] net: BPF support for socket ops

2017-06-13 Thread Lawrence Brakmo
Created a new BPF program type, BPF_PROG_TYPE_SOCKET_OPS, and a corresponding struct that allows BPF programs of this type to access some of the socket's fields (such as IP addresses, ports, etc.). Currently there is functionality to load one global BPF program of this type which can be called at a