Skip to content

Commit 2f61353

Browse files
Yufeng Modavem330
authored andcommitted
net: hns3: handle empty unknown interrupt for VF
Since some interrupt states may be cleared by hardware, the driver may receive an empty interrupt. Currently, the VF driver directly disables the vector0 interrupt in this case. As a result, the VF is unavailable. Therefore, the vector0 interrupt should be enabled in this case. Fixes: b90fcc5 ("net: hns3: add reset handling for VF when doing Core/Global/IMP reset") Signed-off-by: Yufeng Mo <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 74afa30 commit 2f61353

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,8 +2043,7 @@ static irqreturn_t hclgevf_misc_irq_handle(int irq, void *data)
20432043
break;
20442044
}
20452045

2046-
if (event_cause != HCLGEVF_VECTOR0_EVENT_OTHER)
2047-
hclgevf_enable_vector(&hdev->misc_vector, true);
2046+
hclgevf_enable_vector(&hdev->misc_vector, true);
20482047

20492048
return IRQ_HANDLED;
20502049
}

0 commit comments

Comments
 (0)