freebsd-skq/sys/dev/mlx5
Hans Petter Selasky 7eefcb5eea Make mlx5_cmd_exec_cb() a safe API in mlx5core.
APIs that have deferred callbacks should have some kind of cleanup
function that callers can use to fence the callbacks. Otherwise things
like module unloading can lead to dangling function pointers, or worse.

The IB MR code is the only place that calls this function and had a
really poor attempt at creating this fence. Provide a good version in
the core code as future patches will add more places that need this
fence.

Linux commit:
e355477ed9e4f401e3931043df97325d38552d54

MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2020-11-16 10:15:03 +00:00
..
mlx5_accel
mlx5_core Make mlx5_cmd_exec_cb() a safe API in mlx5core. 2020-11-16 10:15:03 +00:00
mlx5_en Report EQE data upon CQ completion in mlx5core. 2020-11-16 10:10:53 +00:00
mlx5_fpga
mlx5_fpga_tools Infiniband clients must be attached and detached in a specific order in ibcore. 2020-07-06 08:50:11 +00:00
mlx5_ib Make mlx5_cmd_exec_cb() a safe API in mlx5core. 2020-11-16 10:15:03 +00:00
mlx5_lib
cmd.h
cq.h Report EQE data upon CQ completion in mlx5core. 2020-11-16 10:10:53 +00:00
device.h mlx5_core: add more port module event types to decode. 2020-05-20 11:20:45 +00:00
diagnostics.h
doorbell.h
driver.h Make mlx5_cmd_exec_cb() a safe API in mlx5core. 2020-11-16 10:15:03 +00:00
fs.h
mlx5_ifc.h mlx5_core: add mlx5_query_pddr(). 2020-08-31 16:25:55 +00:00
mlx5_rdma_if.h
mlx5io.h
mpfs.h mlx5: Integrate eswitch and mpfs management code. 2020-03-18 22:33:39 +00:00
port.h mlx5en: Support 50GBase-KR4 media type in mlx5en driver. 2020-03-04 17:13:35 +00:00
qp.h Use mlx5core to create/destroy all Dynamically Connected Targets, DCTs. 2020-11-16 10:03:18 +00:00
srq.h
tls.h Add basic support for TCP/IP based hardware TLS offload to mlx5core. 2019-12-05 15:16:19 +00:00
vport.h