Unable to change mode to legacy mode - devlink fails on one port, hangs on the other.

I am trying to test IPSec on Bluefield-2 and following steps mentioned in https://community.mellanox.com/s/article/ConnectX-6DX-Bluefield-2-IPsec-HW-Full-Offload-Configuration-Guide.

When I am trying change the mode on p1 as:

devlink dev eswitch set pci/0000:03:00.1 mode legacy

Error is thrown: “devlink answers: Device or resource busy”

and If I try on p0 as

“devlink dev eswitch set pci/0000:03:00.0 mode legacy” then it just get stuck there.

Here are the BF’s details:

ubuntu@linux:~$ sudo bfvcheck

Beginning version check…

-RECOMMENDED VERSIONS-

ATF: v2.2(release):3.5.0-6-g1f6d422

UEFI: 3.5.0-2-gc1b5d64

FW: 24.29.1016

-INSTALLED VERSIONS-

ATF: v2.2(release):3.5.0-6-g1f6d422

UEFI: 3.5.0-2-gc1b5d64

FW: 24.29.1016

Version check complete.

No issues found.

I wonder if I am missing anything!

Hello Malik,

Thank you for posting your inquiry on the NVIDIA Networking Community.

Based on the information provided, we would recommend:

If you are still experiencing issues after this, please open a NVEX Networking Support ticket by sending an email to networking-support@nvidia.com. You have a valid support contract so our support engineers will be able to assist you further through the support ticket.

Thank you and regards,

~NVIDIA Networking Technical Support