All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: ipv4: fix nexthop route delete warning
@ 2022-03-31 15:46 Nikolay Aleksandrov
  2022-03-31 15:46 ` [PATCH net 1/2] net: ipv4: fix route with nexthop object " Nikolay Aleksandrov
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Nikolay Aleksandrov @ 2022-03-31 15:46 UTC (permalink / raw)
  To: netdev
  Cc: dsahern, donaldsharp72, philippe.guibert, kuba, davem, idosch,
	Nikolay Aleksandrov

Hi,
The first patch fixes a warning that can be triggered by deleting a
nexthop route and specifying a device (more info in its commit msg).
And the second patch adds a selftest for that case.

For the fix the alternative would be to do matching on the nexthop's
attributes but I think we shouldn't since it's old-style route deletion
and nexthops are managed through a different interface, so I chose to
don't do any matching if the fib_info is a nexthop route and the user
specified old-style attributes to match on (e.g. device in this case)
which preserves the current behaviour and avoids the warning.

Thanks,
 Nik

Nikolay Aleksandrov (2):
  net: ipv4: fix route with nexthop object delete warning
  selftests: net: add delete nexthop route warning test

 net/ipv4/fib_semantics.c                    |  7 ++++++-
 tools/testing/selftests/net/fib_nexthops.sh | 13 +++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-04-01  7:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 15:46 [PATCH net 0/2] net: ipv4: fix nexthop route delete warning Nikolay Aleksandrov
2022-03-31 15:46 ` [PATCH net 1/2] net: ipv4: fix route with nexthop object " Nikolay Aleksandrov
2022-03-31 17:05   ` David Ahern
2022-03-31 17:17     ` Nikolay Aleksandrov
2022-03-31 17:34       ` Nikolay Aleksandrov
2022-03-31 19:31         ` Nikolay Aleksandrov
2022-04-01  1:33   ` David Ahern
2022-03-31 15:46 ` [PATCH net 2/2] selftests: net: add delete nexthop route warning test Nikolay Aleksandrov
2022-04-01  1:35   ` David Ahern
2022-04-01  7:18 ` [PATCH net 0/2] net: ipv4: fix nexthop route delete warning Nikolay Aleksandrov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.