* [PATCH iproute2-next] ip route: Print "rt_offload_failed" indication
@ 2021-02-09 9:12 Amit Cohen
2021-02-14 0:51 ` David Ahern
0 siblings, 1 reply; 2+ messages in thread
From: Amit Cohen @ 2021-02-09 9:12 UTC (permalink / raw)
To: netdev; +Cc: idosch, dsahern, Amit Cohen
The kernel signals when offload fails using the 'RTM_F_OFFLOAD_FAILED'
flag. Print it to help users understand the offload state of the route.
The "rt_" prefix is used in order to distinguish it from the offload state
of nexthops, similar to "rt_offload" and "rt_trap".
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
---
ip/iproute.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ip/iproute.c b/ip/iproute.c
index ebb5f160..a8c4886b 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -374,6 +374,8 @@ void print_rt_flags(FILE *fp, unsigned int flags)
print_string(PRINT_ANY, NULL, "%s ", "rt_offload");
if (flags & RTM_F_TRAP)
print_string(PRINT_ANY, NULL, "%s ", "rt_trap");
+ if (flags & RTM_F_OFFLOAD_FAILED)
+ print_string(PRINT_ANY, NULL, "%s ", "rt_offload_failed");
close_json_array(PRINT_JSON, NULL);
}
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH iproute2-next] ip route: Print "rt_offload_failed" indication
2021-02-09 9:12 [PATCH iproute2-next] ip route: Print "rt_offload_failed" indication Amit Cohen
@ 2021-02-14 0:51 ` David Ahern
0 siblings, 0 replies; 2+ messages in thread
From: David Ahern @ 2021-02-14 0:51 UTC (permalink / raw)
To: Amit Cohen, netdev; +Cc: idosch
On 2/9/21 2:12 AM, Amit Cohen wrote:
> The kernel signals when offload fails using the 'RTM_F_OFFLOAD_FAILED'
> flag. Print it to help users understand the offload state of the route.
> The "rt_" prefix is used in order to distinguish it from the offload state
> of nexthops, similar to "rt_offload" and "rt_trap".
>
> Signed-off-by: Amit Cohen <amcohen@nvidia.com>
> Reviewed-by: Ido Schimmel <idosch@nvidia.com>
> ---
> ip/iproute.c | 2 ++
> 1 file changed, 2 insertions(+)
>
applied to iproute2-next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-14 0:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 9:12 [PATCH iproute2-next] ip route: Print "rt_offload_failed" indication Amit Cohen
2021-02-14 0:51 ` 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).