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 B03405A026E for ; Fri, 04 Dec 2026 23:32:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796423530; 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=leQ1shRlREeIA8ci/ZiGGU2qh67uXhLtCBHrmJ+JMaQ=; b=TuBMNWMG0hlSEnJhI4MVLxs/QL4sQd8Y1MTXjSZWOVZhNpVHEcdblLpCjqP3T+rslKJIw7 hjU0/6YI0C1Fsx32UdAhbjdJOwMTPyaS/EmIrKX4aVCHbwAIb32JgoC8a6KH5fUfPhDnaw JwBO1r49swnwjfL5rn2XTh7rGYRT/+U= X-MC-Rep: binary re single Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-83-j4j5VzXrOxiIxI6c3Wf6SA-1; Fri, 4 Dec 2026 22:32:08 +0000 X-MC-Unique: j4j5VzXrOxiIxI6c3Wf6SA-1 X-Mimecast-MFC-AGG-ID: j4j5VzXrOxiIxI6c3Wf6SA_1796423528 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-499ca65ae87so881355f8f.1 for ; Fri, 04 Dec 2026 14:32:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796423527; x=1797028327; 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=leQ1shRlREeIA8ci/ZiGGU2qh67uXhLtCBHrmJ+JMaQ=; b=NzT/tl3+VpR9qaT81z1eJV2OX79KnRzQQlaLmEGaYabxTOxztmiIW3IhidR8COt79Y NUymDnO1BuLvAaFwPJkakpih/o9n//xuNp8Oz+0CmqLCp3QN4d4hlraiceOyw6eKh71v b6+0p8oAdKECZcs4nJUKN17eDQhmKnoCzqfcpfDGC/+cTE0/Tn0Wby/2rbByLsgBl4VH m6klWfGT717EiKJ2QbiO19OcXOChBpmWgAMd/LXXqdZmMXgQPdGCgb7s5riyfuL4eNmy vNVhky0CAMzZl7F6xKfBraix8SN+tqn7PqA0L/fXIQWzwZ73E/CTDSIAQpQBu+NYYOkl AZqg== X-Gm-Message-State: AB4q+uFpWImF7MPuVPMjqkCVbGVKS7bGj6xkhD8IGBwSQZuLbbSPEiop bvROwJKiYTVIQyXB/xvfJZnBlQZDjktMkrzOl3Fi5DKHPMJO5JDieUS1sa1fnDKSIOBHepyvYr0 l/yxFrW/ZPYC0UmqujwqisACJXd7+JCsbGHuo0PfEItHVCmcneT5nBA== X-Gm-Gg: AZFdTZdjbXWpIpjiuc3W1TdiY3/T+Fs1hPK6WrdQ9sCFq8EILVrrDPZ72e/XyLCROHk z5OyVgxnXaHg3IY5c4S4ufnU2/lDNICRyKIQ8PJOPGR8hdicmzYL8HPqysdjF3TbTtFXe4NFx/b /mBVcSn8c9nycOl2fe705YUrmLIi8LTiWApDkZOHrikMv95PQKGgGuWWTP384MYd2tUAe9HuATI tOWUlbrp+7LUmb0ia4l4J5/KTXC4eWUcxKnwEtcNMINghu+AAlTnVBt8oLPxkUzxIj3IYAl0WXj 5Q/pGeKjwgP9XvtUZ7GwYjM5D4Oao6jf4tsksa6o1l6mn7AnorLnGHVrmTIOHRYa2wi3/whh/cA 9/dksvCrsyigchk7r3PWyG/M7prDUNctybeOiwKwNIj0F37OAfg1Brjwt6Hp596BXFxArR+1lKp CAN+WtEfmp X-Received: by 2002:a05:6000:2ac8:b0:48e:d40:a87c with SMTP id ffacd0b85a97d-4cf49b995eemr7516632f8f.16.1796423527473; Fri, 04 Dec 2026 14:32:07 -0800 (PST) X-Received: by 2002:a05:6000:2ac8:b0:48e:d40:a87c with SMTP id ffacd0b85a97d-4cf49b995eemr7516615f8f.16.1796423526954; Fri, 04 Dec 2026 14:32:06 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d1723b8b54sm6748148f8f.17.2026.12.04.14.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 14:32:06 -0800 (PST) From: Stefano Brivio To: Benjamin Schubert Subject: Re: [PATCH v2] netlink: Only consider gateway from the selected template interface Message-ID: <20261204233205.3064284b@elisabeth> In-Reply-To: References: 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 23:32:06 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: qhVkfeZf-jDBcDYQEUUfIZM82ljCYclzi-6YEY0tpEA_1796423528 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: 5LI6CRE7DUSPSHU3BXARWRQTJDVLORH4 X-Message-ID-Hash: 5LI6CRE7DUSPSHU3BXARWRQTJDVLORH4 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" , Jon Maloy 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, 04 Dec 2026 15:06:10 +0000 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") > Signed-off-by: Benjamin Schubert Applied, with minor amendments suggested by Jon. -- Stefano