diff options
author | Florin Coras <fcoras@cisco.com> | 2022-01-18 20:51:08 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-01-19 15:58:20 +0000 |
commit | b85de19145a01d3acdf326c3cfa4e94b585bb59f (patch) | |
tree | e2fe6345574c36138737921bd0afa11d459cec2b /src/vcl | |
parent | 95bbbe479eb5179fa61dd691d8d7d726fb71a885 (diff) |
svm: update number of segments in svm_fifo_segments
In addition to returning the number of bytes also update the number of
segments to reflect the number used.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ia87dc2aa62cea38b18dfa83df94dc2abe29d5121
Diffstat (limited to 'src/vcl')
-rw-r--r-- | src/vcl/vppcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 44543bb86ef..4a6c46b3f3b 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -2084,7 +2084,7 @@ vppcom_session_read_segments (uint32_t session_handle, } n_read = svm_fifo_segments (rx_fifo, s->rx_bytes_pending, - (svm_fifo_seg_t *) ds, n_segments, max_bytes); + (svm_fifo_seg_t *) ds, &n_segments, max_bytes); if (n_read < 0) return VPPCOM_EAGAIN; |