From 95b1ccc06398d93a54cca215d3e5ff42bd0b6f56 Mon Sep 17 00:00:00 2001 From: Duanqiang Wen Date: Fri, 4 Nov 2022 09:39:47 +0800 Subject: [PATCH] openeuler: config: add NGBE MODODULE CONFIG driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I61PSD CVE: NA 1.add CONFIG_NETSWIFT_NGBE=m in x64/arm64 openeuler_defconfig 2.add config for ngbe module in netswift Kconfig Signed-off-by: Duanqiang Wen --- arch/arm64/configs/openeuler_defconfig | 1 + arch/x86/configs/openeuler_defconfig | 1 + drivers/net/ethernet/netswift/Kconfig | 49 ++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/arch/arm64/configs/openeuler_defconfig b/arch/arm64/configs/openeuler_defconfig index e2e38cef2224..085b1109d879 100644 --- a/arch/arm64/configs/openeuler_defconfig +++ b/arch/arm64/configs/openeuler_defconfig @@ -2758,6 +2758,7 @@ CONFIG_FM10K=m # CONFIG_IGC is not set CONFIG_NET_VENDOR_NETSWIFT=y CONFIG_TXGBE=m +CONFIG_NGBE=m # CONFIG_JME is not set # CONFIG_NET_VENDOR_MARVELL is not set CONFIG_NET_VENDOR_MELLANOX=y diff --git a/arch/x86/configs/openeuler_defconfig b/arch/x86/configs/openeuler_defconfig index 584a9361aa70..ae3c9e8435d1 100644 --- a/arch/x86/configs/openeuler_defconfig +++ b/arch/x86/configs/openeuler_defconfig @@ -2722,6 +2722,7 @@ CONFIG_FM10K=m # CONFIG_IGC is not set CONFIG_NET_VENDOR_NETSWIFT=y CONFIG_TXGBE=m +CONFIG_NGBE=m # CONFIG_JME is not set # CONFIG_NET_VENDOR_MARVELL is not set CONFIG_NET_VENDOR_MELLANOX=y diff --git a/drivers/net/ethernet/netswift/Kconfig b/drivers/net/ethernet/netswift/Kconfig index b51b5c0cdc66..4617b610402b 100644 --- a/drivers/net/ethernet/netswift/Kconfig +++ b/drivers/net/ethernet/netswift/Kconfig @@ -61,4 +61,53 @@ config TXGBE_SYSFS Say Y if you want to setup sysfs for these devices. If unsure, say N. + +config NGBE + tristate "Netswift PCI-Express Gigabit Ethernet support" + depends on PCI + imply PTP_1588_CLOCK + help + This driver supports Netswift gigabit ethernet adapters. + For more information on how to identify your adapter, go + to + + To compile this driver as a module, choose M here. The module + will be called ngbe. + +config NGBE_HWMON + bool "Netswift PCI-Express Gigabit adapters HWMON support" + default n + depends on NGBE && HWMON && !(NGBE=y && HWMON=m) + help + Say Y if you want to expose thermal sensor data on these devices. + + If unsure, say N. + +config NGBE_DEBUG_FS + bool "Netswift PCI-Express Gigabit adapters debugfs support" + default n + depends on NGBE + help + Say Y if you want to setup debugfs for these devices. + + If unsure, say N. + +config NGBE_POLL_LINK_STATUS + bool "Netswift PCI-Express Gigabit adapters poll mode support" + default n + depends on NGBE + help + Say Y if you want to turn these devices to poll mode instead of interrupt-trigged TX/RX. + + If unsure, say N. + +config NGBE_SYSFS + bool "Netswift PCI-Express Gigabit adapters sysfs support" + default n + depends on NGBE + help + Say Y if you want to setup sysfs for these devices. + + If unsure, say N. + endif # NET_VENDOR_NETSWIFT -- GitLab