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.129.124]) by passt.top (Postfix) with ESMTPS id 238025A026E for ; Fri, 04 Dec 2026 21:13:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796415185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1ZSPES+XF+ZwAieN1TVMyxkoo2U3g8oo9FzZn/05tnk=; b=iNN09+hKYnQjMfv4clZQ67R0E1BJK7iB66BPEfnUm+FZilqu2HQHrtnbOBPHSmWR3H/D8X ggVAC0SX5qhmY9MTdUIXPNMCI3qCFKitzxPR7zMoZVkH5AXHTuhQIfd9AHiL1wgKrcZtYZ 6vS8rjgMARfn2X9eykrrQvLj1il2glk= X-MC-Rep: binary re single Received: from mail-dl1-f69.google.com (mail-dl1-f69.google.com [74.125.82.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-231-OmC71lT8PaqpTsrDyx-apg-1; Fri, 4 Dec 2026 20:13:02 +0000 X-MC-Unique: OmC71lT8PaqpTsrDyx-apg-1 X-Mimecast-MFC-AGG-ID: OmC71lT8PaqpTsrDyx-apg_1796415181 Received: by mail-dl1-f69.google.com with SMTP id a92af1059eb24-1383723dfddso2407064c88.0 for ; Fri, 04 Dec 2026 12:13:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796415181; x=1797019981; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh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mjRPVEOhtgYIPe0kMIYD6wUBAstLfAH9tKCg7RuY7gioKgfNhmGBM+6Dou4SiVLkDmnoUrH 2euaDL/tY7OGAErctgeh7oKIGlOSZ9LEVDgpQp/rE= X-Received: by 2002:a05:7022:ea8d:b0:144:fb42:52 with SMTP id a92af1059eb24-1b5d7106369mr2427105c88.28.1796415181391; Fri, 04 Dec 2026 12:13:01 -0800 (PST) X-Received: by 2002:a05:7022:ea8d:b0:144:fb42:52 with SMTP id a92af1059eb24-1b5d7106369mr2427091c88.28.1796415180865; Fri, 04 Dec 2026 12:13:00 -0800 (PST) Received: from [192.168.2.15] (lnsm6-montreal02-142-122-43-105.internet.virginmobile.ca. [142.122.43.105]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5d63d04e7sm9495397c88.1.2026.12.04.12.12.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 12:13:00 -0800 (PST) Message-ID: <0dc20df6-aa3b-49fa-bd0a-e31eed55b00c@redhat.com> Date: Fri, 4 Dec 2026 15:12:56 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] netlink: Only consider gateway from the selected template interface To: Benjamin Schubert , "passt-dev@passt.top" References: From: Jon Maloy In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: sSszqDfT8WSbPDNNiDR45BEaUwlD6CpeLILuH9e79mA_1796415181 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID-Hash: 4KRITUQZW6XS6NGXI3YSTWJJNHYTQPOP X-Message-ID-Hash: 4KRITUQZW6XS6NGXI3YSTWJJNHYTQPOP X-MailFrom: jmaloy@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 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 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. > Signed-off-by: Benjamin Schubert "Author:" says I would suggest you makes this consistent: one or the other. > --- > 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. > > 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). [...] With those fixed: Reviewed-by: Jon Maloy