Skip to content

Commit

Permalink
net/netvsc: increase VSP response timeout to 60 seconds
Browse files Browse the repository at this point in the history
[ upstream commit d56475174855b1454cf004025b54d68e4a47f465 ]

The current timeout is set to 5 seconds. In Azure, tests show that it
may take up to 15 seconds for VSP to respond on busy nodes. The VSP
schedules unbounded work to process VSC request, there is no upper limit
on how long it takes to send response back to VSC.

In the NETVSC kernel mode driver, it waits forever for VSP response.
While in DPDK we can't wait forever, setting the timeout to 60 seconds.

Signed-off-by: Long Li <longli@microsoft.com>
  • Loading branch information
longlimsft authored and bluca committed Oct 18, 2023
1 parent 733bc36 commit fec23fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/netvsc/hn_rndis.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "hn_rndis.h"
#include "ndis.h"

#define RNDIS_TIMEOUT_SEC 5
#define RNDIS_TIMEOUT_SEC 60
#define RNDIS_DELAY_MS 10

#define HN_RNDIS_XFER_SIZE 0x4000
Expand Down

0 comments on commit fec23fd

Please sign in to comment.