Skip to content

Commit

Permalink
net: mucse: initial support for rnpgbevf drivers from Mucse Technology
Browse files Browse the repository at this point in the history
This driver is to support mucse n500/n210 virtual function

Signed-off-by: Dong Yibo <[email protected]>
  • Loading branch information
xiaolong1305 authored and Avenger-285714 committed Oct 26, 2024
1 parent 2dcde17 commit 5223311
Show file tree
Hide file tree
Showing 16 changed files with 10,356 additions and 0 deletions.
2 changes: 2 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,8 @@ CONFIG_ICE=m
CONFIG_FM10K=m
CONFIG_IGC=m
CONFIG_MGBE=m
CONFIG_MGBEVF=m
# CONFIG_MGBEVF_OPTM_WITH_LARGE is not set
CONFIG_MXGBE=m
CONFIG_MXGBE_FIX_VF_QUEUE=y
CONFIG_MXGBE_FIX_MAC_PADDING=y
Expand Down
2 changes: 2 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,8 @@ CONFIG_ICE=m
CONFIG_FM10K=m
CONFIG_IGC=m
CONFIG_MGBE=m
CONFIG_MGBEVF=m
# CONFIG_MGBEVF_OPTM_WITH_LARGE is not set
CONFIG_MXGBE=m
CONFIG_MXGBE_FIX_VF_QUEUE=y
CONFIG_MXGBE_FIX_MAC_PADDING=y
Expand Down
2 changes: 2 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,8 @@ CONFIG_ICE=m
CONFIG_FM10K=m
CONFIG_IGC=m
CONFIG_MGBE=m
CONFIG_MGBEVF=m
# CONFIG_MGBEVF_OPTM_WITH_LARGE is not set
CONFIG_MXGBE=m
CONFIG_MXGBE_FIX_VF_QUEUE=y
CONFIG_MXGBE_FIX_MAC_PADDING=y
Expand Down
20 changes: 20 additions & 0 deletions drivers/net/ethernet/mucse/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@ config MGBE_MSIX_COUNT
help
MXGBE range [2,26].

config MGBEVF
tristate "Mucse(R) 1GbE PCI Express Virtual Function adapters support"
depends on PCI
imply PTP_1588_CLOCK
help
This driver supports Mucse(R) 1GbE PCI Express family of
adapters.

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

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

If unsure, say N.

config MXGBE
tristate "Mucse(R) 1/10/25/40GbE PCI Express adapters support"
depends on PCI
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/mucse/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
#

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

obj-$(CONFIG_MXGBEVF) += rnpgbevf.o
rnpgbevf-objs := \
vf.o \
mbx.o \
ethtool.o \
sysfs.o \
rnpgbevf_main.o

Loading

0 comments on commit 5223311

Please sign in to comment.