rdma: fix buggy cqe parsing (truncated packets) 24/31724/3
authorMohammed Hawari <mohammed@hawari.fr>
Thu, 25 Mar 2021 16:35:10 +0000 (17:35 +0100)
committerDave Wallace <dwallacelf@gmail.com>
Mon, 19 Apr 2021 15:10:44 +0000 (15:10 +0000)
Change-Id: I17228bd35cc7aa0d207a16502bf1376c75675302
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Type: fix
(cherry picked from commit 933b0ca073a481a976ef64bf8f5ddfe19a346f30)

src/plugins/rdma/input.c

index d7fbe96..b1583b5 100644 (file)
@@ -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 */