net/mlx5: fix vectorized Rx burst error handling
authorDekel Peled <dekelp@mellanox.com>
Sun, 22 Sep 2019 07:47:13 +0000 (10:47 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:57 +0000 (15:00 +0200)
commita06ce95464d75a5c721f03c540d583ab42232f0f
tree0294fd2787ac6bea1da43a1711de52ae4914cf08
parent06def9bc4e6cf3836192f8e5a0e939f8e56a5f84
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: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_rxtx.h