Skip to content

Commit f2ed304

Browse files
IronShenPaolo Abeni
authored andcommitted
net: hns3: only enable unicast promisc when mac table full
Currently, the driver will enable unicast promisc for the function once configure mac address fail. It's unreasonable when the failure is caused by using same mac address with other functions. So only enable unicast promisc when mac table full. Fixes: c631c69 ("net: hns3: refactor the promisc mode setting") Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent f9f6512 commit f2ed304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8824,7 +8824,7 @@ static void hclge_update_overflow_flags(struct hclge_vport *vport,
88248824
if (mac_type == HCLGE_MAC_ADDR_UC) {
88258825
if (is_all_added)
88268826
vport->overflow_promisc_flags &= ~HNAE3_OVERFLOW_UPE;
8827-
else
8827+
else if (hclge_is_umv_space_full(vport, true))
88288828
vport->overflow_promisc_flags |= HNAE3_OVERFLOW_UPE;
88298829
} else {
88308830
if (is_all_added)

0 commit comments

Comments
 (0)