Commit 0ede0194 authored by Yizhen Fan's avatar Yizhen Fan Committed by fanyizhen1995
Browse files

ub: ubcore add set upi and add/delete ueid api impls



driver inclusion
category: feature
bugzilla: NA
CVE: NA

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

Ubcore add set upi and add/delete ueid api impls, which will finally
call hw driver's registered methods.

These apis are related to virtualization of UB.

Add ueid:
The UB Core invokes the UBN driver to set the EID and UPI values.
Input parameter:
dev: contains vendor-defined private device data.
vf_id: specifies the EID and UPI values of a VF. The value 0xFFFF
indicates that the PF is set to the PF instead of to the managed VF.
cfg: indicates the ID to be set, including the EID and UPI.
Return value:
If the value is 0, the setting is successful. If the value is less than 0,
the setting fails.

Delete ueid:
The UB Core invokes the UBN driver to delete the EID and UPI
values of the VF or PF.
Input parameter:
dev: contains vendor-defined private device data.
vf_id: specifies the UPI value of a VF. 0xFFFF indicates the PF itself.
That is, the EID and UPI of the PF are deleted, not the managed VF.
cfg: indicates the EID and UPI values to be deleted.
Return value:
The value 0 indicates that the deletion is successful. The value other
than 0 indicates that the deletion fails.

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