In some environments, waiting only for 5 seconds for the link is not enough. The problem is that the link wait timeouts, and thus startup of the application fails.
Ten seconds seems to be a safe compromise. It is high enough to work on my test system reliably, yet low enough that it shouldn't cause excessive delays to get an error in the case that the link is actually down. Signed-off-by: Juha-Matti Tilli <[email protected]> Reviewed-and-tested-by: Matias Elo <[email protected]> --- platform/linux-generic/pktio/netmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/pktio/netmap.c b/platform/linux-generic/pktio/netmap.c index 9e3defe..8eadfde 100644 --- a/platform/linux-generic/pktio/netmap.c +++ b/platform/linux-generic/pktio/netmap.c @@ -32,7 +32,7 @@ #define NETMAP_WITH_LIBS #include <net/netmap_user.h> -#define NM_WAIT_TIMEOUT 5 /* netmap_wait_for_link() timeout in seconds */ +#define NM_WAIT_TIMEOUT 10 /* netmap_wait_for_link() timeout in seconds */ #define NM_INJECT_RETRIES 10 static int netmap_stats_reset(pktio_entry_t *pktio_entry); -- 2.1.4 _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
