rdma: fix buggy cqe parsing (truncated packets) 72/31772/2
authorMohammed Hawari <mohammed@hawari.fr>
Thu, 25 Mar 2021 16:35:10 +0000 (17:35 +0100)
committerDamjan Marion <dmarion@me.com>
Thu, 25 Mar 2021 18:58:08 +0000 (18:58 +0000)
Change-Id: I17228bd35cc7aa0d207a16502bf1376c75675302
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Type: fix

src/plugins/rdma/input.c

index 4435d59..69b14ee 100644 (file)
@@ -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 */