Does smc work correctly in OFED 24.10?

Hi
My operation is ubuntu 22.04 kernel is 6.8.0-60-generic . When I modprobe smc. it failed. So I dont known why. can anyone help me?
FAILED LOG
root@An1H3canna:~# modprobe smc -vv
modprobe: INFO: ../libkmod/libkmod.c:367 kmod_set_log_fn() custom logging function 0x5da5f57e4830 registered
insmod /lib/modules/6.8.0-60-generic/kernel/net/smc/smc.ko
modprobe: INFO: ../libkmod/libkmod-module.c:892 kmod_module_insert_module() Failed to insert module ‘/lib/modules/6.8.0-60-generic/kernel/net/smc/smc.ko’: Invalid argument
modprobe: ERROR: could not insert ‘smc’: Invalid argument
modprobe: INFO: ../libkmod/libkmod.c:334 kmod_unref() context 0x5da60e54b490 released
dmesg -T
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_unregister_client
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_unregister_client (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol rdma_read_gid_l2_fields
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol rdma_read_gid_l2_fields (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol __ib_alloc_pd
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol __ib_alloc_pd (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_dereg_mr_user
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_dereg_mr_user (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol rdma_dev_access_netns
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol rdma_dev_access_netns (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_query_qp
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_query_qp (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol rdma_read_gid_attr_ndev_rcu
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol rdma_read_gid_attr_ndev_rcu (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_register_event_handler
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_register_event_handler (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_unregister_event_handler
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_unregister_event_handler (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_register_client
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_register_client (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_map_mr_sg
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_map_mr_sg (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_set_client_data
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_set_client_data (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol rdma_put_gid_attr
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol rdma_put_gid_attr (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_query_port
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_query_port (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol __ib_create_cq
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol __ib_create_cq (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_destroy_qp_user
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_destroy_qp_user (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_alloc_mr
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_alloc_mr (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_destroy_cq_user
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_destroy_cq_user (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_modify_qp
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_modify_qp (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_dma_virt_map_sg
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_dma_virt_map_sg (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_create_qp_kernel
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_create_qp_kernel (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol ib_dealloc_pd_user
[Fri Jun 13 14:48:53 2025] smc: Unknown symbol ib_dealloc_pd_user (err -22)
[Fri Jun 13 14:48:53 2025] smc: disagrees about version of symbol rdma_get_gid_attr
uname -a
Linux An1H3canna 6.8.0-60-generic #63~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 22 19:00:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
dpkg -l| grep OFED
ii iser-dkms 24.10.OFED.24.10.2.1.8.1-1 all DKMS support fo iser kernel modules
ii isert-dkms 24.10.OFED.24.10.2.1.8.1-1 all DKMS support fo isert kernel modules
ii knem 1.1.4.90mlnx3-OFED.23.10.0.2.1.1 amd64 userspace tools for the KNEM kernel module
ii knem-dkms 1.1.4.90mlnx3-OFED.23.10.0.2.1.1 all DKMS support for mlnx-ofed kernel modules
ii mlnx-ofed-kernel-dkms 24.10.OFED.24.10.2.1.8.1-1 all DKMS support for mlnx-ofed kernel modules
ii mlnx-ofed-kernel-utils 24.10.OFED.24.10.2.1.8.1-1 amd64 Userspace tools to restart and tune mlnx-ofed kernel modules
ii mlnx-tools 24.10-0.2410068 amd64 Userspace tools to restart and tune MLNX_OFED kernel modules
ii ofed-scripts 24.10.OFED.24.10.2.1.8-1 amd64 MLNX_OFED utilities
ii srp-dkms 24.10.OFED.24.10.2.1.8.1-1 all DKMS support fo srp kernel modules

Hi @rwg1335252904 ,

There are many reasons may cause this issue.

The module smc depends on ib_core.

  1. Check version

Use these commands:
(1) uname -r
(2) modinfo ib_core
(3) modinfo smc

Make sure that the vermagic version shown in the output of the modinfo command is the same as the output of uname -r .

  1. Verify which ib_core.ko to use

After installing OFED, there might be multiple files named ib_core.ko, such as:

  • /var/lib/dkms/mlnx-ofed-kernel/*/module/ib_core.ko
  • /usr/lib/modules/*/kernel/drivers/infiniband/core/ib_core.ko
  • /usr/lib/modules/*/updates/dkms/ib_core.ko

Check which ib_core.ko you are using with command modinfo ib_core.
Then you may need to recompile smc.ko with the right Module.symvers:

  • /usr/src/linux-headers-$(uname -r)/Module.symvers
  • /usr/src/ofa_kernel/x86_64/$(uname -r)/Module.symvers

You can try them out and find out which is the right one.

Then you can insert the newly compiled smc.ko using insmod .

Best regards!