From dced40dcaca0186d11eccbf5c75e21446db931b9 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 25 Oct 2024 02:09:13 -0400 Subject: [PATCH] vcl: fix get tx fifo len attr Type: fix Change-Id: I9b47600486b03c4c2cd031ed1f0faf6c28864fe4 Signed-off-by: Florin Coras --- src/vcl/vppcom.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 7f3e97ae641..4568ac618d5 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -3955,12 +3955,11 @@ vppcom_session_attr (uint32_t session_handle, uint32_t op, case VPPCOM_ATTR_GET_TX_FIFO_LEN: if (buffer && buflen && (*buflen >= sizeof (u32))) { - /* VPP-TBD */ - *(size_t *) buffer = (session->sndbuf_size ? session->sndbuf_size : - session->tx_fifo ? - svm_fifo_size (session->tx_fifo) : - vcm->cfg.tx_fifo_size); + *(u32 *) buffer = + (session->sndbuf_size ? session->sndbuf_size : + session->tx_fifo ? svm_fifo_size (session->tx_fifo) : + vcm->cfg.tx_fifo_size); *buflen = sizeof (u32); VDBG (2, "VPPCOM_ATTR_GET_TX_FIFO_LEN: %u (0x%x), buflen %d,"