net/mlx5: fix buffer split offload advertising
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Fri, 11 Dec 2020 11:44:52 +0000 (11:44 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:05 +0000 (16:03 +0100)
commitddb0384346be3e1a0f0f478831b3c5f4adc20be9
tree39407f24edbcf93100f53912e07fbfa1da242f9b
parentac340e1fe5fdaa6cd3ed90feaf5443a3c906e2ff
net/mlx5: fix buffer split offload advertising

The buffer split Rx offload is not compatible with Multi-Packet
Receiving Queue (MPRQ) Rx offload, hence, the buffer split
offload flag RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT and other related
values should be advertised only if there is no MPRQ engaged.

Fixes: 6c8f7f1c1877 ("net/mlx5: report Rx buffer split capabilities")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Reviewed-by: Asaf Penso <asafp@nvidia.com>
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_rxq.c