我们想把ixgbe-5.1.3和ixgbevf-4.1.2都编译进我们的内核
但是两个驱动中有很多函数重复定义,主要体现在两个驱动中的xxx_mbx.c, kcompact.c等几个文件
因为官方发布的ixgbe驱动是只有out-of-tree版本的,只能以ko模块的方式存在。 并且在如ixgbe-5.1.3.tar.gz的包内的README文件中已申明了官方不会去支持这样的内核静态链接驱动
This driver is only supported as a loadable module at this time. Intel is
not supplying patches against the kernel source to allow for static linking of
https://sourceforge.net/projects/e1000/files/ixgbe%20stable/
但是两个驱动中有很多函数重复定义,主要体现在两个驱动中的xxx_mbx.c, kcompact.c等几个文件
因为官方发布的ixgbe驱动是只有out-of-tree版本的,只能以ko模块的方式存在。 并且在如ixgbe-5.1.3.tar.gz的包内的README文件中已申明了官方不会去支持这样的内核静态链接驱动
This driver is only supported as a loadable module at this time. Intel is
not supplying patches against the kernel source to allow for static linking of
the drivers.
可以先试试 把ixgbe和ixgbevf中重名的函数, ixgbevf中函数名改为xxx_vf()版本, 调用的地方也需要相应修改;
(重点注意:ixgbevf中 如果暴露为 全局symbol的函数,要一个一个试看能否改名;)
https://sourceforge.net/projects/e1000/files/ixgbe%20stable/
https://downloadcenter.intel.com/download/22283/Ethernet-Intel-Ethernet-Adapter-Connections-CD?product=36773