Bug 238324 - Add XG-C100C/AQtion AQC107 10GbE NIC driver
Summary: Add XG-C100C/AQtion AQC107 10GbE NIC driver
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-net (Nobody)
Keywords: feature, needs-patch
Depends on:
Reported: 2019-06-04 16:39 UTC by Anda
Modified: 2021-04-04 22:28 UTC (History)
14 users (show)

See Also:
koobs: mfc-stable12?
koobs: mfc-stable11?

v11.2 kernel compiled (25.30 KB, application/zip)
2019-06-29 07:37 UTC, Luckas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anda 2019-06-04 16:39:48 UTC
Add drivers for AQtion AQC107 chips and ASUS XG-C100C. 

Driver from AQN support:

I got the link via a support ticket from the chipmaker (Aquantia). They told me 6 weeks ago that they are wokring on a driver. I just asked them for a update today and the provided me with the link. On the driver site(https://www.aquantia.com/support/driver-download/) its not up yet.
Comment 1 Anda 2019-06-21 17:10:25 UTC
The driver is now publicly available via there website.

Comment 2 Luckas 2019-06-29 07:37:23 UTC
Created attachment 205409 [details]
v11.2 kernel compiled

v11.2 kernel compiled
Comment 3 Luckas 2019-06-29 07:37:58 UTC
I've send a few messages to Aquantia and I've finally found how to compile the driver.
The last github version is here (now v0.0.4): https://github.com/Aquantia/aqtion-freebsd/archive/master.zip
I've compiled the driver and obtained the if_atlantic.ko file.
The instructions to compile are:

    Load sources: fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    Become superuser: su
    Unzip sources: tar xzf /tmp/src.txz -C /
    Download archive with driver and extract it
    Build driver: make
    Load driver: kldload ./if_atlantic.ko

I've attached here the if_atlantic.ko result file for v11.2 kernel.
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2019-07-09 02:56:59 UTC
I have a port WIP for this, which may be the best place for the network driver in the first instance. At last test it was failing to build on one supported base branch
Comment 5 Ole-Martin 2019-08-06 21:02:59 UTC
11.2 kernel pfsense attached .ko worked Pfsense 2.4.4-p3.

Tried build in vm (Newly built) and failed V0.0.2(AQ website) and 0.0.4 (github)

adding myself for visibility.
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2019-08-07 01:40:09 UTC
I'll have this QA'd / landed in ports mid next week
Comment 7 commit-hook freebsd_committer 2019-09-02 06:27:43 UTC
A commit references this bug:

Author: koobs
Date: Mon Sep  2 06:27:38 UTC 2019
New revision: 510761
URL: https://svnweb.freebsd.org/changeset/ports/510761

  [NEW PORT] net/aquantia-atlantic-kmod: Aquantia AQtion (Atlantic) Network Driver (Development Preview)

  Aquantia AQC multigigabit NIC FreeBSD Driver


   * Aquantia AQtion 10Gbit Network Adapter
   * Aquantia AQtion 5Gbit Network Adapter
   * Aquantia AQtion 2.5Gbit Network Adapter

  WWW: https://github.com/Aquantia/aqtion-freebsd

  PR:		238324
  Reported by:	many

Comment 8 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-02 06:31:30 UTC
Port of driver (v.0.0.4) is now avalaible in ports. v.0.0.2 was failing on versions > stable/12. This version was tested on 11/12/13{i386,amd64}. It will not be merged to the quarterly branch. Packages at least on those ARCH's should be produced within the next 1-2 days.

This issue now needs patches against base head to progress, if the drivers are to be made available in STABLE branches and subsequent -RELEASES
Comment 9 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-02 06:34:31 UTC
Job is done (in ports), reset assignee to progress in base
Comment 10 Matti Viljanen 2020-06-22 16:04:13 UTC
The driver in GitHub has now updated to v0.0.5[1], but the driver that can be downloaded from the manufacturer website still has only v0.0.2.

[1] https://github.com/Aquantia/aqtion-freebsd/archive/v0.0.5.zip
Comment 11 Juli Mallett freebsd_committer 2020-06-22 16:13:43 UTC
What is standing in the way of this coming to base?  I have only skimmed the driver and don't have a clear sense of if it has any quality issues.  I know that this NIC is extremely popular in home and small business deployments due to its low price and wide availability.  While it may not be an enduring presence in the 10GbE space, it's definitely relevant in the present moment, and if there's any way I can help, I'd like to.
Comment 12 Ryan Moeller freebsd_committer 2020-06-22 22:13:37 UTC
(In reply to Juli Mallett from comment #11)

The driver is still in development, and progress appears to be slow. If you have the hardware, testing the code and reporting your findings would be a good place to start. The developers also seem receptive to contributions on github.

Based on my own testing I would agree with the label "development preview" they have on their github repo.
Comment 13 vi 2020-06-22 22:16:15 UTC
I have this NIC on my motherboard but have been too afraid to test it, though I do intend to sometime soon. I have a 10 Gbit switch for it too, but I don't have any 10 Gbit hardware to put on the other end (yet).
Comment 14 swk 2020-08-13 11:05:00 UTC
I have been using this driver on my TrueNAS 12.0(alpha through beta 1) which is using freebsd 12.1 for about 6 months and its working pretty stable

I have LR-LINK AQtion LREC6880BTAQC107 hooked up with 10G 8 port switch.
Comment 15 MICK745 2020-10-01 08:57:04 UTC
how to install the driver. i have never done and new in truenas and freenas.
thank you
Comment 16 Dutchman01 2021-04-04 22:28:24 UTC
Driver is also used stable in XigmaNAS for some months.

also support added for AQC100