OSDN Git Service

flow_dissector: handle no-skb use case
authorStanislav Fomichev <sdf@google.com>
Mon, 22 Apr 2019 15:55:47 +0000 (08:55 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 23 Apr 2019 16:36:34 +0000 (18:36 +0200)
commit9b52e3f267a6835efd50ed9002d530666d16a411
tree4081fba58a7686bfe6c10955772b32d93f1df3a9
parent3cbf4ffba5eeec60f82868a5facc1962d8a44d00
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>
include/linux/skbuff.h
net/core/flow_dissector.c