From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=quarantine dis=none) header.from=redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 1F4E55A0271 for ; Mon, 30 Nov 2026 01:34:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795998898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bdr+9OqJUQteb1X+tczSEFMQ+dt1f2pJFmTORJ4gWV0=; b=Q3UNE1jHyztFdyGLifoSmWjSoondsmmt724qAB173cDIkARuFxOSZXItRY4pzXnPmSuaR5 ItOp4+ZJ6MV7TLt9eYzSX2IxkVeNRXPbfJEsCIZdSRUU8XlkyZXBNcGYAs2/KN0vWiIlHK t71o264nLoKKEggEMlAY7r9yn7n6o3U= X-MC-Rep: binary re single Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-48-CT4LVg4uMSa-cWbXXWcwuQ-1; Mon, 30 Nov 2026 00:34:56 +0000 X-MC-Unique: CT4LVg4uMSa-cWbXXWcwuQ-1 X-Mimecast-MFC-AGG-ID: CT4LVg4uMSa-cWbXXWcwuQ_1795998895 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-492b5408dedso1675394f8f.3 for ; Sun, 29 Nov 2026 16:34:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795998895; x=1796603695; h=date:content-transfer-encoding:content-type:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=bdr+9OqJUQteb1X+tczSEFMQ+dt1f2pJFmTORJ4gWV0=; b=NAkb1v7aoF3ZSlC4mfd00sRl1X9Ib5PkTRxomtJZIcrim+HR1dIN30WlubrQzvdEUX /Rvo8YIxFGxZCQ53lm6sGlvU7j7jQV8im5NO7o6v4QQblj90zEwb+SQJTrG61EDtJWxV Xu/oDuVp2FLG7ZdQBqzQJX/6EWR+sFDv6ReWSR+yCnuomlRT6yoZfGtHb0w8VcAVyIze 8nmYTijLieMJzIDgPSwj+F2U0Is+OcowCtnkEpEZLETvHS9JnbEAUGa/OPrO2h7WLVu5 w6287GdXl4OyHNc5x6MkFZ2I+y2R/jdaVfJxqfF8IQGTa52AVs9xqumntaADQfpAryBB /I/A== X-Gm-Message-State: APuU4Z/jGDDVR13EdoIjkEj6UkmjoD+5HTaFhjC8Z7AAcYx+2eNLlZfi dz7H4MRIhlRAQYqxBzJ7/VHlWLomxfyY+OtbWZyeFleZ68onupe3GWHPbyn70ZrjBRbC/jZe1+k NP23CqJDpGvAQQbc/qRFgE7BsgDslYvz9fLwLiLSUDKwzCqIFPTr7dg== X-Gm-Gg: AZFdTZdjtM5iXU1Z4PQBCZuhKsEl+nHxrHE391c7zg+AOB1ilyS75b0eqX7Df5CBPlw b9uiJeknj7CpuZpMio/j9e8qahR1fh45DPqLj562eDUrDU7Edz1vXsNC8+uw8txDPY0WSVQc8mW JwPcRhz/pmhkg95tyETca9DwEA3FqioBaJo+FM0kIxPud2BATnIQ3QwyyWA882Mt+P35sgQoNw0 l31tfsYzba9ay5uicY7QAwf5bXiq2FDhx4x5ZsfSFVjSUR8ldmgT/kSYx2QhHDW9Qkwv1irOalM dp01016qs96BTW2goQzsP19NcfwBEdVamfKo/jFiPW+iby5FC26vcBV1K75YBGfcpDg3mSUyVsD xJHi/lNUiJuirEf0t/a49utt1vhaMssfBWHTWuDdtsmhjcoyz4/sHV87GxxfOJ9dRfRI= X-Received: by 2002:a05:6000:2309:b0:4a7:45a2:ec26 with SMTP id ffacd0b85a97d-4abb0f3bc89mr64963325f8f.16.1795998894781; Sun, 29 Nov 2026 16:34:54 -0800 (PST) X-Received: by 2002:a05:6000:2309:b0:4a7:45a2:ec26 with SMTP id ffacd0b85a97d-4abb0f3bc89mr64963307f8f.16.1795998894245; Sun, 29 Nov 2026 16:34:54 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a68048esm64054071f8f.29.2026.11.29.16.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:34:53 -0800 (PST) From: Stefano Brivio To: Jon Maloy , Martin Schitter Subject: Re: [PATCH v2] netlink: Copy all routes in nl_route_dup(), not just the first batch Message-ID: <20261130013452.18bd5e83@elisabeth> In-Reply-To: <20261127143104.589149-1-jmaloy@redhat.com> References: <20261107114621.804266-1-ms+git@mur.at> <20261127143104.589149-1-jmaloy@redhat.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Mon, 30 Nov 2026 01:34:53 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: XzfVTl8E7wiSOvTNeNkOSn5CdP02YC9OYMEJ0UbxNHQ_1795998895 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: VHZVJXTBRXDJJJQENTR5TXWDXPCIP3V2 X-Message-ID-Hash: VHZVJXTBRXDJJJQENTR5TXWDXPCIP3V2 X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Fri, 27 Nov 2026 09:31:04 -0500 Jon Maloy wrote: > From: Martin Schitter > > The kernel splits large route dumps over several netlink datagrams, but > nl_route_dup() currently only processes the first one, and fails with > "Too many routes to duplicate" if there are more. This happens when > there are more than about 50 routes on the template interface. > > Change the code so that all datagrams are processed. Routes are copied > to the destination namespace in three successive steps, to satisfy > dependencies between them: > - routes to local addresses > - routes to local networks > - routes with a gateway > > This approach is inspired by the restore subcommand of iproute2. > > Link: https://bugs.passt.top/show_bug.cgi?id=221 > Signed-off-by: Martin Schitter > [jmaloy: Keep stripping of RTA_PREFSRC and RTA_NH_ID, bounds check on > attribute types, style fixes] > Signed-off-by: Jon Maloy Applied, thanks both, and, Martin, welcome to the git log! I'll close https://bugs.passt.top/show_bug.cgi?id=221 as well as the Debian bug at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146729 once this is in a release / package. -- Stefano