flow_dissector: implements flow dissector BPF hook
Adds a hook for programs of type BPF_PROG_TYPE_FLOW_DISSECTOR and attach type BPF_FLOW_DISSECTOR that is executed in the flow dissector path. The BPF program is per-network namespace. Signed-off-by: Petar Penkov <ppenkov@google.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:

committed by
Alexei Starovoitov

parent
1edb6e035e
commit
d58e468b11
@@ -43,6 +43,7 @@ struct ctl_table_header;
|
||||
struct net_generic;
|
||||
struct uevent_sock;
|
||||
struct netns_ipvs;
|
||||
struct bpf_prog;
|
||||
|
||||
|
||||
#define NETDEV_HASHBITS 8
|
||||
@@ -145,6 +146,8 @@ struct net {
|
||||
#endif
|
||||
struct net_generic __rcu *gen;
|
||||
|
||||
struct bpf_prog __rcu *flow_dissector_prog;
|
||||
|
||||
/* Note : following structs are cache line aligned */
|
||||
#ifdef CONFIG_XFRM
|
||||
struct netns_xfrm xfrm;
|
||||
|
Reference in New Issue
Block a user