From: Mohammed Hawari Date: Thu, 25 Mar 2021 16:35:10 +0000 (+0100) Subject: rdma: fix buggy cqe parsing (truncated packets) X-Git-Tag: v21.01.1~4 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=6bd1c77fdcb2c4fcba1e2aae619fe4d2a01b489d;p=vpp.git rdma: fix buggy cqe parsing (truncated packets) Change-Id: I17228bd35cc7aa0d207a16502bf1376c75675302 Signed-off-by: Mohammed Hawari Type: fix (cherry picked from commit 933b0ca073a481a976ef64bf8f5ddfe19a346f30) --- diff --git a/src/plugins/rdma/input.c b/src/plugins/rdma/input.c index d7fbe96bc85..b1583b59267 100644 --- a/src/plugins/rdma/input.c +++ b/src/plugins/rdma/input.c @@ -974,7 +974,7 @@ rdma_device_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node, n_rx_packets, bc); n_rx_bytes = rdma_device_mlx5dv_fast_input (vm, rxq, bufs, mask, &bt, to_next, - n_rx_packets, bc, ~1); + n_rx_packets, bc, ~0); /* If there are chained buffers, some of the head buffers have a current length higher than buf_sz: it needs to be fixed */