net/mlx5: fix LRO configuration in drop Rx queue
authorMichael Baum <michaelba@nvidia.com>
Mon, 25 Apr 2022 09:30:20 +0000 (12:30 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 26 Apr 2022 09:52:18 +0000 (11:52 +0200)
commit7a9933686574f33ec3444abbc800ac50286510f8
tree0ccfa959931b13024e09c4dc8b62fd8b96533c9a
parenta213b8682117711c8e92475c5bbb321a3d8428dd
net/mlx5: fix LRO configuration in drop Rx queue

The driver wrongly set the LRO configurations to the TIR of the DevX
drop queue even when LRO is not supported.
Actually, the LRO configuration is not relevant to the drop queue at
all.

This causes failure in the initialization of the device, which doesn't
support LRO where the drop queue is created.

Probably, the drop queue creation by DevX missed the fact that LRO is
set by default in the TIR creation function and didn't unset it in the
drop queue case like other cases that unset LRO.

Move the default LRO configuration to unset it and set it only in the
case of all the TIR queues configured with LRO.

Fixes: bc5bee028ebc ("net/mlx5: create drop queue using DevX")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_devx.c