diff options
author | Mohammed Hawari <mohammed@hawari.fr> | 2021-03-25 17:35:10 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-03-25 18:58:08 +0000 |
commit | 933b0ca073a481a976ef64bf8f5ddfe19a346f30 (patch) | |
tree | 1c6101a6b54aa9a042d05120048560176cc45b0a /src/plugins/rdma | |
parent | 403f9b54309a55cd5e1222db11b4571324f5bf52 (diff) |
rdma: fix buggy cqe parsing (truncated packets)
Change-Id: I17228bd35cc7aa0d207a16502bf1376c75675302
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Type: fix
Diffstat (limited to 'src/plugins/rdma')
-rw-r--r-- | src/plugins/rdma/input.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/rdma/input.c b/src/plugins/rdma/input.c index 4435d59ebfa..69b14ee7d46 100644 --- a/src/plugins/rdma/input.c +++ b/src/plugins/rdma/input.c @@ -973,9 +973,8 @@ rdma_device_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node, slow_path_needed = rdma_device_mlx5dv_legacy_rq_slow_path_needed (rxq->buf_sz, 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_bytes = rdma_device_mlx5dv_fast_input ( + vm, rxq, bufs, mask, &bt, to_next, 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 */ |