]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: fix VF promisc mode not update when mac table full
authorJian Shen <shenjian15@huawei.com>
Thu, 22 Dec 2022 06:43:43 +0000 (14:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:00:32 +0000 (12:00 +0100)
commita0dc7799242f7deff0d11120938614f9945cc35f
tree095a4150e2e61beb45573c52f3a095ba7b75324d
parentefe0ca2a1e66d49a32640d32b40179b82410f5e6
net: hns3: fix VF promisc mode not update when mac table full

[ Upstream commit 8ee57c7b8406c7aa8ca31e014440c87c6383f429 ]

Currently, it missed set HCLGE_VPORT_STATE_PROMISC_CHANGE
flag for VF when vport->overflow_promisc_flags changed.
So the VF won't check whether to update promisc mode in
this case. So add it.

Fixes: 1e6e76101fd9 ("net: hns3: configure promisc mode for VF asynchronously")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Hao Lan <lanhao@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c