Commit 2d934649 authored by Yizhen Fan's avatar Yizhen Fan Committed by fanyizhen1995
Browse files

ub: Add register device api in ubcore



driver inclusion
category: feature
bugzilla: NA
CVE: NA

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

Add register device api in ubcore.

This interface is invoked during UBN driver loading and initialization
to register the UB device with the UB Core protocol layer.

Input parameter:
dev: The structure contains netdev, device name, ops,
and vendor-defined device private data.
Device names of different functions of the same vendor must be unique.
Deduplicated by the protocol stack.
The memory of ubcore_device_t is allocated by the UBN driver.

Return value:
The value 0 indicates that the registration is successful.
Other values indicate that the registration fails.

Signed-off-by: default avatarGuoxin Qian <qianguoxin@huawei.com>
Signed-off-by: default avatarYizhen Fan <fanyizhen@huawei.com>
parent 45dde1be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment