This patch adds fail-over mode for cryptodev scheduler PMD. Fail-over mode works with 2 slaves, primary slave and secondary slave. In this mode, the scheduler will enqueues the incoming crypto op burst to the primary slave. When one or more crypto ops are failed to be enqueued, they then will be enqueued to the secondary slave.
Fan Zhang (3): crypto/scheduler: add fail-over scheduling mode file crypto/scheduler: enable fail-over scheduling mode doc: update cryptodev scheduler PMD documentation doc/guides/cryptodevs/scheduler.rst | 7 + drivers/crypto/scheduler/Makefile | 1 + drivers/crypto/scheduler/rte_cryptodev_scheduler.c | 7 + drivers/crypto/scheduler/rte_cryptodev_scheduler.h | 3 + drivers/crypto/scheduler/scheduler_failover.c | 324 +++++++++++++++++++++ 5 files changed, 342 insertions(+) create mode 100644 drivers/crypto/scheduler/scheduler_failover.c -- 2.7.4