Commit a1799222 authored by Junxin Chen's avatar Junxin Chen Committed by Fengyan
Browse files

UNIC: Support using MC GUID and table management

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


CVE: NA

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

The MC guid is designed to send ub network control packets
to the peer end without knowing the peer guid. The packets
whose destination address is the MC guid can be sent to all
ports that support the MC guid. It is defined as 112-bit 1
and 16-bit protocol. Therefore, the valid data of the MC guid
is the last 16 bits. If the peer end supports an MC guid, it
indicates that the packets of the corresponding protocol
can be processed.

The driver implements a new .set_rx_mode for the ub to reuse
the ip maddr adding and deleting interfaces. Because the
original interface supports only an 8-byte address, only
the lower 64 bits of the mc guid can be configured. In addition,
the upper 48 bits of the 64 bits must be 1.

In terms of hardware entry management, hardware entries are
limited and one entry can be shared by multiple functions.
Therefore, entries are managed by checking whether the entry
exists before being added. In addition, promiscuous entries
are enabled when the number of entries is full. In addition,
for security purposes, hardware entries cannot be configured
for virtual functions.

Signed-off-by: default avatarJunxin Chen <chenjunxin1@huawei.com>
Signed-off-by: default avatarHaibin Lu <luhaibin10@hisilicon.com>
parent 1cdab773
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment