summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorSmadar Fuks <smadarf@marvell.com>2021-09-01 11:08:59 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-22 12:39:26 +0200
commit1680812a0f7d575794aaaf74bda5b9f1b6df4941 (patch)
tree7659086372431a4dc15d7be95e4ffb93a8273ae2 /net/ipv4
parented0f3b99c5a1444f65db1c62fea5c570d6ab6530 (diff)
octeontx2-af: Add additional register check to rvu_poll_reg()
[ Upstream commit 21274aa1781941884599a97ab59be7f8f36af98c ] Check one more time before exiting the API with an error. Fix API to poll at least twice, in case there are other high priority tasks and this API doesn't get CPU cycles for multiple jiffies update. In addition, increase timeout from usecs_to_jiffies(10000) to usecs_to_jiffies(20000), to prevent the case that for CONFIG_100HZ timeout will be a single jiffies. A single jiffies results actual timeout that can be any time between 1usec and 10msec. To solve this, a value of usecs_to_jiffies(20000) ensures that timeout is 2 jiffies. Signed-off-by: Smadar Fuks <smadarf@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions