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 A52E35A026E for ; Fri, 04 Dec 2026 22:21:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796419282; 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=YvKizHXqz1FMfXsbYIHDbIzmrxSUYrfTtrKzmMlQpHg=; b=NlngdPBRaO3wDBWVJMErpRpXTVDQCEAVIC/yWIZtKuDLv3yEUKrbCNb2u+X6ssRIDGuym3 HBWmRVmS8N9FkMpzE2SdxQpcVcbj64yrReQIThW296cbYC2gOkcbAATj99pIcUXeysU7h4 qLo02QyX7ahtWgkRub/KHgcZwQRiqro= 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-260-ihflJ4ZxPxa3H3N1ptcm_w-1; Fri, 4 Dec 2026 21:21:20 +0000 X-MC-Unique: ihflJ4ZxPxa3H3N1ptcm_w-1 X-Mimecast-MFC-AGG-ID: ihflJ4ZxPxa3H3N1ptcm_w_1796419279 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-49d70f45b22so1097004f8f.2 for ; Fri, 04 Dec 2026 13:21:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796419279; x=1797024079; 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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lHJSHhT79gLApzNHT2sBeYPe BOPjVy2f3mtCZR3iFLEBvdBuARYbjS+fpeztEHL2NkdgV0FJW89ibmwCHl/EzaJPvMUFLtorTgm FDx0bxYcSp X-Received: by 2002:adf:e403:0:b0:48d:f464:6989 with SMTP id ffacd0b85a97d-4d1ea1d5a47mr4648694f8f.27.1796419279266; Fri, 04 Dec 2026 13:21:19 -0800 (PST) X-Received: by 2002:adf:e403:0:b0:48d:f464:6989 with SMTP id ffacd0b85a97d-4d1ea1d5a47mr4648669f8f.27.1796419278733; Fri, 04 Dec 2026 13:21:18 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d17340187dsm7860934f8f.27.2026.12.04.13.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 13:21:18 -0800 (PST) From: Stefano Brivio To: Jon Maloy Subject: Re: [PATCH v2] netlink: Only consider gateway from the selected template interface Message-ID: <20261204222117.216267c5@elisabeth> In-Reply-To: <0dc20df6-aa3b-49fa-bd0a-e31eed55b00c@redhat.com> References: <0dc20df6-aa3b-49fa-bd0a-e31eed55b00c@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: Fri, 04 Dec 2026 22:21:17 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: khgzPMH-RK5slVeDwM9vL4GPXhnT89aUHv_boAEKz24_1796419279 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: JTN6RBUX3TEUEP33FUZJZ3VYMFEMOGWR X-Message-ID-Hash: JTN6RBUX3TEUEP33FUZJZ3VYMFEMOGWR 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: Benjamin Schubert , "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, 4 Dec 2026 15:12:56 -0500 Jon Maloy wrote: > On 2026-12-04 10:06, Benjamin Schubert wrote: > > Previously, netlink could select a gateway from a different interface > > if it had higher weights than the one from the selected interface. > > > > This can lead to a namespace having an unreachable default gateway. > > > > This considers only nexthops from the current interface instead of all > > interfaces when looking at the template interface, ensuring that the ip > > and the gateway are always aligned. > > > > Link: https://bugs.passt.top/show_bug.cgi?id=232 > > Fixes: 6c7623d07bbd ("netlink: Add support to fetch default gateway > > from multipath routes") > > "Fixes:" should go on one line, even if it long. Right, but I'll fix that up on merge, no worries. > > Signed-off-by: Benjamin Schubert > > "Author:" says That's something git-am(1) adds from the From: header of the email. > I would suggest you makes this consistent: one or the other. No need to, it's really okay and quite common: you want a given contact as Signed-off-by:, but send the email from another address. > > --- > > Notes for reviewers: > > - Added the Fixes link in the commit message > > - Properly formatted the diff > > - I did not change the docs as I understood you still preferred the older version. Let me know if you want a change there. > > I think Stefano suggested "If that default route [...]" instead of > "If the default route [...]" as a small improvement, but I'll let him > confirm. Yeah, let me just go ahead and amend that, it's a very trivial change, no need to re-spin. > > > > netlink.c | 10 ++++-- > > test/pasta_options/multipath_gateway | 46 ++++++++++++++++++++++++++--> + > > +def ipv4_other_interface > > +ipv4 > > +set OTHER_PREFIX 192.51.100. > > I still think this should be 198.51.100. (TEST-NET-2, RFC 5737). And this too. > [...] > > With those fixed: > > Reviewed-by: Jon Maloy Thanks for the review! -- Stefano