Commit d8174623 authored by Wenwu Yao's avatar Wenwu Yao Committed by Jeiwei Li
Browse files

network_mgmt: Added the UB network management driver.

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I88WJE


CVE: NA

----------------------------------------------------------------------

UB is a new protocol. The implementation principle and packet format
of UB are different from those of Ethernet. The existing network
management protocol does not support UB. A new protocol needs to
be developed to adapt to UB.

So this patch adds network management drivers to provide the overall
framework for these network management protocols.

Signed-off-by: default avatarGang Zhang <gang.zhang@huawei.com>
Signed-off-by: default avatarJiaxuan Xie <xiejiaxuan@huawei.com>
Signed-off-by: default avatarWenwu Yao <yaowenwu1@huawei.com>
parent adb237b9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2759,6 +2759,7 @@ CONFIG_HNS3_DCB=y
CONFIG_HNS3_HCLGEVF=m
CONFIG_HNS3_ENET=m
CONFIG_HNS3_UBL=y
CONFIG_NETWORK_MGNT=m
CONFIG_NET_VENDOR_HUAWEI=y
CONFIG_HINIC=m
CONFIG_HINIC3=m
+2 −0
Original line number Diff line number Diff line
@@ -9,3 +9,5 @@ config UBL
	help
	  This enables UB link support. Say 'Y' or 'm' if your
	  device works in UB.

source "drivers/net/ub/dev/network_mgmt/Kconfig"
+2 −0
Original line number Diff line number Diff line
@@ -5,3 +5,5 @@

#### compile ubl
obj-$(CONFIG_UBL) += ubl.o

obj-$(CONFIG_NETWORK_MGNT)	+= network_mgmt/
+15 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
#
# NETWORK_MGNT configuration
#

config NETWORK_MGNT
	default n
	tristate "UB network management"
	depends on UBL
	help
	  Add network management drivers to provide the overall
	  framework for these network management protocols.
	  This enables UB link support. Say 'Y' or 'm' if your
	  device works in UB.
+14 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0+
#
# Makefile for the UB network management.
#

#### add inclue directory
MODULE_NAME := ub_nm
ccflags-y +=-I$(src) \
	    -I$(src)/../

#### compile NETWORK_MGNT
NETWORK_MGNT_OBJS := network_mgmt.o
$(MODULE_NAME)-objs := $(NETWORK_MGNT_OBJS)
obj-$(CONFIG_NETWORK_MGNT) = ub_nm.o
Loading