From: Coia Prant Date: Sat, 19 Apr 2025 06:17:38 +0000 (+0800) Subject: kernel: modules: add HiNIC support X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fcc57cca6497712e53c5b8366155dd92359469e;p=thirdparty%2Fopenwrt.git kernel: modules: add HiNIC support Add support for the Huawei Intelligent PCIE Network Interface Card (HiNIC) Signed-off-by: Coia Prant Link: https://github.com/openwrt/openwrt/pull/18534 Signed-off-by: Hauke Mehrtens --- diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 5ad21ae6284..a52620ee6f8 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -1909,6 +1909,23 @@ endef $(eval $(call KernelPackage,igc)) + +define KernelPackage/hinic + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Huawei Intelligent PCIE Network Interface Card support + DEPENDS:=@PCI_SUPPORT @TARGET_x86||TARGET_armsr_armv8 + FILES:=$(LINUX_DIR)/drivers/net/ethernet/huawei/hinic/hinic.ko + KCONFIG:=CONFIG_HINIC + AUTOLOAD:=$(call AutoProbe,hinic) +endef + +define KernelPackage/hinic/description + Kernel module for HiNIC PCIE Ethernet cards +endef + +$(eval $(call KernelPackage,hinic)) + + define KernelPackage/sfc SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=Solarflare SFC9000/SFC9100/EF100-family support