查看内核模块加载时参数
[root@localhost dpdk-19.11]# ls /sys/module/rte_kni/parameters/ carrier kthread_mode lo_mode [root@localhost dpdk-19.11]# cat /sys/module/rte_kni/parameters/* on (null) (null) [root@localhost dpdk-19.11]#
当用dmesg|grep e1000查看的信息如下 [ 30.239355] e1000: probe of 0000:02:00.0 failed with error -5 [ 2541.874552] e1000: 0000:02:00.0: e1000_probe: The EEPROM Checksum Is Not Valid 只要在加载驱动的时候加入参数 eeprom_bad_csum_allow=1即可解决问题 查看e1000驱动模块的参数: modinfo -p e1000 debug:Debug level (0=none,...,16=all) eeprom_bad_csum_allow:Allow bad EEPROM checksums copybreak:Maximum size of packet that is copied to a new buffer on receive KumeranLockLoss:Enable Kumeran lock loss workaround SmartPowerDownEnable:Enable PHY smart power down InterruptThrottleRate:Interrupt Throttling Rate RxAbsIntDelay:Receive Absolute Interrupt Delay RxIntDelay:Receive Interrupt Delay TxAbsIntDelay:Transmit Absolute Interrupt Delay TxIntDelay:Transmit Interrupt Delay XsumRX:Disable or enable Receive Checksum offload FlowControl:Flow Control setting AutoNeg:Advertised auto-negotiation setting Duplex:Duplex setting Speed:Speed setting RxDescriptors:Number of receive descriptors TxDescriptors:Number of transmit descriptors 修改 /etc/modprobe.conf文件,加入一行: options e1000 eeprom_bad_csum_allow=1 然后执行这两条命令 modprobe -r e1000 modprobe e1000 即可解决问题。