diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-01-10 12:26:01 +0000 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-01-10 13:49:35 +0100 |
commit | 2314fe9ed0a1760ceab96b81e6b7181963c93254 (patch) | |
tree | 235da08eb7d649a9b1dc72ff46bc885a6b743a7c /drivers/irqchip | |
parent | 488feeaf6d2f9189bdb65f31094a8cff5fcd6c58 (diff) | |
download | linux-2314fe9ed0a1760ceab96b81e6b7181963c93254.tar.bz2 |
nfp: bpf: relocate jump targets just before the load
Don't translate the program assuming it will be loaded at a given
address. This will be required for sharing programs between ports
of the same NIC, tail calls and subprograms. It will also make the
jump targets easier to understand when dumping the program to user
space.
Translate the program as if it was going to be loaded at address
zero. When load happens add the load offset in and set addresses
of special branches.
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>
Diffstat (limited to 'drivers/irqchip')
0 files changed, 0 insertions, 0 deletions