[RFC 3/3] net/mlx5: add external Rx queue

2022-01-01 Thread michaelba
From: Michael Baum Add API to map and unmap HW queue id to rte_flow queue id. Signed-off-by: Michael Baum --- drivers/net/mlx5/mlx5_rx.h | 6 + drivers/net/mlx5/rte_pmd_mlx5.h | 45 + 2 files changed, 51 insertions(+) diff --git a/drivers/net/mlx5/mlx

[RFC 2/3] common/mlx5: add shared PD support

2022-01-01 Thread michaelba
From: Michael Baum Add option to probe common device using import CTX/PD functions instead of create functions. This option requires accepting the context FD and the PD handle as devargs. Signed-off-by: Michael Baum --- drivers/common/mlx5/linux/mlx5_common_os.c | 160 +-- dr

[RFC 1/3] common/mlx5: glue device and PD importation

2022-01-01 Thread michaelba
From: Michael Baum Add support for rdma-core API to import device. The API gets ibv_context file descriptor and returns an ibv_context pointer that is associated with the given file descriptor. Add also support for rdma-core API to import PD. The API gets ibv_context and PD handle and returns a p

[RFC 0/3] net/mlx5: add external RxQ support

2022-01-01 Thread michaelba
From: Michael Baum These patches add support to external Rx queues. External queue is a queue that is managed by a process external to DPDK, but uses DPDK process to generate its flow rules. For the hardware to allow the DPDK process to set rules for it, the process needs to use the same PD of t

[RFC 3/3] common/mlx5: refactore devargs management

2022-01-01 Thread michaelba
From: Michael Baum Improve the devargs handling in the following aspects: - Parse the devargs string only once. - Return error and report for unknown keys. - Return error for changing common devargs in probe again. Signed-off-by: Michael Baum --- drivers/common/mlx5/mlx5_common.c | 313 +++

[RFC 1/3] net/mlx5: remove some duplications

2022-01-01 Thread michaelba
From: Michael Baum Removes duplications in a few kinds: - Same function or operation for both Linux and Windows. - Same variable/structure for both common and net drivers. - Function called twice during spawn function. - Query device by Verbs twice during probing. Signed-off-by: Michael Baum --

[RFC 0/3] common/mlx5: refactor devargs management

2022-01-01 Thread michaelba
From: Michael Baum These patches rearrange the management of the devargs on two different levels. The first splits the net driver's devargs into two categories, device-dependent devargs and port-dependent devargs. Arguments that depend on the device are updated once in the creation of the shared