From: Eric Dumazet Date: Wed, 17 Aug 2016 21:39:21 +0000 (-0700) Subject: ip: report IFLA_GSO_MAX_SIZE and IFLA_GSO_MAX_SEGS X-Git-Tag: v4.8.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1acd208c0b2cdb4611b9de5f3b6990b65a7b5660;p=thirdparty%2Fiproute2.git ip: report IFLA_GSO_MAX_SIZE and IFLA_GSO_MAX_SEGS kernel support for these attributes was added in linux-4.6 Signed-off-by: Eric Dumazet --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index ab4b1b148..76bd7b356 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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]));