diff options
author | Toke Hoiland-Jorgensen <[email protected]> | 2022-01-21 11:10:02 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-01-21 14:14:03 -0800 |
commit | f45d5b6ce2e835834c94b8b700787984f02cd662 (patch) | |
tree | ed4902ab21d3d6389bb0327279efc6e684ce4032 /drivers/fpga/altera-fpga2sdram.c | |
parent | 082c4bfba4f77d6c65b451d7ef23093a75cc50e7 (diff) |
bpf: generalise tail call map compatibility check
The check for tail call map compatibility ensures that tail calls only
happen between maps of the same type. To ensure backwards compatibility for
XDP frags we need a similar type of check for cpumap and devmap
programs, so move the state from bpf_array_aux into bpf_map, add
xdp_has_frags to the check, and apply the same check to cpumap and devmap.
Acked-by: John Fastabend <[email protected]>
Co-developed-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Toke Hoiland-Jorgensen <[email protected]>
Link: https://lore.kernel.org/r/f19fd97c0328a39927f3ad03e1ca6b43fd53cdfd.1642758637.git.lorenzo@kernel.org
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions