diff mbox series

[iproute2-next] ipneigh: Print neighbour offload indication

Message ID 20190418064348.12383-1-idosch@mellanox.com
State Accepted
Delegated to: David Ahern
Headers show
Series [iproute2-next] ipneigh: Print neighbour offload indication | expand

Commit Message

Ido Schimmel April 18, 2019, 6:44 a.m. UTC
Print the offload indication in case it is set on the neighbour.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
---
 ip/ipneigh.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

David Ahern April 21, 2019, 1:36 p.m. UTC | #1
On 4/18/19 12:44 AM, Ido Schimmel wrote:
> Print the offload indication in case it is set on the neighbour.
> 
> Signed-off-by: Ido Schimmel <idosch@mellanox.com>
> ---
>  ip/ipneigh.c | 3 +++
>  1 file changed, 3 insertions(+)
> 

applied to iproute2-next. Thanks
diff mbox series

Patch

diff --git a/ip/ipneigh.c b/ip/ipneigh.c
index 88596245a2ed..27986ff7a6c9 100644
--- a/ip/ipneigh.c
+++ b/ip/ipneigh.c
@@ -384,6 +384,9 @@  int print_neigh(struct nlmsghdr *n, void *arg)
 	if (r->ndm_flags & NTF_EXT_LEARNED)
 		print_null(PRINT_ANY, "extern_learn", " %s ", "extern_learn");
 
+	if (r->ndm_flags & NTF_OFFLOADED)
+		print_null(PRINT_ANY, "offload", " %s", "offload");
+
 	if (show_stats) {
 		if (tb[NDA_CACHEINFO])
 			print_cacheinfo(RTA_DATA(tb[NDA_CACHEINFO]));