NVMEoF Target Offload setup on Connect X

Hi All,

I am following the guide to setup NVMEof Target Offload.
https://enterprise-support.nvidia.com/s/article/howto-configure-sr-iov-for-connect-ib-connectx-4-with-kvm--infiniband-x

Following the same steps executing the step.
echo 1 > /sys/kernel/config/nvmet/subsystems/testsubsystem/attr_offload

I am getting an error permission denied. Running all commands in the root mode.

testsubsystem does not contain any file with name attr_offload. We also cannot create a new file in this directory since it is /sys/kernel which contains temporary files generated by Kernel.

Using the Ofed version 5.9 with --with-nvmf flags. Centos 8.3 version.

Any help regarding this would be helpful.

Regards,
Umer Idrees

Able to resolve this issue by using the following flags while installing ofed.

sudo ./mlnxofedinstall --kmp --add-kernel-support --skip-repo --with-nvmf

The KMP flag can be used to compile the necessary kernel modules for the installed kernel version.

1 Like

Has your problem been solved?
I want to know, does bluefield support attr_offload offloading in NVMe-oF scenarios, and are there any special precautions?