opnsense-src/sys/dev/mlx5/mlx5_core
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
..
eswitch.h mlx5: Read number of VF ports from the SR-IOV cap. 2020-03-18 22:43:39 +00:00
flow_table.h mlx5: Restore eswitch management code from attic. 2020-03-18 22:30:56 +00:00
fs_core.h Refactor the flowsteering APIs used by mlx5en(4). This change is needed by 2017-11-10 09:49:08 +00:00
mlx5_alloc.c Use the busdma API to allocate all DMA-able memory. 2017-01-27 11:46:55 +00:00
mlx5_cmd.c Make mlx5_cmd_exec_cb() a safe API in mlx5core. 2020-11-16 10:15:03 +00:00
mlx5_core.h mlx5en: Implement SIOCGIFDOWNREASON. 2020-08-31 16:27:03 +00:00
mlx5_cq.c Report EQE data upon CQ completion in mlx5core. 2020-11-16 10:10:53 +00:00
mlx5_diagnostics.c Move EEPROM information query from a sysctl in mlx5en(4) to an ioctl 2019-10-02 10:14:55 +00:00
mlx5_eq.c Report EQE data upon CQ completion in mlx5core. 2020-11-16 10:10:53 +00:00
mlx5_eswitch.c mlx5: Read number of VF ports from the SR-IOV cap. 2020-03-18 22:43:39 +00:00
mlx5_fs_cmd.c Use the autogenerated interface file for all commands in mlx5core. 2018-03-08 10:43:42 +00:00
mlx5_fs_tree.c Unify prints in mlx5core. 2019-10-02 09:48:01 +00:00
mlx5_fw.c Update the TLS capability bit after recent PRM changes in mlx5en(4). 2020-05-25 12:31:48 +00:00
mlx5_fwdump.c mlx5: Do not try to enable fwdumps if scan space did not responded. 2019-12-02 14:22:55 +00:00
mlx5_health.c Return an error from ioctl(MLX5_FW_RESET) if reset was rejected in mlx5core. 2019-10-02 10:24:13 +00:00
mlx5_mad.c Update version information for the mlx5 and mlx5en(4) modules. 2018-07-18 10:12:53 +00:00
mlx5_main.c Properly cleanup driver during remove_one() in mlx5core. 2020-10-07 17:46:49 +00:00
mlx5_mcg.c Update version information for the mlx5 and mlx5en(4) modules. 2018-07-18 10:12:53 +00:00
mlx5_mpfs.c mlx5: Integrate eswitch and mpfs management code. 2020-03-18 22:33:39 +00:00
mlx5_mr.c Make mlx5_cmd_exec_cb() a safe API in mlx5core. 2020-11-16 10:15:03 +00:00
mlx5_pagealloc.c mlx5: Fix for potential memory leaks. 2018-12-05 13:41:37 +00:00
mlx5_pd.c Update version information for the mlx5 and mlx5en(4) modules. 2018-07-18 10:12:53 +00:00
mlx5_port.c mlx5en: Implement SIOCGIFDOWNREASON. 2020-08-31 16:27:03 +00:00
mlx5_qp.c Use mlx5core to create/destroy all Dynamically Connected Targets, DCTs. 2020-11-16 10:03:18 +00:00
mlx5_rl.c Sync with Linux packet pacing enhancements in mlx5en(4). 2020-05-26 07:41:46 +00:00
mlx5_srq.c Update version information for the mlx5 and mlx5en(4) modules. 2018-07-18 10:12:53 +00:00
mlx5_tls.c Add basic support for TCP/IP based hardware TLS offload to mlx5core. 2019-12-05 15:16:19 +00:00
mlx5_transobj.c Use the autogenerated interface file for all commands in mlx5core. 2018-03-08 10:43:42 +00:00
mlx5_uar.c Update version information for the mlx5 and mlx5en(4) modules. 2018-07-18 10:12:53 +00:00
mlx5_vport.c mlx5en: Fix for inlining issues in transmit path 2018-12-05 14:21:28 +00:00
mlx5_vsc.c Randomize the delay when waiting for VSC flag in mlx5core. 2019-10-02 10:59:44 +00:00
mlx5_wq.c Update version information for the mlx5 and mlx5en(4) modules. 2018-07-18 10:12:53 +00:00
transobj.h Add API functions to modify the transport interface send object, TIS, 2017-11-10 13:50:08 +00:00
wq.h mlx5fpga: Initial code import. 2018-12-05 14:11:20 +00:00