From fee7832bdec96cb5b0f5ceab41c876faa8bea939 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 16 Feb 2023 13:25:17 +0100 Subject: [PATCH] platform: increase netlink resync retry count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With a small buffer (of 4K) and many links (100 ethernet adapters), I've seen up to ~15 retries of link change until things settled. Let's increase this. Still a »bulharská konštanta« but possibly safer and more broadly useful (so we can cap the link change retry count too). --- src/libnm-platform/nm-linux-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libnm-platform/nm-linux-platform.c b/src/libnm-platform/nm-linux-platform.c index 3845a2383..dbc3ec4b3 100644 --- a/src/libnm-platform/nm-linux-platform.c +++ b/src/libnm-platform/nm-linux-platform.c @@ -328,7 +328,7 @@ struct _ifla_vf_vlan_info { /*****************************************************************************/ -#define RESYNC_RETRIES 10 +#define RESYNC_RETRIES 50 /*****************************************************************************/