net: hns3: refine for unicast mac vlan space management
driver inclusion category: bugfix bugzilla: NA CVE: NA Currently, firmware helps manage the unicast mac vlan table space for each PF. PF just needs to tell firmware its wanted space when initializing, and unnecessary to free it when unintializing. For adding and removing mac address may be called in set_rx_mode(), so we should use spin_lock to protect shared_umv_size instead of mutex. This patch removes the umv space free and changes the lock type. Feature or Bugfix:Bugfix Signed-off-by: Nshenjian (K) <shenjian15@huawei.com> Reviewed-by: Nlipeng <lipeng321@huawei.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录