mbox series

[net,0/2] nexthop: Do not flush blackhole nexthops when loopback goes down

Message ID 20210304085754.1929848-1-idosch@idosch.org (mailing list archive)
Headers show
Series nexthop: Do not flush blackhole nexthops when loopback goes down | expand

Message

Ido Schimmel March 4, 2021, 8:57 a.m. UTC
From: Ido Schimmel <idosch@nvidia.com>

Patch #1 prevents blackhole nexthops from being flushed when the
loopback device goes down given that as far as user space is concerned,
these nexthops do not have a nexthop device.

Patch #2 adds a test case.

There are no regressions in fib_nexthops.sh with this change:

 # ./fib_nexthops.sh
 ...
 Tests passed: 165
 Tests failed:   0

Ido Schimmel (2):
  nexthop: Do not flush blackhole nexthops when loopback goes down
  selftests: fib_nexthops: Test blackhole nexthops when loopback goes
    down

 net/ipv4/nexthop.c                          | 10 +++++++---
 tools/testing/selftests/net/fib_nexthops.sh |  8 ++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org March 4, 2021, 10:20 p.m. UTC | #1
Hello:

This series was applied to netdev/net.git (refs/heads/master):

On Thu,  4 Mar 2021 10:57:52 +0200 you wrote:
> From: Ido Schimmel <idosch@nvidia.com>
> 
> Patch #1 prevents blackhole nexthops from being flushed when the
> loopback device goes down given that as far as user space is concerned,
> these nexthops do not have a nexthop device.
> 
> Patch #2 adds a test case.
> 
> [...]

Here is the summary with links:
  - [net,1/2] nexthop: Do not flush blackhole nexthops when loopback goes down
    https://git.kernel.org/netdev/net/c/76c03bf8e262
  - [net,2/2] selftests: fib_nexthops: Test blackhole nexthops when loopback goes down
    https://git.kernel.org/netdev/net/c/3a1099d3147f

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html