kernel: netdevices: add driver for Broadcom NetXtreme-C/E
authorJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 18 Dec 2024 20:57:22 +0000 (21:57 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Dec 2024 17:12:01 +0000 (18:12 +0100)
Package bnxt_en kernel module for Broadcom NetXtreme-C/E based Ethernet
network chips like BCM573xx and BCM574xx.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17301
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/netdevices.mk

index cd24fb3ecbc996b143d1baed7dc75050bd4a5b5e..c72bc0e8e633f509a3d7a0839283dc6a5d31a726 100644 (file)
@@ -1525,6 +1525,28 @@ endef
 
 $(eval $(call KernelPackage,bnx2x))
 
+define KernelPackage/bnxt-en
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Broadcom NetXtreme-C/E network driver
+  DEPENDS:=@PCI_SUPPORT +kmod-hwmon-core +kmod-lib-crc32c +kmod-mdio +kmod-ptp
+  FILES:=$(LINUX_DIR)/drivers/net/ethernet/broadcom/bnxt/bnxt_en.ko
+  KCONFIG:= \
+         CONFIG_BNXT \
+         CONFIG_BNXT_SRIOV=y \
+         CONFIG_BNXT_FLOWER_OFFLOAD=y \
+         CONFIG_BNXT_DCB=n \
+         CONFIG_BNXT_HWMON=y
+  AUTOLOAD:=$(call AutoProbe,bnxt_en)
+endef
+
+define KernelPackage/bnxt-en/description
+  Supports Broadcom NetXtreme-C/E based Ethernet NICs including:
+  * BCM573xx
+  * BCM574xx
+endef
+
+$(eval $(call KernelPackage,bnxt-en))
+
 define KernelPackage/be2net
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Broadcom Emulex OneConnect 10Gbps NIC