path: root/drivers/net/mlx5/mlx5_rxtx.h
diff options
authorDekel Peled <>2019-09-22 10:47:13 +0300
committerFerruh Yigit <>2019-10-07 15:00:57 +0200
commita06ce95464d75a5c721f03c540d583ab42232f0f (patch)
tree0294fd2787ac6bea1da43a1711de52ae4914cf08 /drivers/net/mlx5/mlx5_rxtx.h
parent06def9bc4e6cf3836192f8e5a0e939f8e56a5f84 (diff)
net/mlx5: fix vectorized Rx burst error handling
In the process of recovery from error CQE, when using vectorized Rx burst, the initialization of data length in mbufs was not done. As a result the wrong length was left written in mbuf, causing memory overwrite or wrong error report. This patch fixes the initialization of mbuf data length during recovery from error CQE, when using vectorized Rx burst, Fixes: 88c0733535d6 ("net/mlx5: extend Rx completion with error handling") Cc: Signed-off-by: Dekel Peled <> Acked-by: Matan Azrad <>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx.h')
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h
index 4f73d91..4bb28a4 100644
--- a/drivers/net/mlx5/mlx5_rxtx.h
+++ b/drivers/net/mlx5/mlx5_rxtx.h
@@ -406,8 +406,7 @@ __rte_noinline int mlx5_tx_error_cqe_handle
volatile struct mlx5_err_cqe *err_cqe);
uint16_t mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n);
void mlx5_rxq_initialize(struct mlx5_rxq_data *rxq);
-__rte_noinline int mlx5_rx_err_handle(struct mlx5_rxq_data *rxq,
- uint8_t mbuf_prepare);
+__rte_noinline int mlx5_rx_err_handle(struct mlx5_rxq_data *rxq, uint8_t vec);
void mlx5_mprq_buf_free_cb(void *addr, void *opaque);
void mlx5_mprq_buf_free(struct mlx5_mprq_buf *buf);
uint16_t mlx5_rx_burst_mprq(void *dpdk_rxq, struct rte_mbuf **pkts,