From: Yunsheng Lin Date: Mon, 6 May 2019 02:48:42 +0000 (+0800) Subject: net: hns3: use napi_schedule_irqoff in hard interrupts handlers X-Git-Tag: v5.2-rc1~133^2~9^2~10 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fb00331bb8db4a631b00d6582f94806eba7a4c7f;p=uclinux-h8%2Flinux.git net: hns3: use napi_schedule_irqoff in hard interrupts handlers napi_schedule_irqoff is introduced to be used from hard interrupts handlers or when irqs are already masked, see: https://lists.openwall.net/netdev/2014/10/29/2 So this patch replaces napi_schedule with napi_schedule_irqoff. Signed-off-by: Yunsheng Lin Signed-off-by: Huazhong Tan Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 06dda77f7fb8..ff3c9f11ca65 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -74,7 +74,7 @@ static irqreturn_t hns3_irq_handle(int irq, void *vector) { struct hns3_enet_tqp_vector *tqp_vector = vector; - napi_schedule(&tqp_vector->napi); + napi_schedule_irqoff(&tqp_vector->napi); return IRQ_HANDLED; }