[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 5/6] cryptodev: use NULL throttle timer cb for read direction
From: |
zhenwei pi |
Subject: |
[PATCH v3 5/6] cryptodev: use NULL throttle timer cb for read direction |
Date: |
Thu, 13 Jul 2023 14:41:10 +0800 |
Operations on a crytpodev are considered as *write* only, the callback
of read direction is never invoked. Use NULL instead of an unreachable
path(cryptodev_backend_throttle_timer_cb on read direction).
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
---
backends/cryptodev.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/backends/cryptodev.c b/backends/cryptodev.c
index 7d29517843..5cfa25c61c 100644
--- a/backends/cryptodev.c
+++ b/backends/cryptodev.c
@@ -331,8 +331,7 @@ static void cryptodev_backend_set_throttle(CryptoDevBackend
*backend, int field,
if (!enabled) {
throttle_init(&backend->ts);
throttle_timers_init(&backend->tt, qemu_get_aio_context(),
- QEMU_CLOCK_REALTIME,
- cryptodev_backend_throttle_timer_cb, /* FIXME */
+ QEMU_CLOCK_REALTIME, NULL,
cryptodev_backend_throttle_timer_cb, backend);
}
--
2.34.1
- [PATCH v3 0/6] Misc fixes for throttle, zhenwei pi, 2023/07/13
- [PATCH v3 2/6] test-throttle: use enum ThrottleType, zhenwei pi, 2023/07/13
- [PATCH v3 1/6] throttle: introduce enum ThrottleType, zhenwei pi, 2023/07/13
- [PATCH v3 3/6] throttle: support read-only and write-only, zhenwei pi, 2023/07/13
- [PATCH v3 4/6] test-throttle: test read only and write only, zhenwei pi, 2023/07/13
- [PATCH v3 5/6] cryptodev: use NULL throttle timer cb for read direction,
zhenwei pi <=
- [PATCH v3 6/6] throttle: use enum ThrottleType instead of bool is_write, zhenwei pi, 2023/07/13
- PING: [PATCH v3 0/6] Misc fixes for throttle, zhenwei pi, 2023/07/20