Loading
HNS3: Add the reliability check of guid_tbl_space.
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB6YMX CVE: NA ----------------------------------------------------------- When the current code obtains the real guid tbl size, if guid_tbl_space is less than VPORT_NUM, the driver stub value is returned. However, the actual size of the available guid table is smaller than the value of this parameter. Although this does not affect the function (if the table is full, promiscuous will be enabled), debugfs will be affected, users will be misunderstood, and the DFX capability will be affected. This patch add the reliability check of guid_tbl_space. Fixes: a1799222 ("UNIC: Support using MC GUID and table management") Signed-off-by:Haibin Lu <luhaibin10@hisilicon.com>