diff options
author | Arthur Kiyanovski <akiyano@amazon.com> | 2020-03-17 09:06:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-17 21:24:23 -0700 |
commit | dfdde1345bc124816f0fd42fa91b8748051e758e (patch) | |
tree | ae6294cc7ffa878fd6170cbe2c1a22684d719468 /net/ipv4/tcp_output.c | |
parent | 30623e1ed116bcd1785217d0a98eec643687e091 (diff) |
net: ena: fix continuous keep-alive resets
last_keep_alive_jiffies is updated in probe and when a keep-alive
event is received. In case the driver times-out on a keep-alive event,
it has high chances of continuously timing-out on keep-alive events.
This is because when the driver recovers from the keep-alive-timeout reset
the value of last_keep_alive_jiffies is very old, and if a keep-alive
event is not received before the next timer expires, the value of
last_keep_alive_jiffies will cause another keep-alive-timeout reset
and so forth in a loop.
Solution:
Update last_keep_alive_jiffies whenever the device is restored after
reset.
Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Noam Dagan <ndagan@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions