diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-01-28 08:53:53 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-01-29 01:08:29 +0100 |
commit | c8aa703822bf811269975cf7251b5eaad4c38e9c (patch) | |
tree | 0fce82d929ded28f26cf328213f0ead88027e06a /include/linux/skbuff.h | |
parent | d76198b0bc5a67c14c5209bac82481399a3387da (diff) | |
download | linux-rpi-c8aa703822bf811269975cf7251b5eaad4c38e9c.tar.gz linux-rpi-c8aa703822bf811269975cf7251b5eaad4c38e9c.tar.bz2 linux-rpi-c8aa703822bf811269975cf7251b5eaad4c38e9c.zip |
net/flow_dissector: move bpf case into __skb_flow_bpf_dissect
This way, we can reuse it for flow dissector in BPF_PROG_TEST_RUN.
No functional changes.
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 93f56fddd92a..be762fc34ff3 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -1221,6 +1221,11 @@ static inline int skb_flow_dissector_bpf_prog_detach(const union bpf_attr *attr) } #endif +struct bpf_flow_keys; +bool __skb_flow_bpf_dissect(struct bpf_prog *prog, + const struct sk_buff *skb, + struct flow_dissector *flow_dissector, + struct bpf_flow_keys *flow_keys); bool __skb_flow_dissect(const struct sk_buff *skb, struct flow_dissector *flow_dissector, void *target_container, |