Page MenuHomeVyOS Platform

Kernel NIC-drivers for Huawei NICs are not properly enabled
Closed, ResolvedPublicBUG

Description

Looking at:

https://github.com/vyos/vyos-build/blob/current/packages/linux-kernel/arch/x86/configs/vyos_defconfig

one can see:

CONFIG_NET_VENDOR_HUAWEI=y
# CONFIG_HINIC is not set

However for the Huawei NICs to properly function the CONFIG_HINIC must also be enabled:

https://docs.kernel.org/networking/device_drivers/ethernet/huawei/hinic.html

Overview:

HiNIC is a network interface card for the Data Center Area.

The driver supports a range of link-speed devices (10GbE, 25GbE, 40GbE, etc.). The driver supports also a negotiated and extendable feature set.

Some HiNIC devices support SR-IOV. This driver is used for Physical Function (PF).

HiNIC devices support MSI-X interrupt vector for each Tx/Rx queue and adaptive interrupt moderation.

HiNIC devices support also various offload features such as checksum offload, TCP Transmit Segmentation Offload(TSO), Receive-Side Scaling(RSS) and LRO(Large Receive Offload).

Ref:

Originally reported by user Issyou at the slack-channel:

Hello, I'm try to using Image vyos 1.4 rc3
I'm using Huawei 25G Pcie Card

root@vyos:~# lspci | grep Huawei
65:00.0 PCI bridge: Huawei Technologies Co., Ltd. Hi1822 Family Virtual Bridge (rev 45)
66:00.0 PCI bridge: Huawei Technologies Co., Ltd. Hi1822 Family Virtual Bridge (rev 45)
66:01.0 PCI bridge: Huawei Technologies Co., Ltd. Hi1822 Family Virtual Bridge (rev 45)
66:02.0 PCI bridge: Huawei Technologies Co., Ltd. Hi1822 Family Virtual Bridge (rev 45)
66:03.0 PCI bridge: Huawei Technologies Co., Ltd. Hi1822 Family Virtual Bridge (rev 45)
67:00.0 Ethernet controller: Huawei Technologies Co., Ltd. Hi1822 Family (4*25GE) (rev 45)
68:00.0 Ethernet controller: Huawei Technologies Co., Ltd. Hi1822 Family (4*25GE) (rev 45)
69:00.0 Ethernet controller: Huawei Technologies Co., Ltd. Hi1822 Family (4*25GE) (rev 45)
6a:00.0 Ethernet controller: Huawei Technologies Co., Ltd. Hi1822 Family (4*25GE) (rev 45)

But kernel at this image not have huawei ethernet driver

root@vyos:~# ls /lib/modules/6.6.12-amd64-vyos/kernel/drivers/net/ethernet | grep huawei
root@vyos:~#

I try using debian 12, huawei ethernet driver is included

root@coba:~# ls /lib/modules/6.1.0-17-amd64/kernel/drivers/net/ethernet/ | grep huawei
huawei
root@coba:~#

Details

Difficulty level
Unknown (require assessment)
Version
1.4-RC3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)