diff options
author | Dragos Tatulea <[email protected]> | 2023-10-18 20:14:45 +0300 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2023-11-01 09:19:56 -0400 |
commit | 512c0cdd80c19ec11f6dbe769d5899dcfefcd5c9 (patch) | |
tree | 9ee20a3a3df866b806bb9429fc1a5b7ee58a60b6 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 049cbeab861ef483e39f1f65540305400d33771a (diff) |
vdpa/mlx5: Decouple cvq iotlb handling from hw mapping code
The handling of the cvq iotlb is currently coupled with the creation
and destruction of the hardware mkeys (mr).
This patch moves cvq iotlb handling into its own function and shifts it
to a scope that is not related to mr handling. As cvq handling is just a
prune_iotlb + dup_iotlb cycle, put it all in the same "update" function.
Finally, the destruction path is handled by directly pruning the iotlb.
After this move is done the ASID mr code can be collapsed into a single
function.
Acked-by: Jason Wang <[email protected]>
Acked-by: Eugenio Pérez <[email protected]>
Signed-off-by: Dragos Tatulea <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Si-Wei Liu <[email protected]>
Tested-by: Si-Wei Liu <[email protected]>
Tested-by: Lei Yang <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions