]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: use napi_schedule_irqoff in hard interrupts handlers
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 6 May 2019 02:48:42 +0000 (10:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 May 2019 17:37:13 +0000 (10:37 -0700)
commitc28ea0539023e4b532a6eaeac5602198043eadea
treeadf2a7ea6f1ee1c111b2b31445afe5c9a6b4d2ff
parent7fab78137636fbe0ef1245aa8d9f0c9b733c2ffb
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 <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c