freebsd-dev/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 mlx5fpga: Initial code import. 2018-12-05 14:11:20 +00:00
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 Add MLX5_FPGA_RELOAD IOCTL(2) to mlx5fpga. 2019-05-08 10:25:14 +00:00
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 mlx5fpga: Initial code import. 2018-12-05 14:11:20 +00:00
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 Move EEPROM information query from a sysctl in mlx5en(4) to an ioctl 2019-10-02 10:14:55 +00:00
doorbell.h Update version information for the mlx5 and mlx5en(4) modules. 2018-07-18 10:12:53 +00:00
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 Update version information for the mlx5 and mlx5en(4) modules. 2018-07-18 10:12:53 +00:00
mlx5io.h Move EEPROM information query from a sysctl in mlx5en(4) to an ioctl 2019-10-02 10:14:55 +00:00
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 Update version information for the mlx5 and mlx5en(4) modules. 2018-07-18 10:12:53 +00:00
tls.h Add basic support for TCP/IP based hardware TLS offload to mlx5core. 2019-12-05 15:16:19 +00:00
vport.h mlx5en: Fix for inlining issues in transmit path 2018-12-05 14:21:28 +00:00