]> 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)
commit5343503dd79da2390f6fd9946f0ac0c4342b9736
treeef319394a3273b9c2091fc82e56d79dc03fb5469
parent7fae1e5da7c98cf214e3789dda63fd936e913472
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