From b85de19145a01d3acdf326c3cfa4e94b585bb59f Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 18 Jan 2022 20:51:08 -0800 Subject: 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 Change-Id: Ia87dc2aa62cea38b18dfa83df94dc2abe29d5121 --- src/vcl/vppcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vcl') 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; -- cgit 1.2.3-korg