linux_dsm_epyc7002/drivers/net/ethernet/netronome/nfp/bpf
Jakub Kicinski 0c26159352 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>
2018-08-04 21:58:12 +02:00
..
cmsg.c nfp: bpf: remember maps by ID 2018-07-27 07:14:35 +02:00
fw.h nfp: bpf: xdp_adjust_tail support 2018-08-04 21:58:12 +02:00
jit.c nfp: bpf: xdp_adjust_tail support 2018-08-04 21:58:12 +02:00
main.c nfp: bpf: xdp_adjust_tail support 2018-08-04 21:58:12 +02:00
main.h nfp: bpf: xdp_adjust_tail support 2018-08-04 21:58:12 +02:00
Makefile nfp: add Makefiles to all directories 2018-02-22 15:22:50 -05:00
offload.c nfp: bpf: improve map offload info messages 2018-07-27 07:14:35 +02:00
verifier.c nfp: bpf: xdp_adjust_tail support 2018-08-04 21:58:12 +02:00