Where can I get the NIC firmware source code of the NVMF target offload?

For example, how does the NIC react to the MLX5_CMD_OP_CREATE_NVMF_BACKEND_CTRL op code?

how to get source code from ConnectX®-5 firmware ?I want to know the procedure about MLX5 NIC.

I’m afraid Mellanox fw source code is not within public availability. To get the source code, you would need to start a non-disclosure agreement (NDA) procedure vs. Mellanox. It is suggested that you mail to MR. Jaming Shu (jamings@mellanox.com) - Mellanox director in China and I’m sure he will provide you all the information you need on this