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

!6048 improve 3SNIC 910/920/930 NIC driver

Merge Pull Request from: @cleanerleon 
 
Previous version exports sssdk.ko and sssnic.ko. While sssdk.ko can be loaded automatically, sssnic.ko has to be loaded manually before the NIC device is recoginzed.
This version only exports one ko.

drivers/net/ethernet/3snic/sssnic/hw/Makefile is deleted.
 
 
Link:https://gitee.com/openeuler/kernel/pulls/6048

 

Reviewed-by: default avatarLiu Chao <liuchao173@huawei.com>
Reviewed-by: default avatarYue Haibing <yuehaibing@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents 85668597 1ff5e788
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2808,7 +2808,6 @@ CONFIG_MDIO=m
# CONFIG_NET_VENDOR_3COM is not set
CONFIG_NET_VENDOR_3SNIC=y
CONFIG_SSSNIC=m
CONFIG_SSSNIC_HW=m
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
CONFIG_NET_VENDOR_ALACRITECH=y
+0 −1
Original line number Diff line number Diff line
@@ -2806,7 +2806,6 @@ CONFIG_MDIO=m
# CONFIG_NET_VENDOR_3COM is not set
CONFIG_NET_VENDOR_3SNIC=y
CONFIG_SSSNIC=m
CONFIG_SSSNIC_HW=m
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
# CONFIG_NET_VENDOR_ALACRITECH is not set
+0 −5
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ config SSSNIC
	tristate "3SNIC Ethernet Controller SSSNIC Support"
	depends on PCI
	depends on ARM64 || X86_64
	select SSSNIC_HW
	help
	  This driver supports 3SNIC Ethernet Controller SSSNIC device.
	  For more information about this product, go to the product
@@ -17,7 +16,3 @@ config SSSNIC

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

config SSSNIC_HW
	tristate
	depends on PCI
+0 −1
Original line number Diff line number Diff line
@@ -3,5 +3,4 @@
# Makefile for the 3SNIC network device drivers.
#

obj-$(CONFIG_SSSNIC_HW) += hw/
obj-$(CONFIG_SSSNIC) += nic/
+0 −56
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2023 3SNIC
#
SYS_TIME=$(shell date +%Y-%m-%d_%H:%M:%S)
ccflags-y += -D __TIME_STR__=\"$(SYS_TIME)\"

ccflags-y += -I$(srctree)/drivers/net/ethernet/3snic/sssnic/hw
ccflags-y += -I$(srctree)/drivers/net/ethernet/3snic/sssnic/hw/tool
ccflags-y += -I$(srctree)/drivers/net/ethernet/3snic/sssnic/include
ccflags-y += -I$(srctree)/drivers/net/ethernet/3snic/sssnic/include/hw
ccflags-y += -I$(srctree)/drivers/net/ethernet/3snic/sssnic/include/kernel
ccflags-y += -I$(srctree)/drivers/net/ethernet/3snic/sssnic/hw/include

ccflags-y += -Werror
ccflags-y += -Wno-implicit-fallthrough

obj-$(CONFIG_SSSNIC_HW) += sssdk.o
sssdk-y := sss_hw_main.o \
			sss_pci.o \
			sss_pci_probe.o \
			sss_pci_remove.o \
			sss_pci_shutdown.o \
			sss_pci_error.o \
			sss_pci_sriov.o \
			sss_pci_global.o \
			sss_hwdev_api.o \
			sss_hwdev_cap.o \
			sss_hwdev_export.o \
			sss_hwdev_link.o \
			sss_hwdev_init.o \
			sss_hwdev_mgmt_info.o \
			sss_hwdev_mgmt_channel.o \
			sss_hwdev_io_flush.o \
			sss_hwif_ctrlq.o \
			sss_hwif_ctrlq_init.o \
			sss_hwif_ctrlq_export.o \
			sss_hwif_mbx.o \
			sss_hwif_mbx_init.o \
			sss_hwif_mbx_export.o \
			sss_hwif_adm.o \
			sss_hwif_adm_init.o \
			sss_hwif_init.o \
			sss_hwif_api.o \
			sss_hwif_export.o \
			sss_hwif_eq.o \
			sss_hwif_mgmt_init.o \
			sss_hwif_irq.o \
			sss_hwif_aeq.o \
			sss_common.o \
			sss_wq.o \
			sss_hwif_ceq.o \
			sss_adapter_mgmt.o \
			./tool/sss_tool_main.o \
			./tool/sss_tool_chip.o \
			./tool/sss_tool_sdk.o \
			./tool/sss_tool_sm.o
Loading