public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Jon Maloy <jmaloy@redhat.com>
Cc: 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, 04 Dec 2026 22:21:17 +0100 (CET)	[thread overview]
Message-ID: <20261204222117.216267c5@elisabeth> (raw)
In-Reply-To: <0dc20df6-aa3b-49fa-bd0a-e31eed55b00c@redhat.com>

On Fri, 4 Dec 2026 15:12:56 -0500
Jon Maloy <jmaloy@redhat.com> 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 <bschubert15@bloomberg.net>  
> 
> "Author:" says  <contact@benschubert.me>

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 <jmaloy@redhat.com>

Thanks for the review!

-- 
Stefano

  reply	other threads:[~2026-12-04 21:21 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
2026-12-04 21:21   ` Stefano Brivio [this message]
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=20261204222117.216267c5@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=contact@benschubert.me \
    --cc=jmaloy@redhat.com \
    --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).