aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-08-03 22:06:00 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-08-04 21:58:12 +0200
commit0c26159352ba1cdc5a8c8d74131cc19cdfdf9371 (patch)
tree430e93b2339610231eaa3f5e3236ff1723487d27 /tools/bpf
parentselftests/bpf: fix a typo in map in map test (diff)
downloadlinux-dev-0c26159352ba1cdc5a8c8d74131cc19cdfdf9371.tar.xz
linux-dev-0c26159352ba1cdc5a8c8d74131cc19cdfdf9371.zip
nfp: bpf: xdp_adjust_tail support
Add support for adjust_tail. There are no FW changes needed but add a FW capability just in case there would be any issue with previously released FW, or we will have to change the ABI in the future. The helper is trivial and shouldn't be used too often so just inline the body of the function. We add the delta to locally maintained packet length register and check for overflow, since add of negative value must overflow if result is positive. Note that if delta of 0 would be allowed in the kernel this trick stops working and we need one more instruction to compare lengths before and after the change. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf')
0 files changed, 0 insertions, 0 deletions