diff options
author | Florin Coras <fcoras@cisco.com> | 2020-11-24 08:41:17 -0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-11-24 21:44:14 +0000 |
commit | c95cfa218b214bd1c67dc165b4ed1fb7a224bdad (patch) | |
tree | 50face9e83e6bd47a36557c25e5bee96a67f542d /src/svm/svm_fifo.h | |
parent | 61559029dacaac95b410fcb39e93134ee4858591 (diff) |
svm: support for multi-segment enqueues
Type: feature
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I06c7022a6afbb146b23cbd3a430497ec9e8be73d
Diffstat (limited to 'src/svm/svm_fifo.h')
-rw-r--r-- | src/svm/svm_fifo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/svm/svm_fifo.h b/src/svm/svm_fifo.h index 408d99a3188..4239e9d78ea 100644 --- a/src/svm/svm_fifo.h +++ b/src/svm/svm_fifo.h @@ -292,6 +292,17 @@ int svm_fifo_enqueue_with_offset (svm_fifo_t * f, u32 offset, u32 len, */ void svm_fifo_enqueue_nocopy (svm_fifo_t * f, u32 len); /** + * Enqueue array of @ref svm_fifo_seg_t in order + * + * @param f fifo + * @param segs array of segments to enqueue + * @param n_segs number of segments + * @param allow_partial if set partial enqueues are allowed + * @return len if enqueue was successful, error otherwise + */ +int svm_fifo_enqueue_segments (svm_fifo_t * f, const svm_fifo_seg_t segs[], + u32 n_segs, u8 allow_partial); +/** * Overwrite fifo head with new data * * This should be typically used by dgram transport protocols that need |