]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tools: bpftool: use 4 context mode for the NFP disasm
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 18 Oct 2018 18:34:55 +0000 (11:34 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 18 Oct 2018 20:16:02 +0000 (22:16 +0200)
commit3ddeac6705aba31b7528c7d7a528eabb74475622
tree597a7e02253df1425deec7189c2c973c9e88ea22
parent1bd70d2eba9d90eb787634361f0f6fa2c86b3f6d
tools: bpftool: use 4 context mode for the NFP disasm

The nfp driver is currently always JITing the BPF for 4 context/thread
mode of the NFP flow processors.  Tell this to the disassembler,
otherwise some registers may be incorrectly decoded.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/common.c
tools/bpf/bpftool/jit_disasm.c
tools/bpf/bpftool/main.h
tools/bpf/bpftool/prog.c