Packet-size based distribution mode, which works with 2 slaves, primary slave and secondary slave, and distribute the enqueued crypto ops to them based on their data lengths. A crypto op will be distributed to the primary slave if its data length equals or bigger than the designated threshold, otherwise it will be handled by the secondary slave.
Fan Zhang (3): crypto/scheduler: add packet size based mode code crypto/scheduler: enable packet size based scheduling mode doc: update cryptodev scheduler PMD documentation doc/guides/cryptodevs/scheduler.rst | 14 + drivers/crypto/scheduler/Makefile | 1 + drivers/crypto/scheduler/rte_cryptodev_scheduler.c | 7 + drivers/crypto/scheduler/rte_cryptodev_scheduler.h | 3 + .../crypto/scheduler/scheduler_pkt_size_distr.c | 400 +++++++++++++++++++++ 5 files changed, 425 insertions(+) create mode 100644 drivers/crypto/scheduler/scheduler_pkt_size_distr.c -- 2.7.4