netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2-next 0/2] ip: Nexthop flags extensions
@ 2020-11-19 13:57 Ido Schimmel
  2020-11-19 13:57 ` [PATCH iproute2-next 1/2] ip route: Print "trap" nexthop indication Ido Schimmel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ido Schimmel @ 2020-11-19 13:57 UTC (permalink / raw)
  To: netdev; +Cc: dsahern, roopa, mlxsw, Ido Schimmel

From: Ido Schimmel <idosch@nvidia.com>

Patch #1 prints the recently added 'RTNH_F_TRAP' flag.

Patch #2 makes sure that nexthop flags are always printed for nexthop
objects. Even when the nexthop does not have a device, such as a
blackhole nexthop or a group.

Example output with netdevsim:

# ip nexthop
id 1 via 192.0.2.2 dev eth0 scope link trap
id 2 blackhole trap
id 3 group 2 trap

Example output with mlxsw:

# ip nexthop
id 1 via 192.0.2.2 dev swp3 scope link offload
id 2 blackhole offload
id 3 group 2 offload

Tested with fib_nexthops.sh that uses "ip nexthop" output:

Tests passed: 164
Tests failed:   0

Ido Schimmel (2):
  ip route: Print "trap" nexthop indication
  nexthop: Always print nexthop flags

 ip/ipnexthop.c | 3 +--
 ip/iproute.c   | 2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)

-- 
2.28.0


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

end of thread, other threads:[~2020-11-22 19:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19 13:57 [PATCH iproute2-next 0/2] ip: Nexthop flags extensions Ido Schimmel
2020-11-19 13:57 ` [PATCH iproute2-next 1/2] ip route: Print "trap" nexthop indication Ido Schimmel
2020-11-19 13:57 ` [PATCH iproute2-next 2/2] nexthop: Always print nexthop flags Ido Schimmel
2020-11-22 19:47 ` [PATCH iproute2-next 0/2] ip: Nexthop flags extensions David Ahern

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 NNTP newsgroup(s).