dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] crypto/scheduler: add fail-over mode
@ 2017-03-28 14:30 Fan Zhang
  2017-03-28 14:30 ` [PATCH v3 1/3] crypto/scheduler: add fail-over scheduling mode file Fan Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Fan Zhang @ 2017-03-28 14:30 UTC (permalink / raw)
  To: dev; +Cc: pablo.de.lara.guarch, sergio.gonzalez.monroy, declan.doherty

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      | 285 +++++++++++++++++++++
 5 files changed, 303 insertions(+)
 create mode 100644 drivers/crypto/scheduler/scheduler_failover.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [PATCH v4 0/3] crypto/scheduler: add packet-base scheduling mode
@ 2017-03-29  8:25 Fan Zhang
  2017-03-29 16:26 ` [PATCH v5 " Fan Zhang
  0 siblings, 1 reply; 21+ messages in thread
From: Fan Zhang @ 2017-03-29  8:25 UTC (permalink / raw)
  To: dev; +Cc: pablo.de.lara.guarch, sergio.gonzalez.monroy, declan.doherty

Packet-size based distribution mode is a scheduling mode that works with
2 slaves, the primary slave and the secondary slave, and distributes the
enqueued crypto operations to them based on their data lengths. A crypto
operation will be distributed to the primary slave if its data length is
equal to or bigger than the designated threshold, otherwise it will be
handled by the secondary slave.

v4:
- Polished documentation.
- Fixed documentation grammer errors.

v3:
- Uses 2 sched_ops array instead of one.
- Copy the failed-to-enqueue crypto ops back to the end of ops array.
- Dequeue_ordering will directly use schedule_dequeue function instead of
  excessive dequeue.

v2:
- Update with new reorder method.

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                |  15 +
 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, 426 insertions(+)
 create mode 100644 drivers/crypto/scheduler/scheduler_pkt_size_distr.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-03-30 12:35 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-28 14:30 [PATCH v3 0/3] crypto/scheduler: add fail-over mode Fan Zhang
2017-03-28 14:30 ` [PATCH v3 1/3] crypto/scheduler: add fail-over scheduling mode file Fan Zhang
2017-03-28 23:09   ` De Lara Guarch, Pablo
2017-03-28 14:30 ` [PATCH v3 2/3] crypto/scheduler: enable fail-over scheduling mode Fan Zhang
2017-03-28 14:30 ` [PATCH v3 3/3] doc: update cryptodev scheduler PMD documentation Fan Zhang
2017-03-29  8:24 ` [PATCH v4 0/3] crypto/scheduler: add fail-over mode Fan Zhang
2017-03-29  8:24   ` [PATCH v4 1/3] crypto/scheduler: add fail-over scheduling mode file Fan Zhang
2017-03-29  8:24   ` [PATCH v4 2/3] crypto/scheduler: enable fail-over scheduling mode Fan Zhang
2017-03-29  8:24   ` [PATCH v4 3/3] doc: update cryptodev scheduler PMD documentation Fan Zhang
2017-03-29  9:52     ` Mcnamara, John
2017-03-29 11:29   ` [PATCH v4 0/3] crypto/scheduler: add fail-over mode De Lara Guarch, Pablo
2017-03-29 12:46     ` Bruce Richardson
2017-03-29 16:31   ` [PATCH v5 " Fan Zhang
2017-03-29 16:31     ` [PATCH v5 1/3] crypto/scheduler: add fail-over scheduling mode file Fan Zhang
2017-03-30  7:43       ` Declan Doherty
2017-03-29 16:31     ` [PATCH v5 2/3] crypto/scheduler: enable fail-over scheduling mode Fan Zhang
2017-03-30  7:48       ` Declan Doherty
2017-03-29 16:31     ` [PATCH v5 3/3] doc: update cryptodev scheduler PMD documentation Fan Zhang
2017-03-30  7:48       ` Declan Doherty
2017-03-30 12:33     ` [PATCH v5 0/3] crypto/scheduler: add fail-over mode De Lara Guarch, Pablo
  -- strict thread matches above, loose matches on Subject: below --
2017-03-29  8:25 [PATCH v4 0/3] crypto/scheduler: add packet-base scheduling mode Fan Zhang
2017-03-29 16:26 ` [PATCH v5 " Fan Zhang
2017-03-29 16:26   ` [PATCH v5 3/3] doc: update cryptodev scheduler PMD documentation Fan Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).