nfp: bpf: detect packet reads could be cached, enable the optimisation
authorJiong Wang <jiong.wang@netronome.com>
Thu, 29 Mar 2018 00:48:27 +0000 (17:48 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 29 Mar 2018 02:36:12 +0000 (19:36 -0700)
commit87b10ecdced224dc0def123e1f57bc6c5ac4ac5c
tree90de92372966b7fe579d66f6e7b36e9dbd5db6a8
parent91ff69e840f91016f464810e8940b99723abb5e8
nfp: bpf: detect packet reads could be cached, enable the optimisation

This patch is the front end of this optimisation, it detects and marks
those packet reads that could be cached. Then the optimisation "backend"
will be activated automatically.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
drivers/net/ethernet/netronome/nfp/bpf/jit.c
drivers/net/ethernet/netronome/nfp/bpf/main.h