Commit 264bd9af authored by Jian Shen's avatar Jian Shen Committed by Yang Yingliang
Browse files

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: default avatarJian Shen <shenjian15@huawei.com>
Reviewed-by: default avatarPeng Li <lipeng321@huawei.com>
Reviewed-by: default avatarZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 26640c26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment