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)
commit3cbf4ffba5eeec60f82868a5facc1962d8a44d00
treeef319394a3273b9c2091fc82e56d79dc03fb5469
parent7b8a1304323b35bbf060e0d29691031056836b73
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