Open ronygut opened 2 days ago
@ronygut I suggest first of all to update the kernel as it seems it is not the latest available on Ubuntu 22
@cardigliano we prefer not to upgrade the kernel unless it is a must. As we need to upgrade both build machine and the installation machine. We have another machine with the exact kernel using ixgbe driver and it works without any problem. Kernel upgrade requires lots of verifications for other stuff that we install. Is there a reason why the PF_RING ice driver is not working? There are undefined symbols when trying to install it. Is it possible to fix it without upgrading the kernel? In case it is a must to upgrade, to which kernel version should we upgrade the Ubuntu 22.04? What is your recommended version that will work with all Intel drivers?
Upgrading the kernel is not a must usually, however we can support the latest kernel only as we cannot run all kernel versions in our lab, especially in case we need to debug an issue. Ubuntu 22 in our lab is currently running 5.15.0-126-generic. This said, it is likely your issue does not depend on the kernel revision itself. Are you running on a VM perhaps? Could you also try installing the driver from packages (this is using a different Makefile) and check if you get the same failure?
@cardigliano , yes we are running on a VM as always. I have an ice.ko from different version of PF_RING I think it is 8.6. This ice.ko can be loaded. I think it is related to the symbols that are introduced in latest PF_RING 8.9 (dev branch). I'm getting undefined symbols for these 2: [Wed Nov 20 18:56:45 2024] ice: Unknown symbol kvm_write_guest (err -2) [Wed Nov 20 18:56:45 2024] ice: Unknown symbol kvm_read_guest (err -2) when you say to try installing from package you mean to build the package from PF_RING source? Which folder in the PF_RING source build the package? Do you mean to install the pf_ring package or a specific package that is related to the ice driver?
Ok got it, it seems the Makefile is enabling the compilation of the ice_migration module which requires kvm_write_guest/kvm_read_guest symbols, but they are not found. Could you try compiling the latest ice driver from Intel https://sourceforge.net/projects/e1000/files/ice%20stable/ and report the output? Please also report the output when compiling our driver (run make clean before).
@cardigliano
Both ice drivers could not be inserted. On both I got undefined symbols from running dmesg -T. Here is the detailed information.
The output from compiling Intel ice driver 1.14.13 (the latest):
echo " The target kernel has CONFIG_MODULE_SIG_ALL enabled, but" ; echo " the signing key cannot be found. Module signing has been" ; echo " disabled for this build." ; make ccflags-y="-std=gnu11 -Wno-nested-externs " -C "/lib/modules/5.15.0-73-generic/build" CONFIG_=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/home/ubuntu/temp_driver/ice-1.14.13/src" NEED_AUX_BUS="0" modules The target kernel has CONFIG_MODULE_SIG_ALL enabled, but the signing key cannot be found. Module signing has been disabled for this build. make[1]: Entering directory '/usr/src/linux-headers-5.15.0-73-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_main.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_controlq.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_common.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_nvm.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_switch.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_sched.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_base.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_lib.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_txrx_lib.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_txrx.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_fltr.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_irq.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_pf_vsi_vlan_ops.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_vsi_vlan_ops.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_vsi_vlan_lib.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_hwmon.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_tc_lib.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_fdir.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_ethtool_fdir.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_acl_main.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_acl.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_acl_ctrl.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_vlan_mode.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_ddp.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_flex_pipe.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_flow.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_parser.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_imem.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_pg_cam.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_metainit.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_bst_tcam.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_ptype_mk.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_mk_grp.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_proto_grp.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_flg_rd.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_xlt_kb.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_parser_rt.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_aux_support.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_lag.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_ieps.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_gnss.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_ethtool.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_devlink.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/devlink/ice_devlink_health.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_fw_update.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_eswitch.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_repr.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_idc.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_debugfs.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_fwlog.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_dcf.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_sriov.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_vf_mbx.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_vf_vsi_vlan_ops.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_virtchnl_allowlist.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_vf_adq.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_virtchnl.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_virtchnl_fdir.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_virtchnl_fsub.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_vf_lib.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_vdcm.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_siov.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_ptp.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_ptp_hw.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_cpi.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_dcb.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_dcb_nl.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_dcb_lib.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_arfs.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_xsk.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/kcompat.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_migration.o LD [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice.o CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice_vfio_pci.o LD [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice-vfio-pci.o MODPOST /home/ubuntu/temp_driver/ice-1.14.13/src/Module.symvers CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice-vfio-pci.mod.o LD [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice-vfio-pci.ko BTF [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice-vfio-pci.ko Skipping BTF generation for /home/ubuntu/temp_driver/ice-1.14.13/src/ice-vfio-pci.ko due to unavailability of vmlinux CC [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice.mod.o LD [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice.ko BTF [M] /home/ubuntu/temp_driver/ice-1.14.13/src/ice.ko Skipping BTF generation for /home/ubuntu/temp_driver/ice-1.14.13/src/ice.ko due to unavailability of vmlinux make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-73-generic'
Tried to insert it to the machine and got the following error:
insmod: ERROR: could not insert module ./ice.ko: Unknown symbol in module Running dmesg -T:
[Fri Nov 22 14:15:51 2024] ice: Unknown symbol kvm_write_guest (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol mtype_get_parent_dev (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol mdev_parent_dev (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol mdev_register_device (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol mdev_unregister_device (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol kvm_read_guest (err -2)
Running modinfo on Intel ice.ko:
filename: /home/ubuntu/temp/./ice.ko firmware: updates/intel/ice/ddp/ice.pkg version: 1.14.13 license: GPL v2 description: Intel(R) Ethernet Connection E800 Series Linux Driver author: Intel Corporation, linux.nics@intel.com srcversion: 5ED18F54F5F99DDB39469D0 alias: pci:v00008086d00001888svsdbcsci alias: pci:v00008086d0000579Fsvsdbcsci alias: pci:v00008086d0000579Esvsdbcsci alias: pci:v00008086d0000579Dsvsdbcsci alias: pci:v00008086d0000579Csvsdbcsci alias: pci:v00008086d0000151Dsvsdbcsci alias: pci:v00008086d0000124Fsvsdbcsci alias: pci:v00008086d0000124Esvsdbcsci alias: pci:v00008086d0000124Dsvsdbcsci alias: pci:v00008086d0000124Csvsdbcsci alias: pci:v00008086d0000189Asvsdbcsci alias: pci:v00008086d00001899svsdbcsci alias: pci:v00008086d00001898svsdbcsci alias: pci:v00008086d00001897svsdbcsci alias: pci:v00008086d00001894svsdbcsci alias: pci:v00008086d00001893svsdbcsci alias: pci:v00008086d00001892svsdbcsci alias: pci:v00008086d00001891svsdbcsci alias: pci:v00008086d00001890svsdbcsci alias: pci:v00008086d0000188Esvsdbcsci alias: pci:v00008086d0000188Dsvsdbcsci alias: pci:v00008086d0000188Csvsdbcsci alias: pci:v00008086d0000188Bsvsdbcsci alias: pci:v00008086d0000188Asvsdbcsci alias: pci:v00008086d0000159Bsvsdbcsci alias: pci:v00008086d0000159Asvsdbcsci alias: pci:v00008086d00001599svsdbcsci alias: pci:v00008086d00001593svsdbcsci alias: pci:v00008086d00001592svsdbcsci alias: pci:v00008086d00001591svsdbcsci depends: gnss,kvm,mdev retpoline: Y name: ice vermagic: 5.15.0-73-generic SMP mod_unload modversions parm: debug:netif level (0=none,...,16=all) (int)
The output from compiling PF_RING Intel ice driver 1.12.7:
echo " The target kernel has CONFIG_MODULE_SIG_ALL enabled, but" ; echo " the signing key cannot be found. Module signing has been" ; echo " disabled for this build." ; make ccflags-y="-D HAVE_PF_RING" -C "/lib/modules/5.15.0-73-generic/build" CONFIG_ICE=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src" NEED_AUX_BUS="0" modules The target kernel has CONFIG_MODULE_SIG_ALL enabled, but the signing key cannot be found. Module signing has been disabled for this build. make[3]: Entering directory '/usr/src/linux-headers-5.15.0-73-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_main.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_controlq.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_common.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_nvm.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_switch.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_sched.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_base.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_lib.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_txrx_lib.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_txrx.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_fltr.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_irq.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_pf_vsi_vlan_ops.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_vsi_vlan_ops.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_vsi_vlan_lib.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_tc_lib.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_fdir.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_ethtool_fdir.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_acl_main.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_acl.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_acl_ctrl.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_vlan_mode.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_ddp.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_flex_pipe.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_flow.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_parser.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_imem.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_pg_cam.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_metainit.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_bst_tcam.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_ptype_mk.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_mk_grp.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_proto_grp.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_flg_rd.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_xlt_kb.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_parser_rt.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_peer_support.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_lag.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_fwlog.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_ieps.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_gnss.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_ethtool.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_idc.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/kcompat.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_devlink.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_fw_update.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_eswitch.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_repr.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_arfs.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_debugfs.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_virtchnl.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_sriov.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_virtchnl_allowlist.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_dcf.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_virtchnl_fdir.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_virtchnl_fsub.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_vf_mbx.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_vf_vsi_vlan_ops.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_vf_adq.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_vf_lib.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_ptp.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_ptp_hw.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_migration.o LD [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice.o CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice_vfio_pci.o LD [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice-vfio-pci.o MODPOST /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/Module.symvers CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice-vfio-pci.mod.o LD [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice-vfio-pci.ko BTF [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice-vfio-pci.ko Skipping BTF generation for /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice-vfio-pci.ko due to unavailability of vmlinux CC [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice.mod.o LD [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice.ko BTF [M] /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice.ko Skipping BTF generation for /home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src/ice.ko due to unavailability of vmlinux make[3]: Leaving directory '/usr/src/linux-headers-5.15.0-73-generic' make[2]: Leaving directory '/home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc/src' make[1]: Leaving directory '/home/ubuntu/ndr/PF_RING_DEV/PF_RING/drivers/intel/ice/ice-1.12.7-zc'
Trying to insert the ice.ko gave the following error: insmod: ERROR: could not insert module ./ice.ko: Unknown symbol in module dmesg -T:
[Fri Nov 22 14:15:51 2024] ice: Unknown symbol kvm_write_guest (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol mtype_get_parent_dev (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol mdev_parent_dev (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol mdev_register_device (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol mdev_unregister_device (err -2) [Fri Nov 22 14:15:51 2024] ice: Unknown symbol kvm_read_guest (err -2) [Fri Nov 22 14:17:53 2024] ice: Unknown symbol kvm_write_guest (err -2) [Fri Nov 22 14:17:53 2024] ice: Unknown symbol mtype_get_parent_dev (err -2) [Fri Nov 22 14:17:53 2024] ice: Unknown symbol mdev_parent_dev (err -2) [Fri Nov 22 14:17:53 2024] ice: Unknown symbol mdev_register_device (err -2) [Fri Nov 22 14:17:53 2024] ice: Unknown symbol mdev_unregister_device (err -2) [Fri Nov 22 14:17:53 2024] ice: Unknown symbol kvm_read_guest (err -2) [Fri Nov 22 14:22:28 2024] ice: Unknown symbol kvm_write_guest (err -2) [Fri Nov 22 14:22:28 2024] ice: Unknown symbol kvm_read_guest (err -2)
running modinfo on PF_RING ice.ko filename: /home/ubuntu/temp/./ice.ko firmware: updates/intel/ice/ddp/ice.pkg version: 1.12.7 license: GPL v2 description: Intel(R) Ethernet Connection E800 Series Linux Driver author: Intel Corporation, linux.nics@intel.com srcversion: 96B3ED8DDFC8C3B6AB429D4 alias: pci:v00008086d00001888svsdbcsci alias: pci:v00008086d0000579Fsvsdbcsci alias: pci:v00008086d0000579Esvsdbcsci alias: pci:v00008086d0000579Dsvsdbcsci alias: pci:v00008086d0000579Csvsdbcsci alias: pci:v00008086d0000151Dsvsdbcsci alias: pci:v00008086d0000124Fsvsdbcsci alias: pci:v00008086d0000124Esvsdbcsci alias: pci:v00008086d0000124Dsvsdbcsci alias: pci:v00008086d0000124Csvsdbcsci alias: pci:v00008086d0000189Asvsdbcsci alias: pci:v00008086d00001899svsdbcsci alias: pci:v00008086d00001898svsdbcsci alias: pci:v00008086d00001897svsdbcsci alias: pci:v00008086d00001894svsdbcsci alias: pci:v00008086d00001893svsdbcsci alias: pci:v00008086d00001892svsdbcsci alias: pci:v00008086d00001891svsdbcsci alias: pci:v00008086d00001890svsdbcsci alias: pci:v00008086d0000188Esvsdbcsci alias: pci:v00008086d0000188Dsvsdbcsci alias: pci:v00008086d0000188Csvsdbcsci alias: pci:v00008086d0000188Bsvsdbcsci alias: pci:v00008086d0000188Asvsdbcsci alias: pci:v00008086d0000159Bsvsdbcsci alias: pci:v00008086d0000159Asvsdbcsci alias: pci:v00008086d00001599svsdbcsci alias: pci:v00008086d00001593svsdbcsci alias: pci:v00008086d00001592svsdbcsci alias: pci:v00008086d00001591svsdbcsci depends: gnss,kvm,pf_ring retpoline: Y name: ice vermagic: 5.15.0-73-generic SMP mod_unload modversions parm: RSS:Number of Receive-Side Scaling Descriptor Queues, default 0=number of cpus (array of int) parm: enable_debug:int parm: debug:PF_RING debug (0=none, 1=enabled) (int) parm: fwlog_level:FW event level to log. All levels <= to the specified value are enabled. Values: 0=none, 1=error, 2=warning, 3=normal, 4=verbose. Invalid values: >=5 (ushort) parm: fwlog_events:FW events to log (32-bit mask) (ulong)
This version from older PF_RING could be inserted without any error. modinfo on this version: modinfo ./ice.ko filename: /opt/cognyte/ndr/pfring/./ice.ko firmware: updates/intel/ice/ddp/ice.pkg version: 1.9.11 license: GPL v2 description: Intel(R) Ethernet Connection E800 Series Linux Driver author: Intel Corporation, linux.nics@intel.com srcversion: 1211FFBA8824DD2371E7931 alias: pci:v00008086d00001888svsdbcsci alias: pci:v00008086d0000579Fsvsdbcsci alias: pci:v00008086d0000579Esvsdbcsci alias: pci:v00008086d0000579Dsvsdbcsci alias: pci:v00008086d0000579Csvsdbcsci alias: pci:v00008086d0000151Dsvsdbcsci alias: pci:v00008086d0000124Fsvsdbcsci alias: pci:v00008086d0000124Esvsdbcsci alias: pci:v00008086d0000124Dsvsdbcsci alias: pci:v00008086d0000124Csvsdbcsci alias: pci:v00008086d0000189Asvsdbcsci alias: pci:v00008086d00001899svsdbcsci alias: pci:v00008086d00001898svsdbcsci alias: pci:v00008086d00001897svsdbcsci alias: pci:v00008086d00001894svsdbcsci alias: pci:v00008086d00001893svsdbcsci alias: pci:v00008086d00001892svsdbcsci alias: pci:v00008086d00001891svsdbcsci alias: pci:v00008086d00001890svsdbcsci alias: pci:v00008086d0000188Esvsdbcsci alias: pci:v00008086d0000188Dsvsdbcsci alias: pci:v00008086d0000188Csvsdbcsci alias: pci:v00008086d0000188Bsvsdbcsci alias: pci:v00008086d0000188Asvsdbcsci alias: pci:v00008086d0000159Bsvsdbcsci alias: pci:v00008086d0000159Asvsdbcsci alias: pci:v00008086d00001599svsdbcsci alias: pci:v00008086d00001593svsdbcsci alias: pci:v00008086d00001592svsdbcsci alias: pci:v00008086d00001591svsdbcsci depends: pf_ring retpoline: Y name: ice vermagic: 5.15.0-73-generic SMP mod_unload modversions parm: RSS:Number of Receive-Side Scaling Descriptor Queues, default 0=number of cpus (array of int) parm: enable_debug:int parm: debug:PF_RING debug (0=none, 1=enabled) (int) parm: fwlog_level:FW event level to log. All levels <= to the specified value are enabled. Values: 0=none, 1=error, 2=warning, 3=normal, 4=verbose. Invalid values: >=5 (ushort) parm: fwlog_events:FW events to log (32-bit mask) (ulong)
I have an interface that is 10Gbit ice module and I want to install PF_RING ZC on it. I run the load_driver.sh for the ice module and I get the following error:
Can't insert module ice.ko - getting error Uknknown symbol in module The interface is then didappers.
This is the information on the interface: (ens192f0) ethtool -i ens192f0 driver: ice version: 5.15.0-73-generic firmware-version: 4.40 0x8001ba1e 22.5.7 expansion-rom-version: bus-info: 0000:0b:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes
modinfo ice filename: /lib/modules/5.15.0-73-generic/kernel/drivers/net/ethernet/intel/ice/ice.ko firmware: intel/ice/ddp/ice.pkg license: GPL v2 description: Intel(R) Ethernet Connection E800 Series Linux Driver author: Intel Corporation, linux.nics@intel.com srcversion: CC3872D9A13A74FBF2CED55 alias: pci:v00008086d0000151Dsvsdbcsci alias: pci:v00008086d0000124Fsvsdbcsci alias: pci:v00008086d0000124Esvsdbcsci alias: pci:v00008086d0000124Dsvsdbcsci alias: pci:v00008086d0000124Csvsdbcsci alias: pci:v00008086d0000189Asvsdbcsci alias: pci:v00008086d00001899svsdbcsci alias: pci:v00008086d00001898svsdbcsci alias: pci:v00008086d00001897svsdbcsci alias: pci:v00008086d00001894svsdbcsci alias: pci:v00008086d00001893svsdbcsci alias: pci:v00008086d00001892svsdbcsci alias: pci:v00008086d00001891svsdbcsci alias: pci:v00008086d00001890svsdbcsci alias: pci:v00008086d0000188Esvsdbcsci alias: pci:v00008086d0000188Dsvsdbcsci alias: pci:v00008086d0000188Csvsdbcsci alias: pci:v00008086d0000188Bsvsdbcsci alias: pci:v00008086d0000188Asvsdbcsci alias: pci:v00008086d0000159Bsvsdbcsci alias: pci:v00008086d0000159Asvsdbcsci alias: pci:v00008086d00001599svsdbcsci alias: pci:v00008086d00001593svsdbcsci alias: pci:v00008086d00001592svsdbcsci alias: pci:v00008086d00001591svsdbcsci* depends: retpoline: Y intree: Y name: ice vermagic: 5.15.0-73-generic SMP mod_unload modversions sig_id: PKCS#7 signer: Build time autogenerated kernel key sig_key: 57:61:37:71:BE:F4:68:C5:BD:86:42:AF:17:E2:D7:9A:0A:B2:05:50 sig_hashalgo: sha512 signature: 21:D2:60:53:09:0B:5D:D8:1E:8D:DC:C0:3D:40:DF:43:3C:2D:AB:AC: 4E:46:A6:9B:98:86:7B:03:88:BC:09:51:23:47:F2:2C:5F:B6:7E:F5: D9:BD:63:F8:B1:A6:39:A4:85:43:83:83:00:44:9A:B0:FD:68:CA:45: 40:91:0B:35:8C:23:8C:BA:56:88:42:CF:C1:68:71:13:8D:5B:A2:87: 8D:2A:C9:16:EA:B9:EA:45:44:3A:1B:AE:FD:5A:BC:06:14:3B:A1:24: 32:9C:0A:AF:40:2D:B8:33:DF:43:03:D4:05:D7:EE:98:09:AB:7B:B4: ED:8E:73:10:E0:45:D7:11:45:C2:82:C2:98:0E:CC:CC:05:8C:9C:69: A1:E3:A2:F6:77:5C:2F:23:8D:B3:1C:51:24:C5:C3:23:DE:56:29:D5: B9:34:51:39:CF:45:DD:25:B2:88:D0:1B:C3:E2:55:46:00:91:81:2B: 4E:43:87:80:7F:F6:C7:A9:F2:67:F6:00:09:7C:BF:2E:4E:86:EA:FA: 05:98:D6:B9:2C:9C:6B:7F:39:17:72:84:98:00:5B:5A:24:15:6A:12: B4:0B:44:09:AA:C1:9C:93:FA:3E:2C:C8:E3:8B:5B:02:94:11:6D:3F: 83:76:C9:AD:29:26:2F:AA:F8:3F:FE:F6:75:89:FA:7A:A6:01:FD:6D: 89:20:B6:21:28:F4:90:D0:7D:2C:F6:AC:0F:58:AB:16:0A:67:56:F0: DF:E9:0D:5F:BA:B1:69:FF:90:53:C3:31:A8:9B:37:B4:B8:04:EE:60: CF:9A:05:22:FF:3E:9E:D7:D3:B2:21:E9:57:DA:06:5B:0D:94:3F:3E: BD:39:5B:00:E1:6C:37:26:B3:4F:E1:D1:E7:D6:A7:46:2B:B8:A6:2F: 95:F8:CD:21:CE:9B:C5:1F:75:16:29:AB:AE:A5:85:49:25:7B:A5:F5: 52:36:E5:7B:06:DC:18:0F:37:45:18:64:73:E5:73:69:C9:F0:DC:4B: 30:9F:DC:0E:B1:BB:B1:BF:06:0C:D8:16:7E:2F:F3:48:07:FE:1D:40: EF:6E:30:4A:C7:0A:79:66:38:77:26:1B:F1:9C:81:8A:93:E9:18:1F: 91:91:BE:AD:7D:80:D4:68:05:1D:44:E6:A9:74:CF:35:2A:E3:9B:E9: 8A:F1:F9:AC:19:F3:F0:59:4A:DC:3A:D8:AD:9C:BA:B1:17:07:C5:9F: F8:FA:89:D4:2F:E9:AD:D1:2B:2E:89:AC:CA:AA:1A:BE:3F:BC:E2:73: 3B:EA:A2:1D:EC:0C:02:B9:46:69:82:8B:EF:79:05:A9:95:79:5E:DD: 57:24:EC:0A:23:F7:2C:75:96:3E:5E:4B parm: debug:netif level (0=none,...,16=all) (int)
I built the latest dev PF_RING branch and took the ice.ko from this build. I built it on machine with has the same kernel version as the machine that I run it on. kernel version: 5.15.0-73-generic I also took pf_ring.ko from this build. pf_ring.ko loaded successfully.
running dmesg -T
[Wed Nov 20 18:56:45 2024] gnss: GNSS driver registered with major 236 [Wed Nov 20 18:56:45 2024] ice: Unknown symbol kvm_write_guest (err -2) [Wed Nov 20 18:56:45 2024] ice: Unknown symbol kvm_read_guest (err -2) [Wed Nov 20 18:56:46 2024] load_driver_ice (2582): drop_caches: 3
server information: Ubuntu 22.04 Linux server 5.15.0-73-generic #80-Ubuntu SMP Mon May 15 15:18:26 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
You help is appreciated.