]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: report IFLA_GSO_MAX_SIZE and IFLA_GSO_MAX_SEGS
authorEric Dumazet <edumazet@google.com>
Wed, 17 Aug 2016 21:39:21 +0000 (14:39 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 22 Aug 2016 17:03:57 +0000 (10:03 -0700)
kernel support for these attributes was added in linux-4.6

Signed-off-by: Eric Dumazet <edumazet@google.com>
ip/ipaddress.c

index ab4b1b1484c0835ebe8893b475cd2907fe17c807..76bd7b35639f32508f0385c08a6e3f0d393b7b3d 100644 (file)
@@ -901,6 +901,14 @@ int print_linkinfo(const struct sockaddr_nl *who,
                        fprintf(fp, "numrxqueues %u ",
                                rta_getattr_u32(tb[IFLA_NUM_RX_QUEUES]));
 
+               if (tb[IFLA_GSO_MAX_SIZE])
+                       fprintf(fp, "gso_max_size %u ",
+                               rta_getattr_u32(tb[IFLA_GSO_MAX_SIZE]));
+
+               if (tb[IFLA_GSO_MAX_SEGS])
+                       fprintf(fp, "gso_max_segs %u ",
+                               rta_getattr_u32(tb[IFLA_GSO_MAX_SEGS]));
+
                if (tb[IFLA_PHYS_PORT_NAME])
                        fprintf(fp, "portname %s ",
                                rta_getattr_str(tb[IFLA_PHYS_PORT_NAME]));