Unverified Commit 76e6a994 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2456 Added the UB network management driver.

Merge Pull Request from: @li-jiewei999 
 
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.

1、Added the UB network management driver.
2、Support IP notify Protocol.

V8: The bugzilla content is added to the commit information.
V7: The help description of Kconfig is modified.
V6: Replace del_timer() with del_timer_sync().
V5: Replace timer_pending() with the static variable.
V4: Directly return the return value of the function.
V3: Replacing Magic Numbers with Macros
V2: add the config configuration item /arch/arm64/configs/openeuler_defconfig.
V1: The print type matches the variable type.Add 'depends on UBL' to Kconfig.

Gang Zhang <gang.zhang@huawei.com>
Jiaxuan Xie <xiejiaxuan@huawei.com>
Wenwu Yao <yaowenwu1@huawei.com>
Jiaxuan Xie <xiejiaxuan@huawei.com>
Jeiwei Li <lijiewei5@huawei.com> 
 
Link:https://gitee.com/openeuler/kernel/pulls/2456

 

Reviewed-by: default avatarLin Yunsheng <linyunsheng@huawei.com>
Reviewed-by: default avatarLiu Chao <liuchao173@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents ace32245 0f9f9f66
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.
+15 −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)/ip_notify \
			-I$(src) \
			-I$(src)/../ \

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