net/mlx5: fix Rx queue object allocation with MPRQ
authorOphir Munk <ophirmu@nvidia.com>
Wed, 4 Nov 2020 07:55:20 +0000 (07:55 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 15:26:53 +0000 (16:26 +0100)
commit6c3dc9ebaa9f8bc9257299ec703a9a0fbff627b0
tree4fdbe4eaf9ec2fde68728d7570bdab7da039bf80
parent1ef8c6290c86caef6cc588c8737450383a59338a
net/mlx5: fix Rx queue object allocation with MPRQ

The space for extra buffer pointers used by MPRQ routines was not
allocated in Rx queue object creation structure causing memory
corruption.
The fix allocates the extra memory for the pointers in case MPRQ is
engaged.

Fixes: a0a45e8af723 ("net/mlx5: configure Rx queue for buffer split")

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_rxq.c