Netdev List
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@nvidia.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
	edumazet@google.com, dsahern@kernel.org, horms@kernel.org,
	willemb@google.com, Ido Schimmel <idosch@nvidia.com>
Subject: [PATCH net-next v2 0/2] ipv6: Honor oif when choosing nexthop for locally generated traffic
Date: Mon,  1 Jun 2026 09:52:58 +0300	[thread overview]
Message-ID: <20260601065300.267960-1-idosch@nvidia.com> (raw)

Patch #1 aligns IPv6 with IPv4 and changes IPv6 route lookup to prefer a
nexthop whose nexthop device matches the specified oif.

Patch #2 adds a selftest.

v2:
- Add tests with VRFs.

v1: https://lore.kernel.org/netdev/20251224161801.824589-1-idosch@nvidia.com/

Ido Schimmel (2):
  ipv6: Honor oif when choosing nexthop for locally generated traffic
  selftests: fib_tests: Add test cases for route lookup with oif

 net/ipv6/route.c                         |   5 +-
 tools/testing/selftests/net/fib_tests.sh | 183 ++++++++++++++++++++++-
 2 files changed, 186 insertions(+), 2 deletions(-)

-- 
2.54.0


             reply	other threads:[~2026-06-01  6:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-01  6:52 Ido Schimmel [this message]
2026-06-01  6:52 ` [PATCH net-next v2 1/2] ipv6: Honor oif when choosing nexthop for locally generated traffic Ido Schimmel
2026-06-01  6:53 ` [PATCH net-next v2 2/2] selftests: fib_tests: Add test cases for route lookup with oif Ido Schimmel

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=20260601065300.267960-1-idosch@nvidia.com \
    --to=idosch@nvidia.com \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=willemb@google.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox