net: hns3: refactor the promisc mode setting
driver inclusion category: bugfix bugzilla: NA CVE: NA As the HNS3 driver doesn't update the mac address directly in function hns3_set_rx_mode() now, it can't know whether the mac table is full from __dev_uc_sync() and __dev_mc_sync(), so it's senseless to handle the overflow promisc here. This patch removes the handle of overflow promisc from function hns3_set_rx_mode(), and updates the promisc mode in the service task. This patch also fixes a vlan id restore twice issue, and add debugfs support for query mac list, So it need to be split before upstream. Signed-off-by:Jian Shen <shenjian15@huawei.com> Reviewed-by:
Peng Li <lipeng321@huawei.com> Reviewed-by:
Zhong Zhaohui <zhongzhaohui@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment