linux-stable/include/linux/mlx5
Maher Sanalla f14c1a14e6 net/mlx5: Allocate completion EQs dynamically
This commit enables the dynamic allocation of EQs at runtime, allowing
for more flexibility in managing completion EQs and reducing the memory
overhead of driver load. Whenever a CQ is created for a given vector
index, the driver will lookup to see if there is an already mapped
completion EQ for that vector, if so, utilize it. Otherwise, allocate a
new EQ on demand and then utilize it for the CQ completion events.

Add a protection lock to the EQ table to protect from concurrent EQ
creation attempts.

While at it, replace mlx5_vector2irqn()/mlx5_vector2eqn() with
mlx5_comp_eqn_get() and mlx5_comp_irqn_get() which will allocate an
EQ on demand if no EQ is found for the given vector.

Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
2023-08-07 10:53:52 -07:00
..
cq.h
device.h net/mlx5: Handle sync reset unload event 2023-06-16 12:02:07 -07:00
doorbell.h
driver.h net/mlx5: Allocate completion EQs dynamically 2023-08-07 10:53:52 -07:00
eq.h
eswitch.h net/mlx5e: Handle IPsec offload for RX datapath in switchdev mode 2023-08-02 18:37:29 -07:00
fs.h net/mlx5e: Support IPsec packet offload for TX in switchdev mode 2023-08-02 18:37:29 -07:00
fs_helpers.h
mlx5_ifc.h net/mlx5: Add relevant capabilities bits to support NAT-T 2023-07-25 15:08:57 +02:00
mlx5_ifc_fpga.h
mlx5_ifc_vdpa.h
mpfs.h
port.h net/mlx5: Move needed PTYS functions to core layer 2023-03-15 22:12:08 -07:00
qp.h net/mlx5: Add new WQE for updating flow table 2023-04-11 20:57:37 -07:00
rsc_dump.h
transobj.h
vport.h net/mlx5: Update vport caps query/set for EC VFs 2023-06-09 18:40:51 -07:00