Recompile kernel to include nic support

Hi!
I recently bought a couple of 10gbe nics, specifically Solarflare SFN6122F.
There is support for it in the Mainline Linux kernel with the net/ethernet/sfc module.

I have tried to include it when manually building the VyOS image by including the following in x86_64_vyos_defconfig:

CONFIG_NET_VENDOR_SOLARFLARE=y
CONFIG_SFC=m
CONFIG_SFC_MCDI_MON=y
CONFIG_SFC_SRIOV=y
CONFIG_SFC_MCDI_LOGGING=y
CONFIG_SFC_FALCON=m

The problem with this, to my understanding, is that the VyOS kernel itself is built by Jenkins and not when I’m running the image building in docker.
This means that the module is never built and included in my image building process.

Is there someone that can explain to me how to build the VyOS kernel with this module included?

Thanks!

After git clone of the kernel source in https://github.com/vyos/vyos-build/tree/current/packages/linux-kernel you can run the build-kernel.sh script to compile the Kernel.

But we can include those drivers in general in the next rolling release.

Latest rolling has those drivers included

Amazing!
I will try this later today!
Thanks for the fast response!

It seems to be working just fine

vyos@vyos:~$ show interfaces ethernet eth3 physical
Settings for eth3:
        Supported ports: [ FIBRE ]
        Supported link modes:   1000baseT/Full 
                                10000baseT/Full 
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  Not reported
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: No
        Link partner advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: FIBRE
        PHYAD: 255
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x000020f7 (8439)
                               drv probe link ifdown ifup rx_err tx_err hw
        Link detected: no
driver: sfc
version: 4.1
firmware-version: 3.3.0.6247
expansion-rom-version: 
bus-info: 0000:04:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

I’ll try to push some traffic in a bit

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.