net: hns3: PF enable promisc for VF when mac table is overflow
authorGuangbin Huang <huangguangbin2@huawei.com>
Wed, 29 Sep 2021 09:35:54 +0000 (17:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Sep 2021 10:03:54 +0000 (11:03 +0100)
commit276e60421668d019dc655973b1832ea354c0f36c
tree2bbe31dd59a9a458fa6ea0f3141b30d5556a3345
parent108b3c7810e14892c4a1819b1d268a2c785c087c
net: hns3: PF enable promisc for VF when mac table is overflow

If unicast mac address table is full, and user add a new mac address, the
unicast promisc needs to be enabled for the new unicast mac address can be
used. So does the multicast promisc.

Now this feature has been implemented for PF, and VF should be implemented
too. When the mac table of VF is overflow, PF will enable promisc for this
VF.

Fixes: 1e6e76101fd9 ("net: hns3: configure promisc mode for VF asynchronously")
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c