Can't assign NIC [Aquantia Corp. AQC107]
-
Nice work!
-
@onoseto Thanks for this great work !
My two AQN-107 NICs are in a drawer in the garage, currently. I have been using an Intel X550-T2 dual-port NIC with pfSense for a year, for both 2.5 Gbps WAN (Comcast) and 10 Gbps LAN.
The X550-T2 is a little bit faster than the Aquantia AQN-107, in addition to having two ports. It lacks WOL support, however, which doesn't matter for pfSense, but does for a desktop. I discovered this when I bought a second X550-T2 for my main Windows desktop to get last tiny bit of performance (max iperf3 on LAN with one stream). WOL no longer worked. I had to enable the motherboard Intel I211 NIC, and turn on WOL on it. I didn't bind any protocol to it (no TCP/IP). It does require an extra ethernet cable, and port on a 1Gb switch, but those are cheap enough.
Anyway, the Aquantia seems to be great with Linux as they have been supported out of the box in the kernel for several years with Ubuntu. Not sure about other distributions. My NAS runs Linux and uses an Aquantia AQN-107 and is able to max out the connection, unlike under Windows.
For pfSense, the AQN-107 driver is regrettably not part of the official distribution. Is there any chance that it will ever make it to the official pfSense distribution ? That would be really welcome for disaster recovery scenarios (drive failure) to be able to just upload the settings to restore, without the need to figure out how to rebuild/download and reinstall the driver.
There are of course workarounds, such as temporarily using the motherboard built-in NIC for either WAN or LAN. -
Likely when the driver is added the FreeBSD tree directly rather than as kmod pkg.
-
@onoseto Are you able to re-attach that? Unfortunately attachments to the forum were lost for a short period and that was included.
-
-
Great topic and subject
I was not able to reproduce --> compile the source as there is no C compiler on the pfsense
First we need to install git on the pfsense
pkg install git (this works)
then the ./configure I get an error message :
configure: error: no acceptable C compiler found in $PATHAny advice to move foward?
Thank you
-
Don't try to build anything in pfSense. Instead build in FreeBSD. However for something like a kernel module this is non-trivial as you must build against the same kernel pfSense is using.
-
@stephenw10 Thank you I just try in a VM I create with exactly the same version and setting of my pfsense...
My goal is to make my 10G network card working on the pfsense
I have the chance (now, was not the case before) to have 10G internet access
So I 'll try with a freebsd with the same kernel and see
-
@kouled said in Can't assign NIC [Aquantia Corp. AQC107]:
My goal is to make my 10G network card working on the pfsense
Get a device, or NICs, that is known to work at that speed with pfSense is probably way easier.
-
I end up with error <=> I can't compile the driver...
/usr/src/aqtion-freebsd-0.0.5/aq_main.c:197:57: error: too many arguments provided to function-like macro invocation
197 | DRIVER_MODULE(atlantic, pci, aq_driver, aq_devclass, 0, 0);
| ^
/usr/include/sys/bus.h:854:9: note: macro 'DRIVER_MODULE' defined here
854 | #define DRIVER_MODULE(name, busname, driver, evh, arg)
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]In the main the function put 5 arguments in the bus.h that function is only expecting 5 arguments.. mismatch
the code is not working properly
I have no idea how I can run my 10g network card on my pfsense :-(
-
What were you compiling against? For which pfSense version?
-
@stephenw10
I was compiling on a Virtual Machine running freebsd 14.1 (couldn't get the 14.0 as my pfsense version) / kernel 2.7.2 as my pfsense version...I was compiling the source C for the network card 10g
The driver for the card I have exist for a kernel >= 3.10
So no package / driver for any 10G card :-(
So I'm stuck and very frustaded
-
@kouled said in Can't assign NIC [Aquantia Corp. AQC107]:
The driver for the card I have exist for a kernel >= 3.10
That's almost certainly a Linux kernel and FreeBSD is not Linux.
Did you checkout the FreeBSD git source from the correct commit hash as shown above?