]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: hns3: fix a bug caused by udelay
authorPeng Li <lipeng321@huawei.com>
Thu, 20 Dec 2018 03:52:00 +0000 (11:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Dec 2018 07:47:58 +0000 (23:47 -0800)
commit1b7d7b0581173219b82abbd81c88cf8aa7d402c2
treef4efe8a72d8aac9200b766b02942f473a6cfb761
parenta298797532d9dc244abf349d7c2ed063732c6ba3
net: hns3: fix a bug caused by udelay

udelay() in driver may always occupancy processor. If there is only
one cpu in system, the VF driver may initialize fail when insmod
PF and VF driver in the same system. This patch use msleep() to free
cpu when VF wait PF message.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c