]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: bpf: tabularize generations of compare operations
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 25 Apr 2018 04:22:38 +0000 (21:22 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 25 Apr 2018 07:56:10 +0000 (09:56 +0200)
commita046572b0b7cc37ae12a2daa96fc96b05657adb3
tree9836369a1a82db98f3bfba063747349f3ae6f7a1
parent2f2b2aa36f4b074bce5a23f6eeca4e1ca892b498
nfp: bpf: tabularize generations of compare operations

There are quite a few compare instructions now, use a table
to translate BPF instruction code to NFP instruction parameters
instead of parameterizing helpers.  This saves LOC and makes
future extensions easier.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/netronome/nfp/bpf/jit.c