On Tue, Sep 11, 2018 at 09:38:02PM +0200, Tushar Dave wrote:
> When sg_filter_run() is invoked it runs the attached eBPF
> prog of type BPF_PROG_TYPE_SOCKET_SG_FILTER which deals with
> struct scatterlist.
> 
> Signed-off-by: Tushar Dave <tushar.n.d...@oracle.com>
> Acked-by: Sowmini Varadhan <sowmini.varad...@oracle.com>
> ---
>  include/linux/filter.h         |  8 ++++++++
>  include/uapi/linux/bpf.h       |  6 ++++++
>  net/core/filter.c              | 35 +++++++++++++++++++++++++++++++++++
>  tools/include/uapi/linux/bpf.h |  6 ++++++
>  4 files changed, 55 insertions(+)
> 
> diff --git a/include/linux/filter.h b/include/linux/filter.h
> index 6791a0a..ae664a9 100644
> --- a/include/linux/filter.h
> +++ b/include/linux/filter.h
> @@ -1113,4 +1113,12 @@ struct bpf_sock_ops_kern {
>                                        */
>  };
>  
> +enum __socksg_action {
> +     __SOCKSG_PASS = 0,
> +     __SOCKSG_DROP,
> +     __SOCKSG_REDIRECT,

what is this? I see no code that handles it either in this patch
or in the later patches?!

Reply via email to