]> git.baikalelectronics.ru Git - kernel.git/commit
net: plumb network namespace into __skb_flow_dissect
authorStanislav Fomichev <sdf@google.com>
Mon, 22 Apr 2019 15:55:46 +0000 (08:55 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 23 Apr 2019 16:36:34 +0000 (18:36 +0200)
commit039ae78b9f1c6d3c108acf817e928c5e4af625ca
treeef319394a3273b9c2091fc82e56d79dc03fb5469
parent2b5cace1228b2c7438f4a997c7d090598cffba2a
net: plumb network namespace into __skb_flow_dissect

This new argument will be used in the next patches for the
eth_get_headlen use case. eth_get_headlen calls flow dissector
with only data (without skb) so there is currently no way to
pull attached BPF flow dissector program. With this new argument,
we can amend the callers to explicitly pass network namespace
so we can use attached BPF program.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/skbuff.h
net/core/flow_dissector.c
net/ethernet/eth.c