]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ipneigh: Print neighbour offload indication
authorIdo Schimmel <idosch@mellanox.com>
Thu, 18 Apr 2019 06:44:05 +0000 (06:44 +0000)
committerDavid Ahern <dsahern@gmail.com>
Sun, 21 Apr 2019 13:23:23 +0000 (06:23 -0700)
Print the offload indication in case it is set on the neighbour.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipneigh.c

index 88596245a2eda88333dd42d58f24a169c4493743..27986ff7a6c9ba6355446032388303c7ca83fdfa 100644 (file)
@@ -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]));