Skip to content

Commit

Permalink
net: mucse: initial support for rnp drivers from Mucse Technology
Browse files Browse the repository at this point in the history
This driver is to support mucse n10-2ports ethernet card

Signed-off-by: Dong Yibo <[email protected]>
  • Loading branch information
xiaolong1305 committed Oct 11, 2024
1 parent d591914 commit 7e107d4
Show file tree
Hide file tree
Showing 36 changed files with 29,906 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm64/configs/deepin_arm64_desktop_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,12 @@ CONFIG_ICE=m
CONFIG_FM10K=m
CONFIG_IGC=m
CONFIG_MGBE=m
CONFIG_MXGBE=m
CONFIG_MXGBE_FIX_VF_QUEUE=y
CONFIG_MXGBE_FIX_MAC_PADDING=y
# CONFIG_MXGBE_OPTM_WITH_LARGE is not set
CONFIG_MXGBE_MSIX_COUNT=64
CONFIG_MXGBE_DCB=y
CONFIG_JME=m
CONFIG_ADIN1110=m
CONFIG_LITEX_LITEETH=m
Expand Down
6 changes: 6 additions & 0 deletions arch/loongarch/configs/deepin_loongarch_desktop_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,12 @@ CONFIG_ICE=m
CONFIG_FM10K=m
CONFIG_IGC=m
CONFIG_MGBE=m
CONFIG_MXGBE=m
CONFIG_MXGBE_FIX_VF_QUEUE=y
CONFIG_MXGBE_FIX_MAC_PADDING=y
# CONFIG_MXGBE_OPTM_WITH_LARGE is not set
CONFIG_MXGBE_MSIX_COUNT=64
CONFIG_MXGBE_DCB=y
CONFIG_JME=m
CONFIG_ADIN1110=m
CONFIG_LITEX_LITEETH=m
Expand Down
6 changes: 6 additions & 0 deletions arch/x86/configs/deepin_x86_desktop_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,12 @@ CONFIG_ICE=m
CONFIG_FM10K=m
CONFIG_IGC=m
CONFIG_MGBE=m
CONFIG_MXGBE=m
CONFIG_MXGBE_FIX_VF_QUEUE=y
CONFIG_MXGBE_FIX_MAC_PADDING=y
# CONFIG_MXGBE_OPTM_WITH_LARGE is not set
CONFIG_MXGBE_MSIX_COUNT=64
CONFIG_MXGBE_DCB=y
CONFIG_JME=m
CONFIG_ADIN1110=m
CONFIG_MVMDIO=m
Expand Down
55 changes: 55 additions & 0 deletions drivers/net/ethernet/mucse/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,60 @@ config MGBE_MSIX_COUNT
help
MXGBE range [2,26].

config MXGBE
tristate "Mucse(R) 1/10/25/40GbE PCI Express adapters support"
depends on PCI
imply PTP_1588_CLOCK
help
This driver supports Mucse(R) 1/10/25/40GbE PCI Express family of
adapters.

To compile this driver as a module, choose M here. The module
will be called rnp.

config MXGBE_FIX_VF_QUEUE
bool "Fix VF Queue Used(pf)"
default y
depends on MXGBE
help
Say Y here if you want to fix vf queue order in the driver.

If unsure, say N.

config MXGBE_FIX_MAC_PADDING
bool "Close Mac Padding Function(pf)"
default y
depends on MXGBE
help
Say Y here if you want to fix close mac padding in the driver.

If unsure, say N.

config MXGBE_OPTM_WITH_LARGE
bool "Reduce Memory Cost In Large PAGE_SIZE(>8192)"
default n
depends on MXGBE
help
Say Y here if you want to reduce memory cost in large PAGE_SIZE.

If unsure, say N.

config MXGBE_MSIX_COUNT
int "Number of msix count"
default "64"
depends on MXGBE
help
MXGBE range [2,64].

config MXGBE_DCB
bool "Data Center Bridging (DCB) Support"
default y
depends on MXGBE && DCB
help
Say Y here if you want to use Data Center Bridging (DCB) in the
driver.

If unsure, say N.

endif # NET_VENDOR_MUCSE

1 change: 1 addition & 0 deletions drivers/net/ethernet/mucse/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
#

obj-$(CONFIG_MGBE) += rnpgbe/
obj-$(CONFIG_MXGBE) += rnp/
25 changes: 25 additions & 0 deletions drivers/net/ethernet/mucse/rnp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright(c) 2022 - 2024 Mucse Corporation
#
# Makefile for the Mucse(R) 10GbE-2ports PCI Express ethernet driver
#
#

obj-$(CONFIG_MXGBE) += rnp.o
rnp-objs := \
rnp_main.o \
rnp_common.o \
rnp_ethtool.o \
rnp_lib.o \
rnp_mbx.o \
rnp_pcs.o \
rnp_n10.o \
rnp_mbx_fw.o\
rnp_sriov.o \
rnp_param.o \
rnp_sysfs.o \
rnp_ptp.o \
rnp_mpe.o

rnp-$(CONFIG_DCB) += rnp_dcb.o
rnp-$(CONFIG_DEBUG_FS) += rnp_debugfs.o
Loading

0 comments on commit 7e107d4

Please sign in to comment.