diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-04-22 18:55:47 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-04-23 19:36:34 +0300 |
commit | 9b52e3f267a6835efd50ed9002d530666d16a411 (patch) | |
tree | 4081fba58a7686bfe6c10955772b32d93f1df3a9 /include/linux | |
parent | 3cbf4ffba5eeec60f82868a5facc1962d8a44d00 (diff) | |
download | linux-9b52e3f267a6835efd50ed9002d530666d16a411.tar.xz |
flow_dissector: handle no-skb use case
When called without skb, gather all required data from the
__skb_flow_dissect's arguments and use recently introduces
no-skb mode of bpf flow dissector.
Note: WARN_ON_ONCE(!net) will now trigger for eth_get_headlen users.
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/skbuff.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index b466fbface2e..998256c2820b 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -1279,11 +1279,6 @@ struct bpf_flow_dissector; bool bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx, __be16 proto, int nhoff, int hlen); -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 net *net, const struct sk_buff *skb, struct flow_dissector *flow_dissector, |