From: Jon Maloy <jmaloy@redhat.com>
To: Benjamin Schubert <contact@benschubert.me>,
"passt-dev@passt.top" <passt-dev@passt.top>
Subject: Re: [PATCH v2] netlink: Only consider gateway from the selected template interface
Date: Fri, 4 Dec 2026 15:12:56 -0500 [thread overview]
Message-ID: <0dc20df6-aa3b-49fa-bd0a-e31eed55b00c@redhat.com> (raw)
In-Reply-To: <uT2Ma09TIJ9t1_2fBqHlukd6fcry6QuvYetLgEruy7JtYY93jokx1G2scv7fSDlYOox7amJez7f_DkIBJzfnA3cb5l2W-BBoLzPA3brSYRo=@benschubert.me>
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 <bschubert15@bloomberg.net>
"Author:" says <contact@benschubert.me>
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 <jmaloy@redhat.com>
next prev parent reply other threads:[~2026-12-04 20:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 15:06 Benjamin Schubert
2026-12-04 20:12 ` Jon Maloy [this message]
2026-12-04 21:21 ` Stefano Brivio
2026-12-04 22:32 ` Stefano Brivio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0dc20df6-aa3b-49fa-bd0a-e31eed55b00c@redhat.com \
--to=jmaloy@redhat.com \
--cc=contact@benschubert.me \
--cc=passt-dev@passt.top \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).