public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Paul Holzinger <pholzing@redhat.com>
To: Stefano Brivio <sbrivio@redhat.com>, passt-dev@passt.top
Cc: David Gibson <david@gibson.dropbear.id.au>,
	Jelle van der Waa <jvanderwaa@redhat.com>,
	Martin Pitt <mpitt@redhat.com>
Subject: Re: [PATCH] netlink: With no default route, pick the first interface with a route
Date: Wed, 19 Jun 2024 10:31:31 +0200	[thread overview]
Message-ID: <4af8904c-610d-4d3a-a7a0-5a2b359249e2@redhat.com> (raw)
In-Reply-To: <20240618171803.1924322-1-sbrivio@redhat.com>


On 18/06/2024 19:18, Stefano Brivio wrote:
> While commit f919dc7a4b1c ("conf, netlink: Don't require a default
> route to start") sounded reasonable in the assumption that, if we
> don't find default routes for a given address family, we can still
> proceed by selecting an interface with any route *iff it's the only
> one for that protocol family*, Jelle reported a further issue in a
> similar setup.
>
> There, multiple interfaces are present, and while remote container
> connectivity doesn't matter for the container, local connectivity is
> desired. There are no default routes, but those multiple interfaces
> all have non-default routes, so we should just pick one and start.
>
> Pick the first interface reported by the kernel with any route, if
> there are no default routes. There should be no harm in doing so.
>
> Reported-by: Jelle van der Waa<jvanderwaa@redhat.com>
> Reported-by: Martin Pitt<mpitt@redhat.com>
> Link:https://bugzilla.redhat.com/show_bug.cgi?id=2277954
> Signed-off-by: Stefano Brivio<sbrivio@redhat.com>

Reviewed-by: Paul Holzinger <pholzing@redhat.com>


-- 
Paul Holzinger


      parent reply	other threads:[~2024-06-19  8:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-18 17:18 [PATCH] netlink: With no default route, pick the first interface with a route Stefano Brivio
2024-06-19  1:53 ` David Gibson
2024-06-19  8:31 ` Paul Holzinger [this message]

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=4af8904c-610d-4d3a-a7a0-5a2b359249e2@redhat.com \
    --to=pholzing@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=jvanderwaa@redhat.com \
    --cc=mpitt@redhat.com \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /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).