diff options
author | Dragos Tatulea <[email protected]> | 2024-08-16 12:01:57 +0300 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2024-09-25 07:07:42 -0400 |
commit | 55a7cb05b0a6c6cd6e3f482551cf93c398f1b4c9 (patch) | |
tree | 0242cde69d70fb6a1b1833730a213bad1e42867c /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 5eb8c7eb1ec74ac6b9e7337674cb7a33e82a1e68 (diff) |
vdpa/mlx5: Keep notifiers during suspend but ignore
Unregistering notifiers is a costly operation. Instead of removing
the notifiers during device suspend and adding them back at resume,
simply ignore the call when the device is suspended.
At resume time call queue_link_work() to make sure that the device state
is propagated in case there were changes.
For 1 vDPA device x 32 VQs (16 VQPs) attached to a large VM (256 GB RAM,
32 CPUs x 2 threads per core), the device suspend time is reduced from
~13 ms to ~2.5 ms.
Signed-off-by: Dragos Tatulea <[email protected]>
Reviewed-by: Tariq Toukan <[email protected]>
Acked-by: Eugenio Pérez <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Tested-by: Lei Yang <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions