Dariusz Sosnowski 7274b41756 net/mlx5: allow hairpin Tx queue in host memory
This patch adds a capability to place hairpin Tx queue in host memory
managed by DPDK. This capability is equivalent to storing hairpin SQ's
WQ buffer in host memory.

Hairpin Tx queue creation is extended with allocating a memory buffer of
proper size (calculated from required number of packets and WQE BB size
advertised in HCA capabilities).

force_memory flag of hairpin queue configuration is also supported.
If it is set and:

- allocation of memory buffer fails,
- or hairpin SQ creation fails,

then device start will fail. If it is unset, PMD will fallback to
creating the hairpin SQ with WQ buffer located in unlocked device
memory.

Signed-off-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2022-10-08 18:30:50 +02:00
..
2022-10-03 16:01:56 +02:00
2022-10-03 16:01:56 +02:00
2022-06-01 08:58:27 +02:00
2020-11-27 17:25:24 +01:00
2022-10-03 16:01:56 +02:00
2022-01-12 15:36:32 +01:00
2022-10-03 16:01:56 +02:00
2022-10-03 16:01:56 +02:00
2022-10-03 16:01:56 +02:00