]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit96e10ff2bb47f0720211db3cdfa203904bee46b3
tree90de92372966b7fe579d66f6e7b36e9dbd5db6a8
parent290c5c9e57da6c89e9b0ae0ce427f168f79c6bb4
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